<?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 timechart on a single set of logs each 24 hour period into Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584330#M203476</link>
    <description>&lt;P&gt;It depends what is unique and what is duplicated in the events pulled on the same day&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 15:58:40 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-02-09T15:58:40Z</dc:date>
    <item>
      <title>How to timechart on a single set of logs each 24 hour period into Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584323#M203473</link>
      <description>&lt;P&gt;Hi there- I have a simple dashboard that allows me to see growth around the number of Live / Archived accounts we manage in Google.&lt;/P&gt;
&lt;P&gt;We currently have a daily pull of the directory service into Splunk, which allows for the following query to be run (I have a few like this with Archived / Live being the adjustments I make):&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;index="google" sourcetype="*directory*" "emails{}.address"="*@mydomain.com"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| timechart count by archived span=1d cont=FALSE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;In the last week or so we have had some issues in that sometimes we get two or three directory pulls into Splunk, which results in the graph displaying double / triple the count of data (see attached image)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-09 at 7.27.36 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17895iE3E18CCC8D442A82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-09 at 7.27.36 AM.png" alt="Screen Shot 2022-02-09 at 7.27.36 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question is as follows:&lt;/P&gt;
&lt;P&gt;Are there any additional variables I can add into my query to ONLY interpret one data pull per 24 hour period?&amp;nbsp; &amp;nbsp; This will allow for consistent reporting in the face of inconsistent directory pulls into Splunk.&lt;/P&gt;
&lt;P&gt;I have poked around a bit with Timechart but feel I perhaps I should be using a stats command instead...?&amp;nbsp; any direction on which approach to use is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584323#M203473</guid>
      <dc:creator>daryllj</dc:creator>
      <dc:date>2022-02-09T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584330#M203476</link>
      <description>&lt;P&gt;It depends what is unique and what is duplicated in the events pulled on the same day&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584330#M203476</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-09T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584377#M203495</link>
      <description>&lt;P&gt;in this case, it is a full directory dump of a few thousand account names and email address- with it being a point in time reference to an existing directory at the time it was exported.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584377#M203495</guid>
      <dc:creator>daryllj</dc:creator>
      <dc:date>2022-02-09T20:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584392#M203501</link>
      <description>&lt;P&gt;Do any of dumps overlap in time? Some rough ideas if not:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;All records in a dump have same timestamp&lt;/TD&gt;&lt;TD width="50%"&gt;Use earliest of the day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Dumps are periodic&lt;/TD&gt;&lt;TD width="50%"&gt;Bucket time according to period, then use the first period of the day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dumps are random but sufficiently separate from one another&lt;/TD&gt;&lt;TD&gt;Use a time-based transaction (expensive)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Each dump has a unique identifier&lt;/TD&gt;&lt;TD&gt;Use earliest of the day&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 09 Feb 2022 22:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584392#M203501</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-02-09T22:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584401#M203502</link>
      <description>&lt;P&gt;Can you instead try a distinct count, assuming the archived account values are what is unique?&lt;BR /&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;index="google" sourcetype="*directory*" "emails{}.address"="*@mydomain.com"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| timechart dc(archived) span=1d cont=FALSE&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 23:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584401#M203502</guid>
      <dc:creator>moliminous</dc:creator>
      <dc:date>2022-02-09T23:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584758#M203701</link>
      <description>&lt;P&gt;the good news is that they do not have time overlaps- looking at the directory dumps they seem to come in every hour or so- so I feel we are on the right track for "use earliest of the day"- now I can do a bit more digging to figure out the code for that.&lt;/P&gt;&lt;P&gt;I am going to explore variables in the query a bit more to see if there are some extra flags that can reference the earliest entry in a day.....let's see how far I can get!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 15:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584758#M203701</guid>
      <dc:creator>daryllj</dc:creator>
      <dc:date>2022-02-11T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to timechart on a single set of logs each 24 hour period into Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584789#M203706</link>
      <description>&lt;P&gt;If that hourly cycle is reliable, first-hour-of-the-day events can be filtered by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where date_hour=0&lt;/LI-CODE&gt;&lt;P&gt;date_hour is a meta field that Splunk automatically provides. &amp;nbsp;No need to addinfo.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-timechart-on-a-single-set-of-logs-each-24-hour-period/m-p/584789#M203706</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-02-11T18:09:38Z</dc:date>
    </item>
  </channel>
</rss>

