<?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 to separate fields and create a pie chart of status count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469729#M132181</link>
    <description>&lt;P&gt;Replace everything above the comment with the SPL you use to input data from your log file.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 source=*.log
| rex field=_raw "(\w+\-\d+)\,(\w+)\,(\d+)\,(\w+),(?&amp;lt;Status&amp;gt;\w+.*)"
| stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Jun 2020 17:26:41 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-06-02T17:26:41Z</dc:date>
    <item>
      <title>How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469723#M132175</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;
&lt;P&gt;Please guide us on the requirement below:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;server, env, req no, input field,status
host-1,PROD,1666680,mobile1,Deployment_Successful
host-1,PROD,1666680,mobile2,Deployment_failed
host-1,PROD,1666680,mobile3,exception
host-1,PROD,1666001,mobile1,Deployment_Successful
host-1,PROD,1666601,mobile2,Deployment_failed
host-1,PROD,16666801,mobile3,exception
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Expected output:&lt;/STRONG&gt; Pie chart with status count&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My trial:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 source=*.log  
| rex field=_raw "(?\w+\-\d+)\,(?\w+\/\w+)\,(?\d+)\,(?\w+)\,,(?\w+.*)" 
| stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above search is not showing the count if the log has different statuses. Kindly help to guide on this.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 18:08:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469723#M132175</guid>
      <dc:creator>thaara</dc:creator>
      <dc:date>2020-06-08T18:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469724#M132176</link>
      <description>&lt;P&gt;Please edit your question to correct the &lt;CODE&gt;rex&lt;/CODE&gt; command.  Also, please share your results and the desired output.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 17:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469724#M132176</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-01T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469725#M132177</link>
      <description>&lt;P&gt;sourcetype=sourcetype1 source=&lt;EM&gt;.log  | rex field=_raw "(?\w+-\d+)\,(?\w+\/\w+)\,(?\d+)\,(?\w+)\,(?\w+.&lt;/EM&gt;)" | stats count by Status&lt;/P&gt;

&lt;P&gt;Output am getting as NONE in pie chart view.&lt;/P&gt;

&lt;P&gt;please note: If i have only one kind of status example as "deployment_successful" in my log, I can seethe count, but if there are different statuses, I cannot create a pie chart&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 18:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469725#M132177</guid>
      <dc:creator>thaara</dc:creator>
      <dc:date>2020-06-01T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469726#M132178</link>
      <description>&lt;P&gt;Your regular expression (rex command) doesn't match the data.  &lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 19:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469726#M132178</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-01T19:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469727#M132179</link>
      <description>&lt;P&gt;Try this run-anywhere example, which displays a pie chart with 3 segments.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="host-1,PROD,1666680,mobile1,Deployment_Successful|
 host-1,PROD,1666680,mobile2,Deployment_failed|
 host-1,PROD,1666680,mobile3,exception|
 host-1,PROD,1666001,mobile1,Deployment_Successful|
 host-1,PROD,1666601,mobile2,Deployment_failed|
 host-1,PROD,16666801,mobile3,exception" | eval _raw=split(_raw, "|") | mvexpand _raw
`comment("All of the above just sets up test data")`
 | rex field=_raw "(\w+\-\d+)\,(\w+)\,(\d+)\,(\w+),(?&amp;lt;Status&amp;gt;\w+.*)"
 | stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9024i709180A72A955080/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 19:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469727#M132179</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-01T19:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469728#M132180</link>
      <description>&lt;P&gt;@richgalloway &lt;BR /&gt;
I want to take input data from a log file instead of giving input in my query. Kindly help on that.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469728#M132180</guid>
      <dc:creator>thaara</dc:creator>
      <dc:date>2020-06-02T16:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields and create a pie chart of status count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469729#M132181</link>
      <description>&lt;P&gt;Replace everything above the comment with the SPL you use to input data from your log file.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 source=*.log
| rex field=_raw "(\w+\-\d+)\,(\w+)\,(\d+)\,(\w+),(?&amp;lt;Status&amp;gt;\w+.*)"
| stats count by Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jun 2020 17:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-and-create-a-pie-chart-of-status-count/m-p/469729#M132181</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-02T17:26:41Z</dc:date>
    </item>
  </channel>
</rss>

