From ef056358c7ac70412e0429ab46cd74f261f7c38f Mon Sep 17 00:00:00 2001 From: Radu Gheorghe Date: Tue, 12 Mar 2013 19:59:59 +0200 Subject: initial documentation for the Elasticsearch output module --- doc/omelasticsearch.html | 177 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 doc/omelasticsearch.html (limited to 'doc/omelasticsearch.html') diff --git a/doc/omelasticsearch.html b/doc/omelasticsearch.html new file mode 100644 index 00000000..618b7065 --- /dev/null +++ b/doc/omelasticsearch.html @@ -0,0 +1,177 @@ + + + + + Elasticsearch Output Module + + +

+ back

+

+ Elasticsearch Output Module

+

+ Module Name:    omelasticsearch

+

+ Author: Rainer Gerhards <rgerhards@adiscon.com>

+

+ Available since: 6.4.0+

+

+ Description:

+

+ This module provides native support for logging to Elasticsearch.

+

+ Action Parameters:

+ +
+$template JSONDefault, "{\"message\":\"%msg:::json%\",\"fromhost\":\"%HOSTNAME:::json%\",\"facility\":\"%syslogfacility-text%\",\"priority\":\"%syslogpriority-text%\",\"timereported\":\"%timereported:::date-rfc3339%\",\"timegenerated\":\"%timegenerated:::date-rfc3339%\"}"
+
+

+ Which will produce this sort of documents (pretty-printed here for readability):

+ +
+{
+    "message": " this is a test message",
+    "fromhost": "test-host",
+    "facility": "user",
+    "priority": "info",
+    "timereported": "2013-03-12T18:05:01.344864+02:00",
+    "timegenerated": "2013-03-12T18:05:01.344864+02:00"
+}
+ +

+ Samples:

+

+ The following sample does the following:

+ +
+module(load="omelasticsearch")
+*.*     action(type="omelasticsearch")
+

+ The following sample does the following:

+ +
+module(load="omelasticsearch")
+template(name="testTemplate"
+         type="list"
+         option.json="on") {
+           constant(value="{")
+             constant(value="\"timestamp\":\"")      property(name="timereported" dateFormat="rfc3339")
+             constant(value="\",\"message\":\"")     property(name="msg")
+             constant(value="\",\"host\":\"")        property(name="hostname")
+             constant(value="\",\"severity\":\"")    property(name="syslogseverity-text")
+             constant(value="\",\"facility\":\"")    property(name="syslogfacility-text")
+             constant(value="\",\"syslogtag\":\"")   property(name="syslogtag")
+           constant(value="\"}")
+         }
+*.* action(type="omelasticsearch"
+           server="myserver.local"
+           serverport="9200"
+           template="testTemplate"
+           searchIndex="test-index"
+           searchType="test-type"
+           bulkmode="on"
+           queue.type="linkedlist"
+           queue.size="5000"
+           queue.dequeuebatchsize="300"
+           action.resumeretrycount="-1")
+

+  

+
+
+

+ [rsyslog.conf overview] [manual index] [rsyslog site]

+

+ This documentation is part of the rsyslog project.
+ Copyright © 2008-2012 by Rainer Gerhards and Adiscon. Released under the ASL 2.0.

+ + + -- cgit v1.2.3