<?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 Re: How to read syslog events in Linux CLI? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306127#M57752</link>
    <description>&lt;P&gt;The splunk &lt;CODE&gt;tsidx&lt;/CODE&gt; format is not really geared for direct examination but you can, as @aakwah explained.  The other thing that you can do is run searches from the CLI, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search "index=foo bar"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, you can check your syslog configuration to see where it is writing the incoming data (or your Splunk &lt;CODE&gt;inputs.conf&lt;/CODE&gt;) and do a &lt;CODE&gt;tail -f &amp;lt;filename&amp;gt;&lt;/CODE&gt; on those files to see the data coming in.   You can also use &lt;CODE&gt;tcpdump&lt;/CODE&gt; to snoop the incoming port to grab it before/as it comes into syslog.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 18:47:49 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-22T18:47:49Z</dc:date>
    <item>
      <title>How to read syslog events in Linux CLI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306125#M57750</link>
      <description>&lt;P&gt;hai,&lt;/P&gt;

&lt;P&gt;I have installed Splunk on cent-os 6.5 and able to see the syslog events on GUI. I want to see those events on CLI too.&lt;/P&gt;

&lt;P&gt;So what is the path of these events that will be stored so that I can verify in that file.&lt;/P&gt;

&lt;P&gt;Got some info that the log file will be under $SPLUNK_HOME/var/lib/splunk/[Index_Name] , but i didnt see any file here.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@Thirumal-LDNS ~]# vim /opt/splunk/var/lib/splunk/
audit/              .dirty_database     historydb/          _introspection.dat  summary.dat         _thefishbucket.dat
_audit.dat          fishbucket/         _internal.dat       kvstore/            summarydb/
authDb/             hashDb/             _internaldb/        main.dat            _telemetry/
defaultdb/          history.dat         _introspection/     persistentstorage/  _telemetry.dat
[root@Thirumal-LDNS ~]# vim /opt/splunk/var/lib/splunk/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306125#M57750</guid>
      <dc:creator>thirumal_tr</dc:creator>
      <dc:date>2020-09-29T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to read syslog events in Linux CLI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306126#M57751</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;All data ingested to Splunk are saved in the index at the same location you are accessing above (default path for indexes, and it can be changed).&lt;/P&gt;

&lt;P&gt;The index is a proprietary data store created by Splunk and it consists of raw files which are not supposed to viewed by a text editor, however if you grep certain log lines you will get the corresponding bucket.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;grep -R 'port=49872' /opt/splunk/var/lib/splunk//*&lt;/P&gt;

&lt;P&gt;For more details have a look to this question:&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/6467/what-is-splunk-database-engine.html"&gt;https://answers.splunk.com/answers/6467/what-is-splunk-database-engine.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 14:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306126#M57751</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-22T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read syslog events in Linux CLI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306127#M57752</link>
      <description>&lt;P&gt;The splunk &lt;CODE&gt;tsidx&lt;/CODE&gt; format is not really geared for direct examination but you can, as @aakwah explained.  The other thing that you can do is run searches from the CLI, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search "index=foo bar"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, you can check your syslog configuration to see where it is writing the incoming data (or your Splunk &lt;CODE&gt;inputs.conf&lt;/CODE&gt;) and do a &lt;CODE&gt;tail -f &amp;lt;filename&amp;gt;&lt;/CODE&gt; on those files to see the data coming in.   You can also use &lt;CODE&gt;tcpdump&lt;/CODE&gt; to snoop the incoming port to grab it before/as it comes into syslog.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-syslog-events-in-Linux-CLI/m-p/306127#M57752</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-22T18:47:49Z</dc:date>
    </item>
  </channel>
</rss>

