<?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: Need help with timechart query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136888#M37453</link>
    <description>&lt;P&gt;The problem you have is that you're missing _time when you get to run the timechart. At the start, in your table command, you need to add _time there. Your search string should then become:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=Testserv* source=/var/log/tomcat/myapp/app.log Level=INFO | rex max_match=100 field=Message "(?P&amp;lt;metricdata&amp;gt;[^,]+)[,]" | table _time metricdata | mvexpand metricdata | rex field=metricdata "(?&amp;lt;metric&amp;gt;\w+)=(?&amp;lt;latencyus&amp;gt;\d+)" | where latencyus&amp;gt;0 | eval latency=latencyus/1000 | search metric="TotalTime"| timechart span=15m exactperc99(latency), exactperc99.9(latency)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Feb 2014 20:58:03 GMT</pubDate>
    <dc:creator>David</dc:creator>
    <dc:date>2014-02-04T20:58:03Z</dc:date>
    <item>
      <title>Need help with timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136887#M37452</link>
      <description>&lt;P&gt;We have following entries in our app log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2013-12-06 09:09:23,918 Level=INFO  Thread=http-apr-45082-exec-2 Logger=c.e.l.l.TestTracking MessageUUID=f2823947-ebc7-449d-b774-816354fc29ea MessageName=RandomGet MessageVersion=1.0  UserUUID=f2823947-ebc7-449d-b774-816354fc29ea SessionUUID=f2823947-ebc7-449d-b774-816354fc29ea IPAddress=127.0.0.1 Message="RequestSerialization=11887,CacheGetTotalTime=179544,ResultsDeserialization=61,TotalTime=800392,"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to timechart TP99 and need help with the splunk query. Here's my attempt which is not yielding any result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=Testserv* source=/var/log/tomcat/myapp/app.log Level=INFO | rex max_match=100 field=Message "(?P&amp;lt;metricdata&amp;gt;[^,]+)[,]" | table metricdata | mvexpand metricdata | rex field=metricdata "(?&amp;lt;metric&amp;gt;\w+)=(?&amp;lt;latencyus&amp;gt;\d+)" | where latencyus&amp;gt;0 | eval latency=latencyus/1000 | search metric="TotalTime"| timechart span=15m exactperc99(latency), exactperc99.9(latency)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2014 19:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136887#M37452</guid>
      <dc:creator>splunknovice</dc:creator>
      <dc:date>2014-02-04T19:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136888#M37453</link>
      <description>&lt;P&gt;The problem you have is that you're missing _time when you get to run the timechart. At the start, in your table command, you need to add _time there. Your search string should then become:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=Testserv* source=/var/log/tomcat/myapp/app.log Level=INFO | rex max_match=100 field=Message "(?P&amp;lt;metricdata&amp;gt;[^,]+)[,]" | table _time metricdata | mvexpand metricdata | rex field=metricdata "(?&amp;lt;metric&amp;gt;\w+)=(?&amp;lt;latencyus&amp;gt;\d+)" | where latencyus&amp;gt;0 | eval latency=latencyus/1000 | search metric="TotalTime"| timechart span=15m exactperc99(latency), exactperc99.9(latency)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2014 20:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136888#M37453</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2014-02-04T20:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with timechart query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136889#M37454</link>
      <description>&lt;P&gt;Thanks David. This indeed was the case.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 21:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-timechart-query/m-p/136889#M37454</guid>
      <dc:creator>splunknovice</dc:creator>
      <dc:date>2014-02-04T21:16:29Z</dc:date>
    </item>
  </channel>
</rss>

