<?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 can I produce results with a span of 1 day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487401#M193827</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;below is my actual quiry&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2019 09:11:21 GMT</pubDate>
    <dc:creator>Gowtham0809</dc:creator>
    <dc:date>2019-09-18T09:11:21Z</dc:date>
    <item>
      <title>How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487397#M193823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am joining several source files in splunk to degenerate some total count. One thing to note is I am using ctcSalt= to reindex all my source file to day, as only very few files will be chnaged when compared to other and i need to reindex all the files as per my usecase. &lt;/P&gt;

&lt;P&gt;Here I start using | stats count | timechart span=1d count(field) at the end of of the string and it does not provide any results, i also tries xyseries still no results.&lt;/P&gt;

&lt;P&gt;How do i span the results for each day?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 07:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487397#M193823</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2019-09-18T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487398#M193824</link>
      <description>&lt;P&gt;timechart requires a _time field. For example, the daily count is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2019 07:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487398#M193824</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-09-18T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487399#M193825</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I am able to generate the single day count by adding (my search)| stats count, but if use (my search) |timechart span=1d count or (my search) | stats count |timechart span=1d count, I am not gettting any results and provided time range is all time.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 07:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487399#M193825</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2019-09-18T07:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487400#M193826</link>
      <description>&lt;P&gt;(my search)| stats count&lt;BR /&gt;
 (my search) |timechart span=1d count &lt;BR /&gt;
The top moves but the bottom doesn't move, you can only think of deleting ”_time”. Please provide a complete search statement.&lt;/P&gt;

&lt;P&gt;(my search) | stats count |timechart span=1d count,&lt;BR /&gt;
→This doesn't work&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 08:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487400#M193826</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-09-18T08:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487401#M193827</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;below is my actual quiry&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487401#M193827</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2019-09-18T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487402#M193828</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; |table TestCaseName,SysReqID,TestCaseID,Verdict,CurrentTestcaseResultURL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can't use "timechart" here because "_time" is gone.&lt;/P&gt;

&lt;P&gt;Also, due to "dedup", there will be only the latest one for each "CurrentTestcaseResultURL".&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 04:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487402#M193828</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-09-19T04:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487403#M193829</link>
      <description>&lt;P&gt;Thanks for your reply. And Yes, we use dedup to fecth only the latest url for each day. Thats why we re-index the data every day. is there any other way to get the historical trend for this search on daily basis?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 05:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487403#M193829</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2019-09-19T05:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487404#M193830</link>
      <description>&lt;P&gt;For example, how about setting the "target date" so that it is always included in DEDUP, JOIN, and STATS?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval target_date=strftime(_time,"%Y-%m-%d")

EX.
index="usa_*_test"・・・
・・・|join type=inner DNGProjectAreaID,target_date
・・・|dedup LinkStartID,target_date
・・・|stats count by target_date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;・・・・・・・&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487404#M193830</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-09-19T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I produce results with a span of 1 day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487405#M193831</link>
      <description>&lt;P&gt;Thanks for the update, I managed to come up with a solution by scheduling the report to generate a csv and append the same everyday to reach by visualization destination. I will also try out your opinion.  Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 06:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-produce-results-with-a-span-of-1-day/m-p/487405#M193831</guid>
      <dc:creator>Gowtham0809</dc:creator>
      <dc:date>2019-09-19T06:35:39Z</dc:date>
    </item>
  </channel>
</rss>

