<?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: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302295#M164882</link>
    <description>&lt;P&gt;I tried using multireport too.&lt;BR /&gt;
But it is not giving me any statistics table "NO results found" , and no. of events that it shows is also incorrect.&lt;BR /&gt;
 splunk doesn't take "multireport" as key word/library key word/ lib predefined word.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;((index="&lt;EM&gt;") (sourcetype="Remedy")) &lt;BR /&gt;
| multireport [ eval Feedback="BLANK RESOLUTION"&lt;BR /&gt;
|fields "Incident ID", "_time", "Resolution", "Status", "Vendor Ticket Number", "Feedback", "Resolution Categorization Tier&lt;/EM&gt;"&lt;BR /&gt;
|search (Resolution != "&lt;EM&gt;why did it happen&lt;/EM&gt;" AND Resolution != "&lt;EM&gt;closer&lt;/EM&gt;") AND Status="Resolved"&lt;BR /&gt;
|table "Incident ID", "Feedback" "_time", "Resolution", "Status", "Vendor Ticket Number", "Resolution Categorization Tier*"]&lt;/P&gt;

&lt;P&gt;[search ((index="&lt;EM&gt;" OR index="_&lt;/EM&gt;") (sourcetype="Remedy")) |eval Feedback="feedback message"&lt;BR /&gt;
|fields "Incident ID",....&lt;BR /&gt;
|search ("&lt;EM&gt;my search&lt;/EM&gt;") &lt;BR /&gt;
|table "Incident ID", "Feedback" ....]&lt;/P&gt;

&lt;HR /&gt;</description>
    <pubDate>Tue, 05 Dec 2017 09:31:08 GMT</pubDate>
    <dc:creator>alfiyashaikh</dc:creator>
    <dc:date>2017-12-05T09:31:08Z</dc:date>
    <item>
      <title>Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302288#M164875</link>
      <description>&lt;P&gt;I have 20 searches to be performed on a single .csv log file . Every search results a different feedback like "missing value", "blank resolution", "breached" etc. I want all these feedbacks to be updated in a single "feedback" column in the output report .&lt;/P&gt;

&lt;P&gt;I am stuck at :&lt;BR /&gt;
1] How to get a textual feedback added to Feedback column after my search filters out the required events.&lt;BR /&gt;
2] How to automate these 20 searches sequentially.&lt;BR /&gt;
3] A single event can have more than 1 feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 10:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302288#M164875</guid>
      <dc:creator>alfiyashaikh</dc:creator>
      <dc:date>2017-11-23T10:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302289#M164876</link>
      <description>&lt;P&gt;Hi alfiyashaikh,&lt;BR /&gt;
do you want to have only one search or do you have many searches and result must be added to the same csv output file?&lt;/P&gt;

&lt;P&gt;in the first case you have to use the append command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_search_1
| rename column_field1 AS field column_message1 AS message
| table field message
| append [ search 
     my_search_2
    | rename column_field2 AS field column_message2 AS message
    | table field message
    ]
| append [ search 
     my_search_3
    | rename column_field3 AS field column_message3 AS message
    | table field message
    ]
| table field message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you want to add result to an output csv file, you have to separately run your searches adding to the end the line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| outputcsv append=true my_outputfile.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 11:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302289#M164876</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-23T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302290#M164877</link>
      <description>&lt;P&gt;Check out this Q&amp;amp;A for a very similar conversation with many suggestions:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/594332/pattern-loopable-lookup-table-to-bypass-map-subsea.html"&gt;https://answers.splunk.com/answers/594332/pattern-loopable-lookup-table-to-bypass-map-subsea.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302290#M164877</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-11-27T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302291#M164878</link>
      <description>&lt;P&gt;Maybe you can use only 1 mega search and 20 clauses after a &lt;CODE&gt;|multireport&lt;/CODE&gt; after it.  It would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputcsv YourFileHere | multireport
[SPL for analysis #1 here | table foo bar feedback]
. . . . . . . .
[SPL for analysis #20 here | table foo bar feedback]
| stats values(feedback) AS feedback BY foo bar
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302291#M164878</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-11-27T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302292#M164879</link>
      <description>&lt;P&gt;Hi cusello and woodcock  ,&lt;/P&gt;

&lt;P&gt;Thank you for your help.&lt;/P&gt;

&lt;P&gt;2] How to automate these 20 searches sequentially.&lt;BR /&gt;
- "append" worked for this case.&lt;/P&gt;

&lt;P&gt;For feedback:&lt;BR /&gt;
1] How to get a textual feedback added to Feedback column after my search filters out the required events&lt;/P&gt;

