<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to send journal logs to splunk ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471201#M80998</link>
    <description>&lt;P&gt;How do i send journal logs to splunk??&lt;/P&gt;

&lt;H1&gt;journalctl -u  servicename&lt;/H1&gt;

&lt;P&gt;Here journal logs are raw logs. Will splunk read raw logs ?&lt;/P&gt;

&lt;P&gt;Configuration setup on my bos-server1&lt;BR /&gt;
root@bos-server1#/opt/splunkforwarder/etc/apps/linux_auth/default# cat inputs.conf&lt;BR /&gt;
[monitor:///var/log/auth*.log]&lt;BR /&gt;
sourcetype = linux_authlog&lt;BR /&gt;
index = linux_log&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/syslog]&lt;BR /&gt;
sourcetype = linux_syslog&lt;BR /&gt;
index = linux_log&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;Below  journal logs location:&lt;/P&gt;

&lt;P&gt;root@bos-server1:/run/log/journal/112824edd9f56398bab569035733662e# pwd&lt;BR /&gt;
/run/log/journal/112824edd9f56398bab569035733662e&lt;BR /&gt;
root@bos-rndapp02:/run/log/journal/112824edd9f56398bab569035733662e# ls -al&lt;BR /&gt;
total 344472&lt;BR /&gt;
drwxr-s---+ 2 root systemd-journal      220 Jan 21 13:40 .&lt;BR /&gt;
drwxr-sr-x  3 root systemd-journal       60 Sep 21 08:06 ..&lt;BR /&gt;
-rw-r-----+ 1 root systemd-journal 41943040 Jan 14 02:57 &lt;A href="mailto:system@dcf33424670b4269a8a8b1b6b5b86200-000000000043823d-00059bfe728bd765.journal" target="_blank"&gt;system@dcf33424670b4269a8a8b1b6b5b86200-000000000043823d-00059bfe728bd765.journal&lt;/A&gt;&lt;BR /&gt;
-rw-r-----+ 1 root systemd-journal 42151936 Jan 15 01:07 &lt;A href="mailto:system@dcf33424670b4269a8a8b1b6b5b86200-0000000000443355-00059c14f222a797.journal" target="_blank"&gt;system@dcf33424670b4269a8a8b1b6b5b86200-0000000000443355-00059c14f222a797.journal&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:56:11 GMT</pubDate>
    <dc:creator>meenakande</dc:creator>
    <dc:date>2020-09-30T04:56:11Z</dc:date>
    <item>
      <title>How to send journal logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471201#M80998</link>
      <description>&lt;P&gt;How do i send journal logs to splunk??&lt;/P&gt;

&lt;H1&gt;journalctl -u  servicename&lt;/H1&gt;

&lt;P&gt;Here journal logs are raw logs. Will splunk read raw logs ?&lt;/P&gt;

&lt;P&gt;Configuration setup on my bos-server1&lt;BR /&gt;
root@bos-server1#/opt/splunkforwarder/etc/apps/linux_auth/default# cat inputs.conf&lt;BR /&gt;
[monitor:///var/log/auth*.log]&lt;BR /&gt;
sourcetype = linux_authlog&lt;BR /&gt;
index = linux_log&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/syslog]&lt;BR /&gt;
sourcetype = linux_syslog&lt;BR /&gt;
index = linux_log&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;Below  journal logs location:&lt;/P&gt;

&lt;P&gt;root@bos-server1:/run/log/journal/112824edd9f56398bab569035733662e# pwd&lt;BR /&gt;
/run/log/journal/112824edd9f56398bab569035733662e&lt;BR /&gt;
root@bos-rndapp02:/run/log/journal/112824edd9f56398bab569035733662e# ls -al&lt;BR /&gt;
total 344472&lt;BR /&gt;
drwxr-s---+ 2 root systemd-journal      220 Jan 21 13:40 .&lt;BR /&gt;
drwxr-sr-x  3 root systemd-journal       60 Sep 21 08:06 ..&lt;BR /&gt;
-rw-r-----+ 1 root systemd-journal 41943040 Jan 14 02:57 &lt;A href="mailto:system@dcf33424670b4269a8a8b1b6b5b86200-000000000043823d-00059bfe728bd765.journal" target="_blank"&gt;system@dcf33424670b4269a8a8b1b6b5b86200-000000000043823d-00059bfe728bd765.journal&lt;/A&gt;&lt;BR /&gt;
-rw-r-----+ 1 root systemd-journal 42151936 Jan 15 01:07 &lt;A href="mailto:system@dcf33424670b4269a8a8b1b6b5b86200-0000000000443355-00059c14f222a797.journal" target="_blank"&gt;system@dcf33424670b4269a8a8b1b6b5b86200-0000000000443355-00059c14f222a797.journal&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471201#M80998</guid>
      <dc:creator>meenakande</dc:creator>
      <dc:date>2020-09-30T04:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to send journal logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471202#M80999</link>
      <description>&lt;P&gt;When you restart Splunk (or the forwarder if that is what you are using) after changing the inputs.conf file, data should be sent to Splunk.  What do you get when you search &lt;CODE&gt;index=linux_log&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 12:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471202#M80999</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-11T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to send journal logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471203#M81000</link>
      <description>&lt;P&gt;Hello @meenakande ,&lt;/P&gt;

&lt;P&gt;depending on OS, the journal logs usually duplicated in various /var/log/*log so just by monitoring them with monitor stanza as you mentioned should work in most cases.&lt;BR /&gt;
The /run/log/journal/* files are binary files and cannot be consumed by splunk.&lt;/P&gt;

&lt;P&gt;If you run splunk forwarder as not root user then you need to modifiy file/folder permissions to allow splunk read logs in /var/log directory.&lt;/P&gt;

&lt;P&gt;What is the problem you are currently have?&lt;/P&gt;

&lt;P&gt;Run these commands on the linux splunk forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ps aux|grep -i splunk

ls -ld /var/log

ls -l /var/log/*log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Apr 2020 02:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471203#M81000</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-12T02:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to send journal logs to splunk ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471204#M81001</link>
      <description>&lt;P&gt;we are trying to send journal logs under this location to splunk cloud&lt;BR /&gt;
root@bos-server1:/run/log/journal/112824edd9f56398bab569035733662e# pwd&lt;BR /&gt;
/run/log/journal/112824edd9f56398bab569035733662e&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 13:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-journal-logs-to-splunk/m-p/471204#M81001</guid>
      <dc:creator>meenakande</dc:creator>
      <dc:date>2020-04-13T13:26:59Z</dc:date>
    </item>
  </channel>
</rss>

