<?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 to combine my two searches and create a time chart with the resulting data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199999#M57953</link>
    <description>&lt;P&gt;Worked like a charm ...thanks &lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 18:12:00 GMT</pubDate>
    <dc:creator>prakashbhanu407</dc:creator>
    <dc:date>2016-04-13T18:12:00Z</dc:date>
    <item>
      <title>How to combine my two searches and create a time chart with the resulting data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199997#M57951</link>
      <description>&lt;P&gt;I have to add 2 searches. Each search's output is FileName and Time....and I have to create a graph with the 2 types of file counts against time.&lt;/P&gt;

&lt;P&gt;I used the search below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MyIndex  (   (filename=PNASC.HRBDT.*)   OR   (filename=PNASC.MBRETRAN.*) ) status=1 |rename filename as FileNameA, _time as Time | table "FileNameA" status
append status [ search index=MyIndex   (  (filename=CFCF.GRP*.txt)   OR  (filename=CFCF.MBR*.txt) )   status=1 |rename filename as "FileNameB", _time as Time |table "FileNameB" status
] timechart span=1d count("FileNameA") count("FileNameB")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but getting errors&lt;/P&gt;

&lt;P&gt;tried Join too, but I don't have any common field with same values.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199997#M57951</guid>
      <dc:creator>prakashbhanu407</dc:creator>
      <dc:date>2016-04-13T14:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my two searches and create a time chart with the resulting data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199998#M57952</link>
      <description>&lt;P&gt;Try like this (assuming all data lies in same MyIndex)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=MyIndex   filename=PNASC.HRBDT.* OR   filename=PNASC.MBRETRAN.* OR filename=CFCF.GRP*.txt OR  filename=CFCF.MBR*.txt status=1 | eval Type=if(like(filename,"PNASC.HRBDT.%") OR like(filename,"PNASC.MBRETRAN.%"),"FileNameA","FileNameB")
| timechart span=1d count by Type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199998#M57952</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-13T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine my two searches and create a time chart with the resulting data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199999#M57953</link>
      <description>&lt;P&gt;Worked like a charm ...thanks &lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 18:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-my-two-searches-and-create-a-time-chart-with-the/m-p/199999#M57953</guid>
      <dc:creator>prakashbhanu407</dc:creator>
      <dc:date>2016-04-13T18:12:00Z</dc:date>
    </item>
  </channel>
</rss>

