<?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: Firewall indexing latency: How to track when syslog is read by file monitor when the log is seen in search GUI? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109665#M23044</link>
    <description>&lt;P&gt;&lt;CODE&gt;index=firewall | head 1 | eval diff=now()-_time | table diff&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;would work if you can assume that the logs are written to file, and that the &lt;CODE&gt;[monitor]&lt;/CODE&gt; stanza picks them up, in a timely manner.&lt;/P&gt;

&lt;P&gt;Basically, it will show the difference between when the search is run (&lt;CODE&gt;now()&lt;/CODE&gt;) and the timestamp of the last event. This assumes that clocks are not too far off &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Sep 2014 19:19:46 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2014-09-03T19:19:46Z</dc:date>
    <item>
      <title>Firewall indexing latency: How to track when syslog is read by file monitor when the log is seen in search GUI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109664#M23043</link>
      <description>&lt;P&gt;I can find the latency for firewall log indexing like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=Firewall | eval diff_sec=(_indextime - _time)| where diff_sec &amp;gt; 0 | stats avg(diff_sec) as latency&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;this shows a latency of about 3 minutes&lt;/P&gt;

&lt;P&gt;the problem is that when I search the logs I often do not get any messages or logs for the first 15 to 20 minutes.&lt;/P&gt;

&lt;P&gt;is there a way I can track when the syslog is read by file monitor when the log is seen in the search GUI.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109664#M23043</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-09-03T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Firewall indexing latency: How to track when syslog is read by file monitor when the log is seen in search GUI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109665#M23044</link>
      <description>&lt;P&gt;&lt;CODE&gt;index=firewall | head 1 | eval diff=now()-_time | table diff&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;would work if you can assume that the logs are written to file, and that the &lt;CODE&gt;[monitor]&lt;/CODE&gt; stanza picks them up, in a timely manner.&lt;/P&gt;

&lt;P&gt;Basically, it will show the difference between when the search is run (&lt;CODE&gt;now()&lt;/CODE&gt;) and the timestamp of the last event. This assumes that clocks are not too far off &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2014 19:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109665#M23044</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-09-03T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Firewall indexing latency: How to track when syslog is read by file monitor when the log is seen in search GUI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109666#M23045</link>
      <description>&lt;P&gt;Kristian, thanks for your suggestion. I used it to build this graph&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=firewall | head 1 | eval diff=now()-_time | table diff | eval diffmin=diff/60 | gauge diffmin 0 5 10 15 20&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I had a problem running this in real time but if I schedule for every 5 minutes and send results to summary I can get a fairly true history of latency.  If you would like to put your comment in as an answer I will accept it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109666#M23045</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-09-04T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Firewall indexing latency: How to track when syslog is read by file monitor when the log is seen in search GUI?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109667#M23046</link>
      <description>&lt;P&gt;here you go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Firewall-indexing-latency-How-to-track-when-syslog-is-read-by/m-p/109667#M23046</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-04T13:49:52Z</dc:date>
    </item>
  </channel>
</rss>

