diff options
author | Milan Bartos <mbartos@redhat.com> | 2013-04-18 09:41:54 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-05-14 15:14:36 +0200 |
commit | eea5328c322bfb1b7ad4174283227302f6416f5a (patch) | |
tree | 1e904b707f6409cce8c1df34b33ac28c9cd38011 | |
parent | ecd72962314971f0a722515d985777c7f72e8f50 (diff) | |
download | rsyslog-eea5328c322bfb1b7ad4174283227302f6416f5a.tar.gz rsyslog-eea5328c322bfb1b7ad4174283227302f6416f5a.tar.bz2 rsyslog-eea5328c322bfb1b7ad4174283227302f6416f5a.zip |
Added a bit of imjournal documentation.
new file: imjournal.html
-rw-r--r-- | doc/imjournal.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/imjournal.html b/doc/imjournal.html new file mode 100644 index 00000000..9f92305e --- /dev/null +++ b/doc/imjournal.html @@ -0,0 +1,44 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head> +<meta http-equiv="Content-Language" content="en"><title>Text File Input Monitor</title></head> +<body> +<a href="rsyslog_conf_modules.html">back</a> + +<h1>Systemd Journal Input Module</h1> +<p><b>Module Name: imjournal</b></p> +<p><b>Author: </b>Milan Bartos +<mbartos@redhat.com></p> +<p><b>Description</b>:</p> +<p>Provides the ability to import structured log messages from systemd journal +to syslog.</p> + +<p><b>Configuration Directives</b>:</p> +<p><b>Module Directives</b></p> +<ul> +<li><span style="font-weight: bold;">PersistStateInterval +messages</span><br> +This is a global setting. It specifies how often should the journal state be persisted. +This option is useful for rsyslog to start reding from the last journal message it read. + +<li><span style="font-weight: bold;">StateFile +/path/to/file</span><br> +This is a global setting. It specifies where the state file for persisting +journal state is located. +</ul> +<b>Caveats/Known Bugs:</b> +<p> +</p> +<p><b>Sample:</b></p> +<p> +The following example shows pulling structured imjournal messages and saving them into /var/log/ceelog +</p> +<textarea rows="15" cols="60"> +module(load="imjournal" PersistStateInterval="100" StateFile="/path/to/file") #load imjournal module +module(load="mmjsonparse") #load mmjsonparse module for structured logs + +$template CEETemplate,"%TIMESTAMP% %HOSTNAME% %syslogtag% @cee: %$!all-json%\n" #template for messages + +*.* :mmjsonparse: +*.* /var/log/ceelog;CEETemplate +</textarea> + |