<?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: scheduled task in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687145#M12476</link>
    <description>&lt;P&gt;I want a scheduled task to run the query and save it twice a day, every day.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 09:05:20 GMT</pubDate>
    <dc:creator>m92</dc:creator>
    <dc:date>2024-05-10T09:05:20Z</dc:date>
    <item>
      <title>scheduled task</title>
      <link>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687141#M12474</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;&lt;P&gt;I'd like to schedule a query twice a day. For example, one at 12:00 PM and the other at 7:00 PM, and then receive a report of each query. This would save me from having to run the query each time manually. Is it possible, and if so, how can I do it?&lt;/P&gt;&lt;P&gt;The query in question is:&lt;/P&gt;&lt;P&gt;(index="index1" Users=* IP=*) OR (index="index2" tag=1)&lt;BR /&gt;| where NOT match(Users, "^AAA-[0-9]{5}\$")&lt;BR /&gt;| where NOT match(Users, "^AAA[A-Z0-9]{10}\$")&lt;BR /&gt;| eval ip=coalesce(IP, srcip)&lt;BR /&gt;| stats&lt;BR /&gt;dc(index) AS index_count&lt;BR /&gt;values(Users) AS Users&lt;BR /&gt;values(destip) AS destip&lt;BR /&gt;values(service) AS service&lt;BR /&gt;earliest(_time) AS earliest&lt;BR /&gt;latest(_time) AS latest&lt;BR /&gt;BY ip&lt;BR /&gt;| where index_count&amp;gt;1&lt;BR /&gt;| eval&lt;BR /&gt;earliest=strftime(earliest,"%Y-%m-%d %H:%M:%S"),&lt;BR /&gt;latest=strftime(latest,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table Users, ip, dest_ip, service, earliest, latest&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 08:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687141#M12474</guid>
      <dc:creator>m92</dc:creator>
      <dc:date>2024-05-10T08:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled task</title>
      <link>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687144#M12475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267617"&gt;@m92&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can schedule the runs of your alert twice in a day using cron:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;0 12,19 * * *&lt;/LI-CODE&gt;&lt;P&gt;the question is: do you want the same time period (e.g. 24 hours) on bothe the searches?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 09:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687144#M12475</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-10T09:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled task</title>
      <link>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687145#M12476</link>
      <description>&lt;P&gt;I want a scheduled task to run the query and save it twice a day, every day.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 09:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687145#M12476</guid>
      <dc:creator>m92</dc:creator>
      <dc:date>2024-05-10T09:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: scheduled task</title>
      <link>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687170#M12477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267617"&gt;@m92&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;using the above cron, you run your scheduled search at 12:00 and 19:00.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/scheduled-task/m-p/687170#M12477</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-10T14:26:45Z</dc:date>
    </item>
  </channel>
</rss>

