<?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: Stacked Bar Chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654851#M226214</link>
    <description>&lt;P&gt;Charts require a command that produces statistics (chart, stats, timechart, etc.).&amp;nbsp; Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="intau_workfusion" sourcetype=workfusion.out.log host=*
| rex "^(?&amp;lt;Date&amp;gt;\d+-\d+-\d+\s+\d+:\d+:\d+)\s+\[[^\]]*\]\s*\[(?&amp;lt;Process&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;Step&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;User&amp;gt;[^\]]*)\]\s*[^\[]+\s\[(?&amp;lt;Log_level&amp;gt;[^\]]+)"
| search Log_level="*"
| where Process != ""
| stats count by Log_level&lt;/LI-CODE&gt;&lt;P&gt;Then switch to the Visualization tab, choose the Bar Chart visualization, then select the Stacked format.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2023 12:27:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-08-18T12:27:23Z</dc:date>
    <item>
      <title>How can i create a stacked bar graph showing the different log levels?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654847#M226211</link>
      <description>&lt;P&gt;How can i create a stacked bar graph showing the different log levels (Error, Info, Debug)&amp;nbsp; generated by&amp;nbsp; each&amp;nbsp; Process&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index="intau_workfusion" sourcetype=workfusion.out.log host=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rex "^(?&amp;lt;Date&amp;gt;\d+-\d+-\d+\s+\d+:\d+:\d+)\s+\[[^\]]*\]\s*\[(?&amp;lt;Process&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;Step&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;User&amp;gt;[^\]]*)\]\s*[^\[]+\s\[(?&amp;lt;Log_level&amp;gt;[^\]]+)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| search Log_level="*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| where Process != ""&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 18:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654847#M226211</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2023-08-18T18:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654851#M226214</link>
      <description>&lt;P&gt;Charts require a command that produces statistics (chart, stats, timechart, etc.).&amp;nbsp; Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="intau_workfusion" sourcetype=workfusion.out.log host=*
| rex "^(?&amp;lt;Date&amp;gt;\d+-\d+-\d+\s+\d+:\d+:\d+)\s+\[[^\]]*\]\s*\[(?&amp;lt;Process&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;Step&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;User&amp;gt;[^\]]*)\]\s*[^\[]+\s\[(?&amp;lt;Log_level&amp;gt;[^\]]+)"
| search Log_level="*"
| where Process != ""
| stats count by Log_level&lt;/LI-CODE&gt;&lt;P&gt;Then switch to the Visualization tab, choose the Bar Chart visualization, then select the Stacked format.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 12:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654851#M226214</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-08-18T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654860#M226218</link>
      <description>&lt;P&gt;I have applied it but but its only showin like this, I want the log level to be stacked and to show according to Process&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sphiwee_0-1692363740674.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26872i69F5F53BFF108A35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sphiwee_0-1692363740674.png" alt="sphiwee_0-1692363740674.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 13:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654860#M226218</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2023-08-18T13:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked Bar Chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654899#M226237</link>
      <description>&lt;P&gt;Try using the &lt;FONT face="courier new,courier"&gt;chart&lt;/FONT&gt; command to get both Log_level and Process in the output.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="intau_workfusion" sourcetype=workfusion.out.log host=*
| rex "^(?&amp;lt;Date&amp;gt;\d+-\d+-\d+\s+\d+:\d+:\d+)\s+\[[^\]]*\]\s*\[(?&amp;lt;Process&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;Step&amp;gt;[^\]]*)\]\s*\[(?&amp;lt;User&amp;gt;[^\]]*)\]\s*[^\[]+\s\[(?&amp;lt;Log_level&amp;gt;[^\]]+)"
| search Log_level="*"
| where Process != ""
| chart count over Process by Log_level&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;To see the chart, switch to the Visualization tab, choose the "Column Chart" visualization, then select "Stacked" from the Format dropdown.&amp;nbsp; See the example below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richgalloway_0-1692373794408.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26877i68C13E34CE61929A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richgalloway_0-1692373794408.png" alt="richgalloway_0-1692373794408.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 15:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-create-a-stacked-bar-graph-showing-the-different-log/m-p/654899#M226237</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-08-18T15:50:58Z</dc:date>
    </item>
  </channel>
</rss>

