7.3. elasticsearch2: Sending messages directly to Elasticsearch version 2.0 or higher
Note the following limitations when using the syslog-ng OSE
@module mod-java @include "scl.conf" elasticsearch2( index("syslog-ng") type("test") cluster("syslog-ng") );
To install the software required for the
elasticsearch2destination, see Procedure 7.3.1, Prerequisites.
For details on how the
elasticsearch2destination works, see Section 7.3.2, How syslog-ng OSE interacts with Elasticsearch.
For the list of options, see Section 7.3.6, Elasticsearch2 destination options.
elasticsearch2() driver is actually a reusable configuration snippet configured to receive log messages using the Java language-binding of syslog-ng OSE. For details on using or writing such configuration snippets, see Section 5.6.2, Reusing configuration blocks. You can find the source of the elasticsearch configuration snippet on GitHub. For details on extending syslog-ng OSE in Java, see the Getting started with syslog-ng development guide.