<?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: Combining two graphs into ONE in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350947#M41753</link>
    <description>&lt;P&gt;Basically i dont want to combine the queries to get a single query, i want two graphs into an overlay.  First query results into a bar graph and the second results into a line chart. I want those two graphs to overlay.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 00:34:31 GMT</pubDate>
    <dc:creator>macadminrohit</dc:creator>
    <dc:date>2018-04-20T00:34:31Z</dc:date>
    <item>
      <title>Combining two graphs into ONE</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350945#M41751</link>
      <description>&lt;P&gt;Hi Have the below Searches , most of which are common, only different is i am doing a regex in one of them to compare the string with a number. I am not sure if i can use a streamstats to combine two searches together to avoid running the search twice. Basically i want to combine the two graphs into one i.e one search will give a line graph and another will give a bar graph, like an overlay. With Same x-axis i.e count .&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=servers sourcetype=xs_json Name="Server App" Version=* &lt;BR /&gt;
    | bucket _time span=1h&lt;BR /&gt;
    | timechart count AS HTTP_COUNT by Url useother=f usenull=f limit=50&lt;BR /&gt;
    | fillnull value=0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=servers sourcetype=xs_json Name="Server App" Version=* &lt;BR /&gt;
    | bucket _time span=1h&lt;BR /&gt;
    | rex field=_raw "Response Code\",\"value\":\"(?&amp;lt;RespCode&amp;gt;\w+)\"}," | where RespCode!=200&lt;BR /&gt;
    | timechart count AS ERROR_COUNT by Url useother=f usenull=f limit=50&lt;BR /&gt;
    | fillnull value=0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 23:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350945#M41751</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-04-19T23:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two graphs into ONE</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350946#M41752</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;you can use conditional eval in timechart as well&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=servers sourcetype=xs_json Name="Server App" Version=* 
| bucket _time span=1h 
| rex field=_raw "Response Code\",\"value\":\"(?&amp;lt;RespCode&amp;gt;\w+)\"}," 
| timechart count(eval(RespCode&amp;gt;200) AS ERROR_COUNT count as HTTP_COUNT by Url useother=f usenull=f limit=50 
| fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 00:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350946#M41752</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-20T00:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two graphs into ONE</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350947#M41753</link>
      <description>&lt;P&gt;Basically i dont want to combine the queries to get a single query, i want two graphs into an overlay.  First query results into a bar graph and the second results into a line chart. I want those two graphs to overlay.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 00:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350947#M41753</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-04-20T00:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two graphs into ONE</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350948#M41754</link>
      <description>&lt;P&gt;use the chart overlay function in the viz&lt;BR /&gt;
have it as a bar chart and then pick the field you want for chart overlay&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 00:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350948#M41754</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-20T00:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two graphs into ONE</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350949#M41755</link>
      <description>&lt;P&gt;Thank you so Much Adonio. It works like a champ.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 01:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Combining-two-graphs-into-ONE/m-p/350949#M41755</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-04-20T01:49:44Z</dc:date>
    </item>
  </channel>
</rss>

