<?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 get 3 fields on a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282939#M85464</link>
    <description>&lt;P&gt;Update&lt;/P&gt;

&lt;P&gt;If I remove the search criteria    earliest=-96h index=top10_1 &lt;STRONG&gt;Uc-keypad&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And then update the query so it looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-96h index=top10_1 |timechart span=1h count(eval(EVENT_SUB_TYPE="etherLoss")) as etherLoss count(eval(EVENT_SUB_TYPE="etherLossRes")) as etherLossRes count(eval(REBOOT_REASON="Reason: Uc-keypad hung")) as "UC-Keypad Hung"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works.... slow.....but it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 17:10:41 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-09-12T17:10:41Z</dc:date>
    <item>
      <title>How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282934#M85459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data that looks like this:&lt;/P&gt;

&lt;P&gt;REBOOT_REASON,EVENT_SUB_TYPE&lt;BR /&gt;
uc-keypad,etherLoss&lt;BR /&gt;
uc-keypad,etherLossRes&lt;BR /&gt;
uc-keypad,etherLoss&lt;BR /&gt;
uc-keypad,etherLossRes&lt;/P&gt;

&lt;P&gt;etc etc etc....&lt;/P&gt;

&lt;P&gt;I need to graph these 3 fields over time.   I have the graph for the uc-keypad (see below) but trying to figure out how to get 2 more lines.  1 for EVENT_SUB_TYPE=etherLoss and and another for EVENT_SUB_TYPE=etherLossRes&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/159172-uc-keypad.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282934#M85459</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2020-09-29T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282935#M85460</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=1h count(eval(EVENT_SUBTYPE="etherLoss")) as eL count(eval(EVENT_SUBTYPE="etherLossRes")) as eLR count as reason
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282935#M85460</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-12T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282936#M85461</link>
      <description>&lt;P&gt;Can you share your current search? You want to show count of events with those EVENT_SUB_TYPE values?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282936#M85461</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T10:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282937#M85462</link>
      <description>&lt;P&gt;Hi Sundareshr,&lt;/P&gt;

&lt;P&gt;I tried that one but I think I'm running across either a bug or something I don't understand.  Let me try to explain.....&lt;/P&gt;

&lt;P&gt;The query looks like this (after your answer)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-96h index=top10_1 Uc-keypad|timechart span=1h count(eval(EVENT_SUBTYPE="etherLoss")) as eL count(eval(EVENT_SUBTYPE="etherLossRes")) as eLR count as reason
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The top10_1 index is made up of several CSV files.   The &lt;STRONG&gt;EVENT_SUB_TYPE&lt;/STRONG&gt; field is in one CSV source file while &lt;STRONG&gt;REBOOT_REASON&lt;/STRONG&gt; is in a different CSV file.  When I reference either field in a query the other one "disappears" from the field list and the results of the query for the disappearing field is always 0.&lt;/P&gt;

&lt;P&gt;Did that make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282937#M85462</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2020-09-29T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282938#M85463</link>
      <description>&lt;P&gt;A bit more info.  In the query above &lt;STRONG&gt;reason&lt;/STRONG&gt; gets graphed but &lt;STRONG&gt;eL&lt;/STRONG&gt; and &lt;STRONG&gt;eLR&lt;/STRONG&gt; are both 0&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282938#M85463</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-12T17:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282939#M85464</link>
      <description>&lt;P&gt;Update&lt;/P&gt;

&lt;P&gt;If I remove the search criteria    earliest=-96h index=top10_1 &lt;STRONG&gt;Uc-keypad&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And then update the query so it looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-96h index=top10_1 |timechart span=1h count(eval(EVENT_SUB_TYPE="etherLoss")) as etherLoss count(eval(EVENT_SUB_TYPE="etherLossRes")) as etherLossRes count(eval(REBOOT_REASON="Reason: Uc-keypad hung")) as "UC-Keypad Hung"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works.... slow.....but it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282939#M85464</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-12T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282940#M85465</link>
      <description>&lt;P&gt;Try this (may work little better)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-96h index=top10_1 Uc-keypad OR etherLoss |timechart span=1h count(eval(EVENT_SUB_TYPE="etherLoss")) as etherLoss count(eval(EVENT_SUB_TYPE="etherLossRes")) as etherLossRes count(eval(REBOOT_REASON="Reason: Uc-keypad hung")) as "UC-Keypad Hung"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282940#M85465</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-12T17:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get 3 fields on a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282941#M85466</link>
      <description>&lt;P&gt;Thanks Somesoni2!   That one is a bit better (15 seconds)  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-get-3-fields-on-a-timechart/m-p/282941#M85466</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-09-12T17:36:02Z</dc:date>
    </item>
  </channel>
</rss>

