<?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 check if an event runs once a day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365509#M107791</link>
    <description>&lt;P&gt;You can add a parameter called limit in the timechart command which limits the number of columns generated.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1d limit=50 count by TableName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 May 2017 19:27:54 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-05T19:27:54Z</dc:date>
    <item>
      <title>How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365505#M107787</link>
      <description>&lt;P&gt;I have a job that runs and deletes data from a data base. After it deletes the data it outputs which days it deleted which table in a log of the form:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**start of A**
ODATE=2017-05-05
PurgeDate="2017-04-14,2017-04-15"
TableName=A
**start of B**
ODATE=2017-05-05
PurgeDate="2017-04-10"
TableName=B
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The file gets split into multple logs, one for each Table. How can I have a chart/table/dashboard that tells me the last X days that have been purged for each table?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 18:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365505#M107787</guid>
      <dc:creator>Splunkster45</dc:creator>
      <dc:date>2017-05-05T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365506#M107788</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search 
| makemv delim="," PurgeDate | mvexapnd PurgeDate
| eval _time=strptime(PurgeDate,"%Y-%m-%d") 
| timechart span=1d count by TableName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2017 18:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365506#M107788</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-05T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365507#M107789</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search here | stats values(PurgeDate) by TableName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should show a table with each TableName and the dates that they have been purged&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 18:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365507#M107789</guid>
      <dc:creator>ckunath</dc:creator>
      <dc:date>2017-05-05T18:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365508#M107790</link>
      <description>&lt;P&gt;This largely worked for me. However, after 10 results tables, it combined all of the other tables into the category "other." Is there a way to increase this limit?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 19:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365508#M107790</guid>
      <dc:creator>Splunkster45</dc:creator>
      <dc:date>2017-05-05T19:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365509#M107791</link>
      <description>&lt;P&gt;You can add a parameter called limit in the timechart command which limits the number of columns generated.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1d limit=50 count by TableName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2017 19:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365509#M107791</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-05T19:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an event runs once a day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365510#M107792</link>
      <description>&lt;P&gt;Hi Splunkster45,&lt;BR /&gt;
To reach you goal you have to do some steps  (probably someone of them already done)&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;ingest logs &lt;/LI&gt;
&lt;LI&gt;run a search&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;1 ingest logs&lt;/STRONG&gt;&lt;BR /&gt;
download an example of you file and find the correct sourcetype using the Splunk web interface&lt;BR /&gt;
it should be something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\*\*start\sof\s\w+\*\*
TIME_FORMAT=%Y-%m-%d
TIME_PREFIX=ODATE\=
MAX_TIMESTAMP_LOOKAHEAD=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;2 run a search&lt;/STRONG&gt;&lt;BR /&gt;
run a serch like the following example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index sourcetype=your_sourcetype 
| makemv delim="," PurgeDate 
| table _time TableName PurgeDate
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2017 09:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-an-event-runs-once-a-day/m-p/365510#M107792</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-05-06T09:28:19Z</dc:date>
    </item>
  </channel>
</rss>

