<?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 execute a search for each day within a range in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547064#M37610</link>
    <description>&lt;P&gt;Currently the search gives a single row of data for whatever length of time I select. I want it to give a row for every day in the length of time I select so I can do some analysis with the numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the timechart recommendation, and get the following errors:&lt;/P&gt;&lt;DIV class="alerts search-searchflashmessages"&gt;&lt;DIV class="alert alert-error"&gt;Error in 'timechart' command: You must specify data field(s) to chart.&lt;DIV class="job-status-container"&gt;&lt;DIV class="shared-jobstatus"&gt;&lt;DIV class="alert alert-error"&gt;The search job has failed due to an error. You may be able view the job in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 07 Apr 2021 15:54:03 GMT</pubDate>
    <dc:creator>frostyflamez</dc:creator>
    <dc:date>2021-04-07T15:54:03Z</dc:date>
    <item>
      <title>How to execute a search for each day within a range</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547044#M37605</link>
      <description>&lt;P&gt;Here is the search I'm running:&lt;/P&gt;&lt;P&gt;index=cdb_summary source=CDM_*_Daily_Summary fismaid=* sourcetype=swam_summary OR sourcetype=hwam_summary&lt;BR /&gt;| stats sum(TotalManaged) as TotalApplicable,count(eval(AutoFail=="False")) as GoodAssets , sum(NotScanned) as NotScanned,values(FailedCPE) as FailedCPEs, count(FailedCPE) as FailedCPE&lt;BR /&gt;| eval SWAM_Score=round((TotalApplicable-NotScanned-FailedCPE)/TotalApplicable*100)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to get results from each day within a given timeframe to use for the ML Toolkit.&amp;nbsp; I've tried timewrap, but it returns no results. How can I get a search to run this query for each day in a given timeframe?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547044#M37605</guid>
      <dc:creator>frostyflamez</dc:creator>
      <dc:date>2021-04-07T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a search for each day within a range</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547048#M37607</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=cdb_summary source=CDM_*_Daily_Summary fismaid=* sourcetype=swam_summary OR sourcetype=hwam_summary
| bin span=1d _time
| stats sum(TotalManaged) as TotalApplicable,count(eval(AutoFail=="False")) as GoodAssets , sum(NotScanned) as NotScanned,values(FailedCPE) as FailedCPEs, count(FailedCPE) as FailedCPE by _time
| eval SWAM_Score=round((TotalApplicable-NotScanned-FailedCPE)/TotalApplicable*100)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547048#M37607</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-07T14:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a search for each day within a range</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547059#M37609</link>
      <description>&lt;P&gt;I am not sure if I understand your question right but if you want to have the results for just a timeframe of some days for example every day from 05:00 to 23:00 you can add somethin like that:&lt;/P&gt;&lt;P&gt;......| eval eventHour=strftime(_time,"%H") | search eventHour&amp;gt;5 AND eventHour&amp;lt;23&lt;BR /&gt;&lt;BR /&gt;for whole days i would use:&lt;/P&gt;&lt;P&gt;| timchart span=%%&lt;/P&gt;&lt;P&gt;with the span you want to compare.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547059#M37609</guid>
      <dc:creator>RetailOperation</dc:creator>
      <dc:date>2021-04-07T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a search for each day within a range</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547064#M37610</link>
      <description>&lt;P&gt;Currently the search gives a single row of data for whatever length of time I select. I want it to give a row for every day in the length of time I select so I can do some analysis with the numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the timechart recommendation, and get the following errors:&lt;/P&gt;&lt;DIV class="alerts search-searchflashmessages"&gt;&lt;DIV class="alert alert-error"&gt;Error in 'timechart' command: You must specify data field(s) to chart.&lt;DIV class="job-status-container"&gt;&lt;DIV class="shared-jobstatus"&gt;&lt;DIV class="alert alert-error"&gt;The search job has failed due to an error. You may be able view the job in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-execute-a-search-for-each-day-within-a-range/m-p/547064#M37610</guid>
      <dc:creator>frostyflamez</dc:creator>
      <dc:date>2021-04-07T15:54:03Z</dc:date>
    </item>
  </channel>
</rss>

