<?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: overlay time chart from different sources in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/overlay-time-chart-from-different-sources/m-p/247668#M73876</link>
    <description>&lt;P&gt;The most simple approach is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = aap_prod (sourcetype=fs_notification OR sourcetype=hadoop:prod:fm:journey) (action=add OR eventtype=fschange_add_file) |  timechart  count as countB
| appendcols [search index=aap_prod sourcetype="HDP:PROD:OOZIE"    (":start:] with user-retry state" OR CASE("@end***]Action updated in DB!"))   | rex "TOKEN\[\] APP\[(?&amp;lt;JobName&amp;gt;[^\]]*)"  | search JobName=WF_danlaw_journey_hive | timechart count as countA]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you clean up your searches a bit, for example extract the rex'd field from configuration, maybe store everything in eventtypes, etc., you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app_prod (eventtype=A OR eventtype=B) | eval class = if(eventtype="A", "A", "B") | timechart count by class
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've assumed that in case of A and B matching it should be counted for A... that's a matter of requirements though.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2016 21:34:58 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2016-03-14T21:34:58Z</dc:date>
    <item>
      <title>overlay time chart from different sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/overlay-time-chart-from-different-sources/m-p/247667#M73875</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I want to overlay two different time charts in one panel.&lt;BR /&gt;
can this be done.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = aap_prod (sourcetype=fs_notification OR sourcetype=hadoop:prod:fm:journey) (action=add OR eventtype=fschange_add_file) |  timechart  count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=aap_prod sourcetype="HDP:PROD:OOZIE"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(":start:] with user-retry state" OR CASE("@end***]Action updated in DB!"))&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex "TOKEN\[\] APP\[(?&amp;lt;JobName&amp;gt;[^\]]*)"&amp;nbsp;&amp;nbsp;| search JobName=WF_danlaw_journey_hive | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 21:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/overlay-time-chart-from-different-sources/m-p/247667#M73875</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-03-14T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: overlay time chart from different sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/overlay-time-chart-from-different-sources/m-p/247668#M73876</link>
      <description>&lt;P&gt;The most simple approach is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = aap_prod (sourcetype=fs_notification OR sourcetype=hadoop:prod:fm:journey) (action=add OR eventtype=fschange_add_file) |  timechart  count as countB
| appendcols [search index=aap_prod sourcetype="HDP:PROD:OOZIE"    (":start:] with user-retry state" OR CASE("@end***]Action updated in DB!"))   | rex "TOKEN\[\] APP\[(?&amp;lt;JobName&amp;gt;[^\]]*)"  | search JobName=WF_danlaw_journey_hive | timechart count as countA]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you clean up your searches a bit, for example extract the rex'd field from configuration, maybe store everything in eventtypes, etc., you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app_prod (eventtype=A OR eventtype=B) | eval class = if(eventtype="A", "A", "B") | timechart count by class
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've assumed that in case of A and B matching it should be counted for A... that's a matter of requirements though.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 21:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/overlay-time-chart-from-different-sources/m-p/247668#M73876</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-14T21:34:58Z</dc:date>
    </item>
  </channel>
</rss>

