<?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 TSTATS Sort by Indexed Time? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568235#M46653</link>
    <description>&lt;P&gt;Hi, I have an issue where I can see something is consuming licenses ingestion for a specific sourcetype. Unfortunately, the host is blank in&amp;nbsp;index=_internal source="*license_usage.log*, however, I do know the index. I cannot find what host is sending data Indexed today by potentially sending dates in the past. I have found sending events dates in the past to be this issues. Only time i have solved it before, is DEBUG an HEC and I don't want to keep doing that.&lt;/P&gt;&lt;P&gt;I want to do something like this:&lt;/P&gt;&lt;P&gt;| tstats count where index=os AND sourcetype=ps groupby host| where &amp;lt; actually ingest time was yesterday but event time was days in the past, list event time and ingest time&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Thank you!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 13:18:15 GMT</pubDate>
    <dc:creator>chrisboy68</dc:creator>
    <dc:date>2021-09-23T13:18:15Z</dc:date>
    <item>
      <title>TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568235#M46653</link>
      <description>&lt;P&gt;Hi, I have an issue where I can see something is consuming licenses ingestion for a specific sourcetype. Unfortunately, the host is blank in&amp;nbsp;index=_internal source="*license_usage.log*, however, I do know the index. I cannot find what host is sending data Indexed today by potentially sending dates in the past. I have found sending events dates in the past to be this issues. Only time i have solved it before, is DEBUG an HEC and I don't want to keep doing that.&lt;/P&gt;&lt;P&gt;I want to do something like this:&lt;/P&gt;&lt;P&gt;| tstats count where index=os AND sourcetype=ps groupby host| where &amp;lt; actually ingest time was yesterday but event time was days in the past, list event time and ingest time&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Thank you!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568235#M46653</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-23T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568248#M46655</link>
      <description>&lt;P&gt;Well, unfortunately, host is not a very reliable field on its own. Depends on how you're getting your data and what and how is being parsed from the events.&lt;/P&gt;&lt;P&gt;But to check who is sending "late" data (remember that it might be indeed sent with a great delay or you might simply have highly misconfigured time on the source system or badly set timezone) you can do something like&lt;/P&gt;&lt;PRE&gt;&amp;lt;&amp;lt;search across your indexes&amp;gt;&amp;gt; | eval delay=_indextime-_time | stats avg(delay) min(delay) max(delay) by source index host&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If you have consistent low values, your ingestion process is going smoothly. If you have several minutes delay, you have some bottlenecks (can be a normal state though in case of some ingestion forms - like forwarding data via WEF and reading them from Forwarded Items by UF). If you have negative values - you have problems with time sync. And so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568248#M46655</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-23T13:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568255#M46657</link>
      <description>&lt;P&gt;Thanks for the reply. That query did not tell me anything was wrong, all looked fine there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568255#M46657</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-23T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568257#M46658</link>
      <description>&lt;P&gt;Your best option is to enable Forwarder Monitoring on the Distributed Monitoring Console (DMC) or MC on the index master (if you don't have a DMC). That feature provides all types of detailed information on what forwarders are connected, status, data thruput, and a lot more.&lt;/P&gt;&lt;P&gt;See the following documentation for more:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/Updating/Forwardermanagementoverview" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/Updating/Forwardermanagementoverview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The DMC (or MC on master) also provides license utilization information at:&lt;BR /&gt;&lt;BR /&gt;Monitoring Console &amp;gt; Indexing &amp;gt; License Usage - Today or Historic License Usage (those are the two 'canned' options).&lt;/P&gt;&lt;P&gt;Worth noting if you have or try either option, you can hover over the graphs and click on "open in search" to see&amp;nbsp; the search(es) that power the panels. Those can also help give you a good base for building upon/modifying to suit your specific needs.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 14:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568257#M46658</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-09-23T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568286#M46659</link>
      <description>&lt;P&gt;Thanks. Yeah looked at that, even have MetaWoot gathering metrics. None of those will show me ingest if the event date is in the past. Next stop debugging.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568286#M46659</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-23T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568289#M46660</link>
      <description>&lt;P&gt;One option is install e.g. Meta Woot and use it to figure out which source sends those logs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2949/" target="_blank"&gt;https://splunkbase.splunk.com/app/2949/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568289#M46660</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-09-23T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568401#M46670</link>
      <description>&lt;P&gt;Update. So I had to put HEC into DEBUG mode to find my issue&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;body_chunk="{"time":1630910039.599,"index":"os","host":"myhost","source":"ps","sourcetype":"ps",&lt;/LI-CODE&gt;&lt;P&gt;Just a snippet of the event above. The "time" sent in, is for the past. The HEC received time is Sept 6-time, but the actual time is Sept-24-time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the problem I'm trying to find without having to place an indexer into DEBUG mode.&amp;nbsp; To clarify the question, how would I find this problem in the future by SPL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568401#M46670</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-24T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568402#M46671</link>
      <description>&lt;P&gt;And are you able to find those events in indexes? What's their _time and _indextime?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568402#M46671</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-24T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568425#M46674</link>
      <description>&lt;P&gt;I'm stumped. So using this debug data , I did a search specifc to the time. Time picker was selected for Sept 6 (same day)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os sourcetype=ps host=MyHost _time=1630910039.599  | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S")
|  table host _time indextime&lt;/LI-CODE&gt;&lt;P&gt;Returns,&amp;nbsp; the event time and indexed time differences, see below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisboy68_0-1632505666105.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16153i2B17257DDC680B4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisboy68_0-1632505666105.png" alt="chrisboy68_0-1632505666105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yeah, so my hunch was right. Now I want to reverse engineer some spl i can run now and find some issues. So lets just start with using a time modifier for index_earliest and spot check before I do some time math.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os sourcetype=ps _index_earliest=-24h 
| eval indextime=strftime(_indextime,"%Y-%m-%d") 
| eval event_time =strftime(_time, "%Y-%m-%d") 
| table host _time indextime event_time&lt;/LI-CODE&gt;&lt;P&gt;The above does not pull back any data. If I remove the Timemodifier in the SPL and set the time picker for 24hrs, I do get back data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrisboy68_2-1632506135906.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16155i5F53C5D844D60BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chrisboy68_2-1632506135906.png" alt="chrisboy68_2-1632506135906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568425#M46674</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-24T17:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568426#M46675</link>
      <description>&lt;P&gt;&amp;nbsp;Quoting the docs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;When using index-time based modifiers such as _index_earliest and _index_latest, your search must also have an event-time window which will retrieve the events. In other words, chunks of events might be ruled out based on the non index-time window as well as the index-time window. To be certain of retrieving every event based on index-time, you must run your search using All Time.&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Sep 2021 18:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568426#M46675</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-24T18:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568427#M46676</link>
      <description>&lt;P&gt;Ugh. Seem counter intuitive. Thought time modifiers in SPL overrode the time picker.&amp;nbsp; Anyway, thanks, so I can just run some SPL for last 30-60 days in hopes I find my problem in the future. If someone is pushing events in the past like months and years in the past, it will be a heavy query...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 18:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568427#M46676</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2021-09-24T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS Sort by Indexed Time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568430#M46677</link>
      <description>&lt;P&gt;It's not that counter-intuitive if you come to think of it. _time is the primary way of limiting buckets that splunk searches. _indexedtime is just a field there. So effectively, limiting index time is just like adding additional conditions on a field.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 18:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Sort-by-Indexed-Time/m-p/568430#M46677</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-24T18:28:00Z</dc:date>
    </item>
  </channel>
</rss>

