<?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: Why my search is return no result ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519502#M146334</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;running&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc 
| eval dummy="true"
| eval epochnow = now()
| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")| eval Horodate=strftime(epochHorodate, "%Y-%m-%dT%H:%M:%S")
| table _time epochnow epochHorodate&lt;/LI-CODE&gt;&lt;P&gt;which results do you have?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 16:34:46 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-14T16:34:46Z</dc:date>
    <item>
      <title>Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519485#M146324</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a search like this applied on many queries :&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="abs" field1="aaa" field2="bbb"&amp;nbsp;&lt;BR /&gt;| eval dummy="true"&lt;BR /&gt;| eval epochnow = now()&lt;BR /&gt;| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")&lt;/P&gt;&lt;P&gt;| eval Horodate=strftime(epochHorodate, "%Y-%m-%dT%H:%M:%S")&lt;BR /&gt;| where epochnow&amp;gt;=epochHorodate&lt;BR /&gt;| eval _time=Horodate&lt;BR /&gt;| stats count(eval(Statut=="KO")) as KO by _time&lt;BR /&gt;| sort _time ASC&lt;BR /&gt;| appendpipe&lt;BR /&gt;[| stats sum(KO) as KO&lt;BR /&gt;| eval _time=now()]&lt;/P&gt;&lt;P&gt;Usually the search return a result like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_1-1600098426870.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10812i3CB14556567F04DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_1-1600098426870.png" alt="mah_1-1600098426870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the sum of KO / day. And then I use the single value for the visualization :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_2-1600098619474.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10813i97450350749BA0A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_2-1600098619474.png" alt="mah_2-1600098619474.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that on one query I have this error :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_3-1600098723353.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10814i6B24A90A649B1A4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_3-1600098723353.png" alt="mah_3-1600098723353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And it doesn't span bay day anymore.&lt;/P&gt;&lt;P&gt;Can you help me please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 15:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519485#M146324</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-09-14T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519489#M146327</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The approach to debug a search is to delete one row at a time from the end of the search to understand&amp;nbsp; which row has the problem.&lt;/P&gt;&lt;P&gt;Anyway, probably the problem is that you want to sort for ASC (&lt;SPAN&gt;| sort _time ASC)&lt;/SPAN&gt;, but ASC isn't present in the previous stats command, so you haven't anymore after "&lt;SPAN&gt;| stats count(eval(Statut=="KO")) as KO by _time"&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519489#M146327</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-14T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519498#M146331</link>
      <description>&lt;P&gt;I put the&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;| stats count(eval(Statut=="KO")) as KO by _time" at the end in order to answer to this other issue :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-not-working-at-all/m-p/519370#M34868" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-not-working-at-all/m-p/519370#M34868&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've already tried to see command by command but I don't find where it goes wrong.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find out that at this command : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=abc&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| eval dummy="true"&lt;BR /&gt;| eval epochnow = now()&lt;BR /&gt;| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")| eval Horodate=strftime(epochHorodate, "%Y-%m-%dT%H:%M:%S")&lt;BR /&gt;| where epochnow&amp;gt;=epochHorodate&lt;BR /&gt;| eval _time=Horodate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The _time returned like this :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NaN/NaN/aN&lt;BR /&gt;NaN:NaN:NaN.000 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;and then when I added this command and put a single value, the problem is the same :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"These results may be truncated. This visualization is configured to display a maximum of 1000 results per series, and that limit has been reached."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519498#M146331</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-09-14T16:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519502#M146334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;running&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc 
| eval dummy="true"
| eval epochnow = now()
| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")| eval Horodate=strftime(epochHorodate, "%Y-%m-%dT%H:%M:%S")
| table _time epochnow epochHorodate&lt;/LI-CODE&gt;&lt;P&gt;which results do you have?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519502#M146334</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-14T16:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519624#M146354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I run the above command :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1600155104060.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10835iAC969F5128DDC1A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1600155104060.png" alt="mah_0-1600155104060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I run the eval command I have in my begining search :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_1-1600155219295.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10836i8EEEC53EF57437C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_1-1600155219295.png" alt="mah_1-1600155219295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I added the following command : | stats count(eval(Statut=="KO")) as KO by _time&lt;/P&gt;&lt;P&gt;The problem still the same :&amp;nbsp; it doesn't make a span by day anymore and the visualization goes wrong :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_2-1600155440539.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10837iBEA846958DD92CA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_2-1600155440539.png" alt="mah_2-1600155440539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_3-1600155460435.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10838i13FD0714F7A6B7EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_3-1600155460435.png" alt="mah_3-1600155460435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519624#M146354</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-09-15T07:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519628#M146355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first you don't need to rename Horodate as _time (&lt;SPAN&gt;| eval _time=Horodate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then I don't like the double "=".&lt;/P&gt;&lt;P&gt;Then, if you want to use stats BY _time (or Horodate), you have to put a bin command before to group values, otherwise you have touse the timechart command that permits to define the span:&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="abs" field1="aaa" field2="bbb" 
| eval epochnow = now()
| eval epochHorodate=strptime(Horodate, "%Y-%m-%dT%H:%M:%S")
| where epochnow&amp;gt;=epochHorodate
| bin Horodate span=1d
| stats count(eval(Statut="KO")) as KO values(ASC) AS ASC by Horodate
| sort _time ASC&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519628#M146355</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-15T07:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519644#M146357</link>
      <description>&lt;P&gt;The bin doesn't work with the Horodate :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_0-1600159431516.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10841i77C38F61D83F7B9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_0-1600159431516.png" alt="mah_0-1600159431516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But works with _time :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mah_1-1600159480157.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10842iA789D809BCB163B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mah_1-1600159480157.png" alt="mah_1-1600159480157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519644#M146357</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-09-15T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519674#M146362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;do it solve your need?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519674#M146362</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-15T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519684#M146363</link>
      <description>&lt;P&gt;It works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519684#M146363</guid>
      <dc:creator>mah</dc:creator>
      <dc:date>2020-09-15T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why my search is return no result ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519726#M146370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222120"&gt;@mah&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;good!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated&lt;SPAN&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-my-search-is-return-no-result/m-p/519726#M146370</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-15T14:43:15Z</dc:date>
    </item>
  </channel>
</rss>

