Getting Data In

How to monitor Fedora OS logs using journald (binary file) in Splunk?



I want to monitor fedora Server's (Version 21) logs into Splunk Enterprise. I already tried to monitor logs from path /var/log/journal which are in binary form and also made changes in props.conf, inputs.conf, and outputs.conf as follows:




sourcetype = syslog


defaultGroup = default-autolb-group
server = Host:port

But I am getting junk values raw event.
There are couple of workarounds like using journalctl and rsyslog we can redirect logs in text like formats and monitor them.
But my requirement is to monitor the jounald binary itself as monitoring binary is supported in Splunk.

Any suggestions how can I monitor the binary in Splunk?



Take a look at these:

The latter will do what you want, works great (just omit the Docker lines for the systemd unit). You basically write the journal to a json file. Splunk loves json and it will map the fields perfectly. If you don't restart the service much, make sure you rotate or clean the file periodically, or it will continue to grow.

0 Karma


Hi Chandni! Did you ever find a good way to monitor the journal files with Splunk?

0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...