&lt;P&gt;By eval, I entered the feedback [|eval Feedback="Blank resolution" ], similarly added required feedback for each search .&lt;/P&gt;

&lt;P&gt;3] A single event can have more than 1 feedback.&lt;BR /&gt;
I used [ |outputcsv XYZcsvfile  ]  at the extreme end of my search&lt;BR /&gt;
so I even got multiple feedback for single event.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 05:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302292#M164879</guid>
      <dc:creator>alfiyashaikh</dc:creator>
      <dc:date>2017-12-05T05:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302293#M164880</link>
      <description>&lt;P&gt;I am lost.  Do you have a working solution?  Do you understand the pieces that have been shown so far?  If not, you need to show sample data and a mockup of the desired solution or I don't think anyone will be able to dig deeper.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302293#M164880</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-05T08:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302294#M164881</link>
      <description>&lt;P&gt;Input file in a Incident data log file"&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;((index="&lt;EM&gt;") (sourcetype="Remedy")) | eval Feedback="Feedback message"&lt;BR /&gt;
|fields "Incident", "time", "Resolution", "Status", "Vendor Ticket Number", "Feedback"&lt;BR /&gt;
|search (Resolution != "*why did it happen&lt;/EM&gt;" AND Resolution != "&lt;EM&gt;closer&lt;/EM&gt;") AND Status="Resolved"&lt;BR /&gt;
|table "Incident ID", "Feedback" "_time", "Resolution", "Status", "Vendor Ticket Number"&lt;/P&gt;

&lt;P&gt;|append [next search]&lt;BR /&gt;
|append [next search]&lt;/P&gt;

&lt;P&gt;|outputcsv output_csv_file&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;After running this search a new .csv is created in my C:\Program Files\Splunk\var\run\splunk\csv local folder.&lt;BR /&gt;
It contains the required fields and respective feedbacks for all the searches appended&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302294#M164881</guid>
      <dc:creator>alfiyashaikh</dc:creator>
      <dc:date>2020-09-29T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302295#M164882</link>
      <description>&lt;P&gt;I tried using multireport too.&lt;BR /&gt;
But it is not giving me any statistics table "NO results found" , and no. of events that it shows is also incorrect.&lt;BR /&gt;
 splunk doesn't take "multireport" as key word/library key word/ lib predefined word.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;((index="&lt;EM&gt;") (sourcetype="Remedy")) &lt;BR /&gt;
| multireport [ eval Feedback="BLANK RESOLUTION"&lt;BR /&gt;
|fields "Incident ID", "_time", "Resolution", "Status", "Vendor Ticket Number", "Feedback", "Resolution Categorization Tier&lt;/EM&gt;"&lt;BR /&gt;
|search (Resolution != "&lt;EM&gt;why did it happen&lt;/EM&gt;" AND Resolution != "&lt;EM&gt;closer&lt;/EM&gt;") AND Status="Resolved"&lt;BR /&gt;
|table "Incident ID", "Feedback" "_time", "Resolution", "Status", "Vendor Ticket Number", "Resolution Categorization Tier*"]&lt;/P&gt;

&lt;P&gt;[search ((index="&lt;EM&gt;" OR index="_&lt;/EM&gt;") (sourcetype="Remedy")) |eval Feedback="feedback message"&lt;BR /&gt;
|fields "Incident ID",....&lt;BR /&gt;
|search ("&lt;EM&gt;my search&lt;/EM&gt;") &lt;BR /&gt;
|table "Incident ID", "Feedback" ....]&lt;/P&gt;

&lt;HR /&gt;</description>
      <pubDate>Tue, 05 Dec 2017 09:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302295#M164882</guid>
      <dc:creator>alfiyashaikh</dc:creator>
      <dc:date>2017-12-05T09:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302296#M164883</link>
      <description>&lt;P&gt;Excuse the Hijack .. On a side note - if this is remedy AR ? how are you getting this info into Splunk ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 00:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302296#M164883</guid>
      <dc:creator>Skins</dc:creator>
      <dc:date>2017-12-06T00:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automating 20 diffrent searches on a single .csv log file , and getting textual feedback from this searches added to report.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302297#M164884</link>
      <description>&lt;P&gt;extracting xls file from remedy and manually uploading it on Splunk enterprise&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 05:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automating-20-diffrent-searches-on-a-single-csv-log-file-and/m-p/302297#M164884</guid>
      <dc:creator>alfiyashaikh</dc:creator>
      <dc:date>2017-12-06T05:21:48Z</dc:date>
    </item>
  </channel>
</rss>

