<?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 multiple reports into one report from same index? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310870#M5698</link>
    <description>&lt;P&gt;Ok. I know that it can be combined depending of the query. I was thinking of combining it by report name, since each reports is created with below. But, the regex for each field aren't unique between reports.&lt;BR /&gt;
    chart dc(woNum) by currentDate, referral &lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 21:29:07 GMT</pubDate>
    <dc:creator>limalbert</dc:creator>
    <dc:date>2017-12-01T21:29:07Z</dc:date>
    <item>
      <title>How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310865#M5693</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Is it possible to combine 3 reports (bar charts) from the same index into one report (bar chart)?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Edit:&lt;BR /&gt;Report 1:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index=app_fig keywordA keywordB* keywordC
| rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
| rex "type\=(?&amp;lt;field1&amp;gt;[^,]*)"
| rex "userId:(?&amp;lt;user&amp;gt;\w*)\_"
| rex "workOrder=(?&amp;lt;woNum&amp;gt;\w*)\," 
| search referral=*
| chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Report 2:&lt;BR /&gt;index=app_fig keywordD keywordE keywordF&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;| rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
| rex "fieldType=(?&amp;lt;field1&amp;gt;[^,]*)"
| rex "userId:(?&amp;lt;user&amp;gt;\w*)\_"
| rex "workOrderNumber=(?&amp;lt;woNum&amp;gt;\w*)\,"
| chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Report 3:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index=app_fig keywordG keywordH
| rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
| rex "fieldName\":\"(?&amp;lt;field1&amp;gt;[^\"]*)"
| rex "userId:(?&amp;lt;user&amp;gt;\w*)\_"
| rex "wo:(?&amp;lt;woNum&amp;gt;\w*)_" 
| chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 23:12:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310865#M5693</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2020-06-08T23:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310866#M5694</link>
      <description>&lt;P&gt;give us something with which to work.  What are your 3 searches?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310866#M5694</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-01T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310867#M5695</link>
      <description>&lt;P&gt;Yes, it is possible.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310867#M5695</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-01T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310868#M5696</link>
      <description>&lt;P&gt;Depends upon the queries of those 3 reports. As long as their filter/search logic can be combined, they can too.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310868#M5696</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-01T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310869#M5697</link>
      <description>&lt;P&gt;Are you asking the reports' name? Or searches within report?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310869#M5697</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-01T21:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310870#M5698</link>
      <description>&lt;P&gt;Ok. I know that it can be combined depending of the query. I was thinking of combining it by report name, since each reports is created with below. But, the regex for each field aren't unique between reports.&lt;BR /&gt;
    chart dc(woNum) by currentDate, referral &lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310870#M5698</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-01T21:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310871#M5699</link>
      <description>&lt;P&gt;That can be made same (may be extract using different names and use eval with coalesce to create a common field). You'd get a dead-straight answer if you could share your searches/queries.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310871#M5699</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-01T21:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310872#M5700</link>
      <description>&lt;P&gt;Sorry for the late update. I posted the 3 reports code in my original question.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310872#M5700</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310873#M5701</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app_fig (keywordA keywordB* keywordC) OR (keywordD keywordE keywordF) OR (keywordG keywordH)
| rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
 | rex "(type|fieldType)\=(?&amp;lt;field11&amp;gt;[^,]*)"
 | rex "fieldName\":\"(?&amp;lt;field12&amp;gt;[^\"]*)"
 | rex "(workOrder|workOrderNumber)=(?&amp;lt;woNum1&amp;gt;\w*)\,"
 | rex "wo:(?&amp;lt;woNum2&amp;gt;\w*)_"  
| eval field1=coalesce(field11,field12)
| eval woNum=coalesce(woNum1,woNum2)
| chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310873#M5701</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-05T15:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310874#M5702</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;This works! But, I'm getting NULL from field11, and VALUE from field12.&lt;BR /&gt;
I have never used coalesce command before. What does this actually do?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:23:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310874#M5702</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T19:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310875#M5703</link>
      <description>&lt;P&gt;The coalesce (like oracle coalesce) takes the first non-null value. If instead of null values it has literal NULL string, try this variation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app_fig (keywordA keywordB* keywordC) OR (keywordD keywordE keywordF) OR (keywordG keywordH)
 | rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
  | rex "(type|fieldType)\=(?&amp;lt;field11&amp;gt;[^,]*)"
  | rex "fieldName\":\"(?&amp;lt;field12&amp;gt;[^\"]*)"
  | rex "(workOrder|workOrderNumber)=(?&amp;lt;woNum1&amp;gt;\w*)\,"
  | rex "wo:(?&amp;lt;woNum2&amp;gt;\w*)_"  
 | eval field1=if(searchmatch("keywordG keywordH"), field12,field11)
 | eval woNum=if(searchmatch("keywordG keywordH"), woNum2,woNum1)
 | chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310875#M5703</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-05T19:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310876#M5704</link>
      <description>&lt;P&gt;It still return VALUE and NULL.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310876#M5704</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T19:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310877#M5705</link>
      <description>&lt;P&gt;So you're getting column with name as "VALUE" and "NULL"?? Can you post the actual query you're running? (mask anything sensitive)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310877#M5705</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-05T19:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310878#M5706</link>
      <description>&lt;P&gt;Yes, it return VALUE and NULL, but that's not the only field values. Sorry for the misunderstanding.&lt;BR /&gt;
Oh, I think I just fix it. The some values in the field contain no data, so it returns NULL and VALUE. I add below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search field11=*
| search field12 = "fieldValue1" OR "fieldValue2"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310878#M5706</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310879#M5707</link>
      <description>&lt;P&gt;So, that only works to exclude NULL, but it doesn't work to exclude VALUE.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310879#M5707</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T20:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310880#M5708</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app_fig (keywordA keywordB* keywordC) OR (keywordD keywordE keywordF) OR (keywordG keywordH)
  | rex "2017-(?P&amp;lt;currentDate&amp;gt;\w*.\w*.\w*)\s(?P&amp;lt;currentTime&amp;gt;\d*\:\d*\:\d*)\s\[" 
   | rex "(type|fieldType)\=(?&amp;lt;field11&amp;gt;[^,]*)"
   | rex "fieldName\":\"(?&amp;lt;field12&amp;gt;[^\"]*)"
   | rex "(workOrder|workOrderNumber)=(?&amp;lt;woNum1&amp;gt;\w*)\,"
   | rex "wo:(?&amp;lt;woNum2&amp;gt;\w*)_"  
| search field11=* OR field12=* 
  | eval field1=if(searchmatch("keywordG keywordH"), field12,field11)
  | eval woNum=if(searchmatch("keywordG keywordH"), woNum2,woNum1)
  | chart dc(woNum) by currentDate, field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310880#M5708</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-05T20:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310881#M5709</link>
      <description>&lt;P&gt;It still has VALUE as one of the field value, and the NULL is excluded.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310881#M5709</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T20:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310882#M5710</link>
      <description>&lt;P&gt;Issue is fixed. Below is the solution. Thank you! I used the one with coalesce. It's much cleaner&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search field1 != ""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2017 20:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310882#M5710</guid>
      <dc:creator>limalbert</dc:creator>
      <dc:date>2017-12-05T20:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine multiple reports into one report from same index?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310883#M5711</link>
      <description>&lt;P&gt;how can we do it?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-combine-multiple-reports-into-one-report-from-same-index/m-p/310883#M5711</guid>
      <dc:creator>sherifhmdy</dc:creator>
      <dc:date>2020-02-26T16:15:10Z</dc:date>
    </item>
  </channel>
</rss>

