<?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 do you search results produced from a timechart...by command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89959#M23082</link>
    <description>&lt;P&gt;Great! Happy Splunking.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2012 06:09:26 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2012-03-14T06:09:26Z</dc:date>
    <item>
      <title>How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89954#M23077</link>
      <description>&lt;P&gt;I have a query similar to below:&lt;/P&gt;

&lt;P&gt;... | timechart span=30s count by host &lt;/P&gt;

&lt;P&gt;resulting in output that looks like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_time                 hosta     hostb &lt;BR /&gt;
3/12/12 15:10:00        6        0&lt;BR /&gt;
3/12/12 15:10:30        10       5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;From this output I'm only interested in '0' values and would like to report host and time values for those instances.  I'm unable to craft a query to get a handle on values in this timechart command.  Is there some way to address the count and host values in a subsequent search?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 00:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89954#M23077</guid>
      <dc:creator>saltmills</dc:creator>
      <dc:date>2012-03-13T00:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89955#M23078</link>
      <description>&lt;P&gt;Try something like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bucket _time span="30s"| stats count by host,_time | where count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Mar 2012 02:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89955#M23078</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-03-13T02:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89956#M23079</link>
      <description>&lt;P&gt;Thanks for response.   &lt;/P&gt;

&lt;P&gt;I'm actually using bucket command earlier in the query. However, it will not report a _time value for which no matching events occur, and no count=0 match will ever appear in your final results.   By having the timechart command I can at least get count=0 instances appearing in the results along with associated _time and host, but the question is how do I isolate them?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 04:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89956#M23079</guid>
      <dc:creator>saltmills</dc:creator>
      <dc:date>2012-03-13T04:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89957#M23080</link>
      <description>&lt;P&gt;Ok , the &lt;STRONG&gt;untable&lt;/STRONG&gt; command after &lt;STRONG&gt;timechart&lt;/STRONG&gt; seems to produce the desired output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span="30s" count by  host | untable _time host count | where count=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2012 02:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89957#M23080</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-03-14T02:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89958#M23081</link>
      <description>&lt;P&gt;Nice. That does it! Thanks for help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 05:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89958#M23081</guid>
      <dc:creator>saltmills</dc:creator>
      <dc:date>2012-03-14T05:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89959#M23082</link>
      <description>&lt;P&gt;Great! Happy Splunking.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 06:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/89959#M23082</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-03-14T06:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504287#M140766</link>
      <description>&lt;P&gt;There is a subtle but very important distinction between Bin w/Span and STATS by metric _time&amp;nbsp; .vs. timechart with Span by metric . The timechart shows the intervals even when there are no events whereas the Stats with Bin will not.&amp;nbsp; So if you need to know when an event is missing timechart with untable is your friend.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 22:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504287#M140766</guid>
      <dc:creator>mpwelch</dc:creator>
      <dc:date>2020-06-13T22:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504290#M140768</link>
      <description>&lt;P&gt;I looked into it once.&lt;/P&gt;&lt;P&gt;It's in Japanese, but try using Google Translate.&lt;/P&gt;&lt;P&gt;日本語:&lt;/P&gt;&lt;P&gt;&lt;A href="https://qiita.com/toshikawa/items/8fa44753bc8f2a4c9cb0" target="_blank"&gt;https://qiita.com/toshikawa/items/8fa44753bc8f2a4c9cb0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;English translate:&lt;BR /&gt;&lt;A href="https://translate.google.co.jp/translate?hl=ja&amp;amp;sl=ja&amp;amp;tl=en&amp;amp;u=https%3A%2F%2Fqiita.com%2Ftoshikawa%2Fitems%2F8fa44753bc8f2a4c9cb0" target="_blank"&gt;https://translate.google.co.jp/translate?hl=ja&amp;amp;sl=ja&amp;amp;tl=en&amp;amp;u=https%3A%2F%2Fqiita.com%2Ftoshikawa%2Fitems%2F8fa44753bc8f2a4c9cb0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Personally, I think &lt;STRONG&gt;stats&lt;/STRONG&gt; and &lt;STRONG&gt;bin&lt;/STRONG&gt; are easier to do if you want to aggregate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 00:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504290#M140768</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-14T00:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you search results produced from a timechart...by command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504317#M140778</link>
      <description>&lt;P&gt;I think you missed the point. timechart span=1m creates _time for each minute whereas bin _time span=1m only has _time for events which exist. timechart can be useful to see for instance the minutes where expected events didn't occur but should have.&amp;nbsp; Identifying minutes where count=0 is easily accomplished with timechart but with a by the untable is needed to allow where count=0. In any case, the suggestion to use untable then use the where statement with timechart/by solved my problem and why I gave Karma. How do you search results produced from a timechart with a by? Use untable!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 16:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-search-results-produced-from-a-timechart-by-command/m-p/504317#M140778</guid>
      <dc:creator>mpwelch</dc:creator>
      <dc:date>2020-06-14T16:59:27Z</dc:date>
    </item>
  </channel>
</rss>

