<?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: Creating Stack-able graphs for 2 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251915#M176507</link>
    <description>&lt;P&gt;Thanks .&lt;/P&gt;

&lt;P&gt;But the issue now is "if I use the above logic , it creates the stackable graph , but it removes the names of the devices (netdevice) . If I use the names then the graph does not shwo up as stacked for both xmchip and luchip &lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 19:48:55 GMT</pubDate>
    <dc:creator>bharpur183</dc:creator>
    <dc:date>2016-10-12T19:48:55Z</dc:date>
    <item>
      <title>Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251912#M176504</link>
      <description>&lt;P&gt;These are my events :&lt;BR /&gt;
Based on the below info I want to crate a stackable bar graph that shows 2 errors "luchip" and "xmchip" in different colors &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/11/16
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;7:13:37.000 AM&lt;BR /&gt;&lt;BR /&gt;
&lt;EM&gt;2016/10/11 07:13:37|    2767|  2672| 20711|        DCNETWORK|        DCNETWORK|      DNYOD2-J1|07:13:37 DCNETWORK: [critical] %DCNETWORK-CORE-WP-bbswatch-dnyod2-j1-syslog-default-err% {anjr-nm2} dc-core: almn-core-wp: fpc0 **xmchip&lt;/EM&gt;*(0): li0: received a parcel from the hsl2 interface with eope  &lt;/P&gt;

&lt;P&gt;10/11/16&lt;BR /&gt;
7:13:32.000 AM&lt;BR /&gt;&lt;BR /&gt;
&lt;EM&gt;2016/10/11 07:13:32|    2766|  2672| 20711|        DCNETWORK|        DCNETWORK|      DNYOD2-J1|07:13:32 DCNETWORK: [critical] %DCNETWORK-CORE-WP-bbswatch-dnyod2-j1-syslog-default-err% {anjr-nm2} dc-core: almn-core-wp: fpc0 **luchip(&lt;/EM&gt;*0) ppe_12 errors lmem data error 0x0000026c  &lt;/P&gt;

&lt;P&gt;10/7/16&lt;BR /&gt;
2:49:35.000 PM&lt;BR /&gt;&lt;BR /&gt;
&lt;EM&gt;2016/10/07 14:49:35|    2902|  2672| 20711|        DCNETWORK|        DCNETWORK|      PNYOD2-J2|14:49:34 DCNETWORK: [critical] %DCNETWORK-CORE-WP-bbswatch-pnyod2-j2-syslog-default-err% {anjr-nm2} dc-core: almn-core-wp: fpc0 **luchip&lt;/EM&gt;&lt;EM&gt;(5) ppe_4 errors lmem data error 0x00000127&lt;BR /&gt;&lt;BR /&gt;
10/6/16&lt;BR /&gt;
10:07:26.000 AM &lt;BR /&gt;
*2016/10/06 10:07:26|    6713|  2672| 20711|        DCNETWORK|        DCNETWORK|       PNJR-J10|10:07:26 DCNETWORK: [critical] %DCNETWORK-CORE-WP-bbswatch-pnjr-j10-syslog-default-err% {anjr-nm2} dc-core: almn-core-wp: fpc2 **xmchip(&lt;/EM&gt;*1): wo1: packet error - error packets 1, stream 29  &lt;/P&gt;

&lt;P&gt;10/6/16&lt;BR /&gt;
10:07:21.000 AM &lt;BR /&gt;
*2016/10/06 10:07:21|    6709|  2672| 20711|        DCNETWORK|        DCNETWORK|       PNJR-J10|10:07:21 DCNETWORK: [critical] %DCNETWORK-CORE-WP-bbswatch-pnjr-j10-syslog-default-err% {anjr-nm2} dc-core: almn-core-wp: fpc2 cadg7441: xmchip(1): ddrif: checksum error for wo1 - channel 6, address 0x4a040, checksum errors 1, checksum poison count 0  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251912#M176504</guid>
      <dc:creator>bharpur183</dc:creator>
      <dc:date>2020-09-29T11:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251913#M176505</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex "(?&amp;lt;err_type&amp;gt;xmchip|luchip)" | timechart count by err_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;UPDATED&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | rex "(?&amp;lt;err_type&amp;gt;xmchip|luchip)" | chart count over netdevice by err_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 03:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251913#M176505</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-12T03:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251914#M176506</link>
      <description>&lt;P&gt;Assuming that &lt;STRONG&gt;&lt;EM&gt;"dc-core: almn-core-wp:"&lt;/EM&gt;&lt;/STRONG&gt; always appear before &lt;STRONG&gt;&lt;EM&gt;fpcN (xmchip OR luchip)&lt;/EM&gt;&lt;/STRONG&gt; and timestamps are present for indexed data then you can try below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Take care to remove the space in the tags &amp;lt; fpc&amp;gt; and &amp;lt; chipType&amp;gt; before running the below command&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
yourBaseSearchToGetAllAboveLogs&lt;BR /&gt;
| rex field=_raw ".&lt;EM&gt;dc-core: almn-core-wp:\s+(?&amp;lt; fpc&amp;gt;[^\s]+)\s?(?&amp;lt; chipType&amp;gt;[^\s\&lt;/EM&gt;(]+)"&lt;BR /&gt;
|timechart count by chipType&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;STRONG&gt;Next:&lt;/STRONG&gt;&lt;BR /&gt;
Choose the visualization option of barchart.&lt;BR /&gt;
The bars for luchip and xmchip will appear next to each other in different color.&lt;BR /&gt;
On clicking the paintbrush icon of "Format" choose the "stacked" option for barchart if you want bars to be stacked one on top of other.&lt;BR /&gt;
 If you do not stack then bars will be next to each other but still in different colour too.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Only the chip name (xmchip or luchip) is extracted by regex. I have ignored the &lt;STRONG&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;/STRONG&gt; and the "(number)" from the chip name. (But that can be extracted too)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 03:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251914#M176506</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-12T03:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251915#M176507</link>
      <description>&lt;P&gt;Thanks .&lt;/P&gt;

&lt;P&gt;But the issue now is "if I use the above logic , it creates the stackable graph , but it removes the names of the devices (netdevice) . If I use the names then the graph does not shwo up as stacked for both xmchip and luchip &lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251915#M176507</guid>
      <dc:creator>bharpur183</dc:creator>
      <dc:date>2016-10-12T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251916#M176508</link>
      <description>&lt;P&gt;Try chart instead of timechart. See updated answer&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 20:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251916#M176508</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-12T20:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Stack-able graphs for 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251917#M176509</link>
      <description>&lt;P&gt;That worked.&lt;BR /&gt;
Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 20:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-Stack-able-graphs-for-2-fields/m-p/251917#M176509</guid>
      <dc:creator>bharpur183</dc:creator>
      <dc:date>2016-10-12T20:34:22Z</dc:date>
    </item>
  </channel>
</rss>

