<?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 make a single report from two csv files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-a-single-report-from-two-csv-files/m-p/485049#M83037</link>
    <description>&lt;P&gt;you could use append to join the data together. Then run your stats after you've combined them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup SF_Week41.csv
| eval src="sf_week_1"
| append [|inputlookup SF.csv  | eval src="sf"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Nov 2019 06:29:36 GMT</pubDate>
    <dc:creator>jpass</dc:creator>
    <dc:date>2019-11-14T06:29:36Z</dc:date>
    <item>
      <title>How to make a single report from two csv files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-a-single-report-from-two-csv-files/m-p/485048#M83036</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| inputlookup SF_Week41.csv 
| fields OpenedDate,ReOpenCount,LastModifiedDate,ResolvedDate,Age(Hours),CaseAge,ClosedDate,CustomerpendingTime,LastCurrentOwnerUpdateDateTime,CaseLastModifiedDate,CaseNumber,Status,OwnerL4,LastResolvedDateassubmit,CumulativeTime(L4),AssignedDateTime(L4),OwnerQueueL4,OwnerLevel,CaseOwner,IssueDefectType,IssueType,IssueSubType,AccountName | eval OpenedWeek=strftime(strptime(OpenedDate,"%m/%d/%Y"),"%V") | eval LastModifiedWeek=strftime(strptime(LastModifiedDate,"%m/%d/%Y"),"%V") | eval ClosedWeek=strftime(strptime(ClosedDate,"%m/%d/%Y"),"%V") | eval ResolvedWeek=strftime(strptime(ResolvedDate,"%m/%d/%Y"),"%V") | eval Morethan30Days = if(CaseAge&amp;gt;30,"Yes","No") | fields Morethan30Days CaseNumber Status OpenedDate OpenedWeek ResolvedDate ResolvedWeek LastModifiedDate LastModifiedWeek ClosedDate ClosedWeek CaseAge | where Morethan30Days="Yes" AND (Status="Customer Pending" OR Status="In Progress") | stats count by Status | addcoltotals count labelfield="Status" label="Total" | rename count as Week41
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Status                    Week41

Customer Pending          38           

In Progress               66

Total                     104
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup SF.csv | fields OpenedDate,ReOpenCount,LastModifiedDate,ResolvedDate,Age(Hours),CaseAge,ClosedDate,CustomerpendingTime,LastCurrentOwnerUpdateDateTime,CaseLastModifiedDate,CaseNumber,Status,OwnerL4,LastResolvedDateassubmit,CumulativeTime(L4),AssignedDateTime(L4),OwnerQueueL4,OwnerLevel,CaseOwner,IssueDefectType,IssueType,IssueSubType,AccountName | eval OpenedWeek=strftime(strptime(OpenedDate,"%m/%d/%Y"),"%V") | eval LastModifiedWeek=strftime(strptime(LastModifiedDate,"%m/%d/%Y"),"%V") | eval ClosedWeek=strftime(strptime(ClosedDate,"%m/%d/%Y"),"%V") | eval ResolvedWeek=strftime(strptime(ResolvedDate,"%m/%d/%Y"),"%V") | eval Morethan30Days = if(CaseAge&amp;gt;30,"Yes","No") | fields Morethan30Days CaseNumber Status OpenedDate OpenedWeek ResolvedDate ResolvedWeek LastModifiedDate LastModifiedWeek ClosedDate ClosedWeek CaseAge | where Morethan30Days="Yes" AND (Status="Customer Pending" OR Status="In Progress") | stats count by Status | addcoltotals count labelfield="Status" label="Total" | rename count as Week46
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Status                  Week46

Customer Pending        38

In Progress             62

Total                   100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible to get both of them in one report like below using append or some other command? &lt;BR /&gt;
Expected Output :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Status                Week46                            Week41

Customer Pending      38                                38

In Progress           62                                66

Total                 100                               104
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 04:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-a-single-report-from-two-csv-files/m-p/485048#M83036</guid>
      <dc:creator>dinkarvidyarthy</dc:creator>
      <dc:date>2019-11-14T04:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a single report from two csv files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-a-single-report-from-two-csv-files/m-p/485049#M83037</link>
      <description>&lt;P&gt;you could use append to join the data together. Then run your stats after you've combined them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup SF_Week41.csv
| eval src="sf_week_1"
| append [|inputlookup SF.csv  | eval src="sf"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 06:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-a-single-report-from-two-csv-files/m-p/485049#M83037</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2019-11-14T06:29:36Z</dc:date>
    </item>
  </channel>
</rss>

