<?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 I extract a string from a message and create a chart on that field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248284#M74094</link>
    <description>&lt;P&gt;Thanks Swbodie. But still i m just getting the search result as i was getting with my search string like below. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-09-30 16:52:19.907|LOCATION:GATEWAY|SERVICE:DepositsRestProxy|VERSION:3|CLIENT:ARGOTELLER|BUSINESSSERVICE:deposit-account-debits-ep|OPERATION:NA|*RESPONSETIME:990*|STATUS:201449:Transaction processing requires manual intervention to be completed.|SEVERITY:ERROR|STATUSCODE:ERROR|STATUSMESSAGE:Conflict|DESCRIPTION:ClientIPAddress--10.42.132.193|MESSAGEID:10.42.8.151--3f8b2410:1501ffcf122:74b
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want something like below. SO that i can prepare chart how many went above 200 and how many went below 300ms&lt;BR /&gt;
RESPONSETIME :      200&lt;BR /&gt;
RESPONSETIME:       300&lt;/P&gt;

&lt;P&gt;I am quite new to splunk. Thank you so much for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 13:01:10 GMT</pubDate>
    <dc:creator>manmayee</dc:creator>
    <dc:date>2015-10-01T13:01:10Z</dc:date>
    <item>
      <title>How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248282#M74092</link>
      <description>&lt;P&gt;My message text contains a value like this:&lt;/P&gt;

&lt;P&gt;2015-09-30 16:52:19.907|LOCATION:GATEWAY|SERVICE:DepositsRestProxy|VERSION:3|CLIENT:ARGOTELLER|BUSINESSSERVICE:deposit-account-debits-ep|OPERATION:NA|&lt;STRONG&gt;&lt;EM&gt;RESPONSETIME:990&lt;/EM&gt;&lt;/STRONG&gt;|STATUS:201449:Transaction processing requires manual intervention to be completed.|SEVERITY:ERROR|STATUSCODE:ERROR|STATUSMESSAGE:Conflict|DESCRIPTION:ClientIPAddress--10.42.132.193|MESSAGEID:10.42.8.151--3f8b2410:1501ffcf122:74b&lt;/P&gt;

&lt;P&gt;I want to narrow my results to a table where it will show me a chart where it will show the graph of response times.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 21:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248282#M74092</guid>
      <dc:creator>manmayee</dc:creator>
      <dc:date>2015-09-30T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248283#M74093</link>
      <description>&lt;P&gt;You would want to use a regex to extract the field in this case, something like this would extract it to be used in subsequent searches in the pipeline:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw ".*RESPONSETIME:(?&amp;lt;ResponseTime&amp;gt;.*)\*|.*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would add the response time to a field called ResponseTime for you to work with.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 21:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248283#M74093</guid>
      <dc:creator>swbodie</dc:creator>
      <dc:date>2015-09-30T21:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248284#M74094</link>
      <description>&lt;P&gt;Thanks Swbodie. But still i m just getting the search result as i was getting with my search string like below. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-09-30 16:52:19.907|LOCATION:GATEWAY|SERVICE:DepositsRestProxy|VERSION:3|CLIENT:ARGOTELLER|BUSINESSSERVICE:deposit-account-debits-ep|OPERATION:NA|*RESPONSETIME:990*|STATUS:201449:Transaction processing requires manual intervention to be completed.|SEVERITY:ERROR|STATUSCODE:ERROR|STATUSMESSAGE:Conflict|DESCRIPTION:ClientIPAddress--10.42.132.193|MESSAGEID:10.42.8.151--3f8b2410:1501ffcf122:74b
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want something like below. SO that i can prepare chart how many went above 200 and how many went below 300ms&lt;BR /&gt;
RESPONSETIME :      200&lt;BR /&gt;
RESPONSETIME:       300&lt;/P&gt;

&lt;P&gt;I am quite new to splunk. Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248284#M74094</guid>
      <dc:creator>manmayee</dc:creator>
      <dc:date>2015-10-01T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248285#M74095</link>
      <description>&lt;P&gt;Hi Swbodie, Thanks for your help.&lt;/P&gt;

&lt;P&gt;i used the below but still i m nt seeing any result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex field=_raw ".*RESPONSETIME:(?.*)\*|.*" | eval temp=split(RespnseTime,":") |eval time=mvindex(ResponseTime,-1) | stats count by time as responsetime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to make graph where i will show me the response times so that i can check how many response time went above and below 500 ms.&lt;/P&gt;

&lt;P&gt;I am new to splunk, any help is appreciated. Thank you...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248285#M74095</guid>
      <dc:creator>manmayee</dc:creator>
      <dc:date>2015-10-01T14:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248286#M74096</link>
      <description>&lt;P&gt;What that command is doing is a field extraction using a regular expression. I did not test the one I wrote above against your data so it may be off.&lt;/P&gt;

&lt;P&gt;Have a look at this page which may help:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/rex"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/rex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248286#M74096</guid>
      <dc:creator>swbodie</dc:creator>
      <dc:date>2015-10-01T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248287#M74097</link>
      <description>&lt;P&gt;Hi manmayee,&lt;/P&gt;

&lt;P&gt;I'm trying to complement swbodie's answer. Your search input should be like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt; | rex field=_raw "\*RESPONSETIME:(?&amp;lt;ResponseTime&amp;gt;\d+)\*" | stats count by ResponseTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search command will show you a table by default. You may then choose visualization tab to get your chart.&lt;/P&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 07:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248287#M74097</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2015-10-05T07:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248288#M74098</link>
      <description>&lt;P&gt;i tried this but still i am not seeing any result under statistics tab. only events tab i am seeing the results.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248288#M74098</guid>
      <dc:creator>manmayee</dc:creator>
      <dc:date>2015-10-05T15:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248289#M74099</link>
      <description>&lt;P&gt;Do you see any results in the statistics tab when your run following query??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt; | rex field=_raw "\*RESPONSETIME:(?&amp;lt;ResponseTime&amp;gt;\d+)\*" | table ResponseTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248289#M74099</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-05T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248290#M74100</link>
      <description>&lt;P&gt;table is showing up but no values or nothing in that table&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 21:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248290#M74100</guid>
      <dc:creator>manmayee</dc:creator>
      <dc:date>2015-10-05T21:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a string from a message and create a chart on that field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248291#M74101</link>
      <description>&lt;P&gt;hmm...that's weird. I'd created a sample log file with your data and applied the rex command along with the stats command and I could see the graph just fine.&lt;BR /&gt;
&lt;IMG src="http://s1.postimg.org/y09q6s8db/Result.png" alt="Result Search" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 03:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-string-from-a-message-and-create-a-chart-on/m-p/248291#M74101</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2015-10-06T03:22:41Z</dc:date>
    </item>
  </channel>
</rss>

