<?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 by Two Fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275641#M83146</link>
    <description>&lt;P&gt;Thank you for your suggestion!  That works!  I get four bars in my Visualization with the suggested solution.  Do you know if there's a way to get a stacked bar chart with one bar per eventCode containing multiple colors per bar to represent each channelCode per eventCode?  Maybe that is a different question alltogether...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 17:37:09 GMT</pubDate>
    <dc:creator>wolfreb</dc:creator>
    <dc:date>2016-07-20T17:37:09Z</dc:date>
    <item>
      <title>Timechart by Two Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275639#M83144</link>
      <description>&lt;P&gt;This is probably the simplest thing, but I can't find the answer:  I am searching for all events with either eventCode I0H or I0L and I want to display a count of them, separated by the channelCode value that is also in the event.  Here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=QV eventCode=IOH OR eventCode=I0L
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I want to do a timechart to show me the count of I0H events and the count of I0L events separated by the channelCode:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1d count(eventCode) by channelCode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... but the problem is, I'm getting the count by channelCode, but it's the counts of I0H and I0L events combined.  For example:  I have 4 I0L events; two have a channelCode of DSK and two have a channelCode of MBL, and 4 are I0H events, split 2 and 2 between DSK and MBL. I'm getting a chart with a bar for MBL and a bar for DSK with a count of 4 in each How do I get them to be separated by eventCode also?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 15:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275639#M83144</guid>
      <dc:creator>wolfreb</dc:creator>
      <dc:date>2016-07-20T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart by Two Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275640#M83145</link>
      <description>&lt;P&gt;Try like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=QV eventCode=IOH OR eventCode=I0L | eval channelCode=channelCode.":".eventCode  | timechart span=1d count by channelCode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275640#M83145</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-20T16:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart by Two Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275641#M83146</link>
      <description>&lt;P&gt;Thank you for your suggestion!  That works!  I get four bars in my Visualization with the suggested solution.  Do you know if there's a way to get a stacked bar chart with one bar per eventCode containing multiple colors per bar to represent each channelCode per eventCode?  Maybe that is a different question alltogether...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 17:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-by-Two-Fields/m-p/275641#M83146</guid>
      <dc:creator>wolfreb</dc:creator>
      <dc:date>2016-07-20T17:37:09Z</dc:date>
    </item>
  </channel>
</rss>

