<?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: Merging two chart together in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55462#M13542</link>
    <description>&lt;P&gt;hmmmmm I must be doing something wrong here Ayn, but I get an 'Error in 'timechart' command: The argument 'hour_type' is invalid.' if I use your search?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2013 09:54:12 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-03-08T09:54:12Z</dc:date>
    <item>
      <title>Merging two chart together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55460#M13540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm currently have 2 charts, one is the number of sms sent during office hour, the other is after office hour. is there any way i can merge the 2 search queries as one?&lt;/P&gt;

&lt;P&gt;sourcetype="CAS-v3" sender!="CHI" sender!="PNSMS" dept=TSID recipient="HEAT*" | where &lt;STRONG&gt;date_hour&amp;gt;8 and date_hour&amp;lt;19&lt;/STRONG&gt; | timechart span="month" count by recipient&lt;/P&gt;

&lt;P&gt;sourcetype="CAS-v3" sender!="CHI" sender!="PNSMS" dept=TSID recipient="HEAT*" | where &lt;STRONG&gt;date_hour&amp;lt;8 or date_hour&amp;gt;19&lt;/STRONG&gt; | timechart span="month" count by recipient&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55460#M13540</guid>
      <dc:creator>carrotball</dc:creator>
      <dc:date>2020-09-28T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two chart together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55461#M13541</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype="CAS-v3" sender!="CHI" sender!="PNSMS" dept=TSID recipient="HEAT*" | eval hour_type=case(date_hour&amp;gt;=8 AND date_hour&amp;lt;19,"office hours",date_hour&amp;lt;8 OR date_hour&amp;gt;=19,"outside office hours") |timechart span=1mon count by recipient,hour_type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2013 08:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55461#M13541</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-03-08T08:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two chart together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55462#M13542</link>
      <description>&lt;P&gt;hmmmmm I must be doing something wrong here Ayn, but I get an 'Error in 'timechart' command: The argument 'hour_type' is invalid.' if I use your search?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 09:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55462#M13542</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-03-08T09:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two chart together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55463#M13543</link>
      <description>&lt;P&gt;I wonder if this will work, because 'timechart' can only take one 'split by' series, 'chart' can take two. &lt;/P&gt;

&lt;P&gt;So for timechart it would be: &lt;BR /&gt;
...| timechart span=1mon count(recipient) by hour_type&lt;/P&gt;

&lt;P&gt;and for chart it would be:&lt;BR /&gt;
...| chart count by recipient,hour_type&lt;/P&gt;

&lt;P&gt;on the other hand, count(recipient) will count all events that have a recipient and not events for each recipient....&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55463#M13543</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-03-08T10:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two chart together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55464#M13544</link>
      <description>&lt;P&gt;hmmmmm&lt;BR /&gt;
thanks for the help, the second one works but cant display it by month...&lt;/P&gt;

&lt;P&gt;wondering if i can tune it more. time to go read lol&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 06:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-two-chart-together/m-p/55464#M13544</guid>
      <dc:creator>carrotball</dc:creator>
      <dc:date>2013-03-11T06:04:18Z</dc:date>
    </item>
  </channel>
</rss>

