<?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: Stats values Into timechart -- I can't get timechart to work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332353#M98889</link>
    <description>&lt;P&gt;Hi @cmerriman. Thank you for taking the time to come back to me with this and for the alternative solution to @niketnilay.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris  &lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 12:31:56 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2017-09-13T12:31:56Z</dc:date>
    <item>
      <title>Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332346#M98882</link>
      <description>&lt;P&gt;Hi, I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I've put together this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch
[ search `frontenda_wmf(Payments)` detail.dueDate="2018-01-31"]
[ search `frontendb_wmf(RequestReceived)` detail.queryString="*AUTHORISED*HM00*"]
| stats values(detail.dueDate) as due values(detail.queryString) as query values(auditSource) as auditSource values(auditType) as auditType by tags.IP
| where (auditSource="frontenda" AND auditSource="frontendb" AND auditType="Payments" AND auditType="RequestReceived")
| timechart span=1d count(due)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I'm having is that I can't get the timechart to work. I've also tried just using chart and that doesn't work either.&lt;/P&gt;

&lt;P&gt;Could someone possibly look at this please and let me know where I've gone wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332346#M98882</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-09-13T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332347#M98883</link>
      <description>&lt;P&gt;for timechart to work, you need _time in your results. try working _time into your multisearch/stats command before timechart. you can add in &lt;CODE&gt;|bucket span=1d _time |stats ..... by tags.IP _time&lt;/CODE&gt; and then it is already bucketed by 1 day. If detail.dueDate is what the days need to be bucketed by, you'll need to create an eval like &lt;CODE&gt;|eval _time=strptime(detail.dueDate,"%Y-%m-%d")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332347#M98883</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-09-13T11:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332348#M98884</link>
      <description>&lt;P&gt;Hi  IRHM73.&lt;BR /&gt;
at first in your stats command you haven't _time as values so you haven't it in the following timechart.&lt;BR /&gt;
Anyway, what's the output of your search without the timechart command?&lt;BR /&gt;
To execute the timechart count(due) command you need at least of two fields -time and due, are there?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332348#M98884</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-13T11:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332349#M98885</link>
      <description>&lt;P&gt;@IRHM73, your stats command is removing _time field which is required for timechart so you need to change to following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | multisearch
 [ search `frontenda_wmf(Payments)` detail.dueDate="2018-01-31"]
 [ search `frontendb_wmf(RequestReceived)` detail.queryString="*AUTHORISED*HM00*"]
 | bin _time span=1d 
 | stats values(detail.dueDate) as due values(detail.queryString) as query values(auditSource) as auditSource values(auditType) as auditType by tags.IP _time
 | search auditSource="frontenda" AND auditSource="frontendb" AND auditType="Payments" AND auditType="RequestReceived"
 | timechart span=1d count(due)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try and confirm.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332349#M98885</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-13T11:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332350#M98886</link>
      <description>&lt;P&gt;Hi @niketnilay, this works perfectly thank you.&lt;/P&gt;

&lt;P&gt;If you want to add this as an answer I can accept it for you.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332350#M98886</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-09-13T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332351#M98887</link>
      <description>&lt;P&gt;Hi @cusello, thank you for taking the time to reply to my post.&lt;/P&gt;

&lt;P&gt;You'll see that both @cmerriman and @niketnilay were along similar lines.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332351#M98887</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-09-13T12:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332352#M98888</link>
      <description>&lt;P&gt;@IRHM73, Glad it worked... I have converted to answer. Please accept to mark as answered!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332352#M98888</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-13T12:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stats values Into timechart -- I can't get timechart to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332353#M98889</link>
      <description>&lt;P&gt;Hi @cmerriman. Thank you for taking the time to come back to me with this and for the alternative solution to @niketnilay.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris  &lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-values-Into-timechart-I-can-t-get-timechart-to-work/m-p/332353#M98889</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-09-13T12:31:56Z</dc:date>
    </item>
  </channel>
</rss>

