Skip to content

Instantly share code, notes, and snippets.

View logentries-gists's full-sized avatar

logentries-gists

View GitHub Profile
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog

Get your work done even faster with the Logentries REST API

/**
* lists all jobs that are currently in progress.
*/
public List<Batch> getJobsInProgress() {
Jedis instance = null;
List<String> res;
try {
/**
* checks if there is job available in a 'wait' queue. If there is
* job waiting in a queue, it will be transferred into 'work' queue and
* returned back.
*
* @return Batch if available for work, otherwise null
*/
public Batch checkIfJobAvailable() {
String jobJson = null;
Jedis instance = null;