<?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: Merge two line charts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296301#M89400</link>
    <description>&lt;P&gt;Thanks ! This works!&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 22:45:45 GMT</pubDate>
    <dc:creator>super_virus</dc:creator>
    <dc:date>2017-11-16T22:45:45Z</dc:date>
    <item>
      <title>Merge two line charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296299#M89398</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Very new to splunk.&lt;BR /&gt;
I need to search a index with two strings example:&lt;/P&gt;

&lt;P&gt;"ABC1"&lt;BR /&gt;
"XVZ2"&lt;/P&gt;

&lt;P&gt;And create a line graphs of the count of time we found those two strings. I have two searches that do this for each string and create separate graphs .&lt;/P&gt;

&lt;P&gt;Graph 1 : index=index_name host="host1" OR "host2" "ABC1" | timechart count(_raw) as error span=1h &lt;BR /&gt;
GRAPH 2 : index=index_name host="host1" OR "host2" "XVZ2"| timechart count(_raw) as warning span=1h &lt;/P&gt;

&lt;P&gt;How can i merge these graphs? I need to have one chart with two lines (one for error and other for warning ) representing the above searches  . Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296299#M89398</guid>
      <dc:creator>super_virus</dc:creator>
      <dc:date>2020-09-29T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two line charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296300#M89399</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name (host="host1" OR "host2") "ABC1" OR "XVZ2"
| eval error=if(searchmatch("ABC1"),1,0)
| eval warning=if(searchmatch( "XVZ2"),1,0)
| timechart span=1h sum(error) as error sum(warning) as warning
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296300#M89399</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-16T22:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two line charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296301#M89400</link>
      <description>&lt;P&gt;Thanks ! This works!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merge-two-line-charts/m-p/296301#M89400</guid>
      <dc:creator>super_virus</dc:creator>
      <dc:date>2017-11-16T22:45:45Z</dc:date>
    </item>
  </channel>
</rss>

