<?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: Timechart field value by field woes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369502#M108873</link>
    <description>&lt;P&gt;You are part of the way there.  Try this for a better and more "accurate" chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{my search}| rex field=_raw "Handled (?&amp;lt;msg&amp;gt;\S*) in (?&amp;lt;time&amp;gt;\d+)" | timechart avg(time) by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;max(), min(), etc... all the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/CommonStatsFunctions"&gt;timechart functions&lt;/A&gt; are available there.  Indeed, several at once, like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{my search}| rex field=_raw "Handled (?&amp;lt;msg&amp;gt;\S*) in (?&amp;lt;time&amp;gt;\d+)" 
| timechart avg(time) as Average, max(time) as Maximum min(time) as Minimum by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
Rich&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 11:48:05 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2017-05-09T11:48:05Z</dc:date>
    <item>
      <title>Timechart field value by field woes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369501#M108872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have log messages that look like this:&lt;BR /&gt;
Handled MessageTypeA in 10ms&lt;BR /&gt;
Handled MessageTypeB in 23ms&lt;BR /&gt;
Handled MessageTypeA in 5ms&lt;BR /&gt;
Handled MessageTypeB in 27ms&lt;/P&gt;

&lt;P&gt;I would like a line chart that shows me how long the messages are taking to process by each message type.&lt;BR /&gt;
i.e. there would be 2 lines on the chart, one for MessageTypeA between values 10 and 5, and one for MessageTypeB between values 23 and 27.&lt;/P&gt;

&lt;P&gt;This was my attempt:&lt;BR /&gt;
{my search}| rex field=_raw "Handled (?\S*) in (?\d+)"| timechart list(time) by msg&lt;/P&gt;

&lt;P&gt;It seems to plot something, but not anything relating to the data I've got.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 11:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369501#M108872</guid>
      <dc:creator>thelegendofando</dc:creator>
      <dc:date>2017-05-09T11:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart field value by field woes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369502#M108873</link>
      <description>&lt;P&gt;You are part of the way there.  Try this for a better and more "accurate" chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{my search}| rex field=_raw "Handled (?&amp;lt;msg&amp;gt;\S*) in (?&amp;lt;time&amp;gt;\d+)" | timechart avg(time) by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;max(), min(), etc... all the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/CommonStatsFunctions"&gt;timechart functions&lt;/A&gt; are available there.  Indeed, several at once, like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{my search}| rex field=_raw "Handled (?&amp;lt;msg&amp;gt;\S*) in (?&amp;lt;time&amp;gt;\d+)" 
| timechart avg(time) as Average, max(time) as Maximum min(time) as Minimum by msg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 11:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369502#M108873</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-05-09T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart field value by field woes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369503#M108874</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;That did it, but it's not drawing lines between the points for some reason.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369503#M108874</guid>
      <dc:creator>thelegendofando</dc:creator>
      <dc:date>2017-05-09T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart field value by field woes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369504#M108875</link>
      <description>&lt;P&gt;Easy - that's in the chart formatting.&lt;/P&gt;

&lt;P&gt;Click the Format button drop-down (top left of the chart),&lt;BR /&gt;
In the "General" tab there's a way to handle "Null Values"  Click the last of the three options to join them.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369504#M108875</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-05-09T12:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart field value by field woes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369505#M108876</link>
      <description>&lt;P&gt;Ah, genius! Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 12:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-field-value-by-field-woes/m-p/369505#M108876</guid>
      <dc:creator>thelegendofando</dc:creator>
      <dc:date>2017-05-09T12:28:47Z</dc:date>
    </item>
  </channel>
</rss>

