<?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 export search results into a text file using search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592538#M206235</link>
    <description>&lt;P&gt;Understood. Testing it for output. Will update shortly. Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 21:33:54 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2022-04-05T21:33:54Z</dc:date>
    <item>
      <title>How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592531#M206230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am exploring some options for exporting data into text file from Splunk. I have a scheduled saved search which produces results like below in statistical table format. I need this to be written to a &lt;STRONG&gt;.txt&lt;/STRONG&gt; file. Results written need to be appended to existing txt file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count&amp;nbsp; &amp;nbsp; &amp;nbsp; index&amp;nbsp; &amp;nbsp; &amp;nbsp; sourcetype&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;results&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;04/05/2022 00:00:00&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Success exceeds Failures&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in-advance!!!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592531#M206230</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-04-05T20:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592535#M206232</link>
      <description>&lt;P&gt;see if this helps !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Export-results-to-txt/m-p/105583" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Export-results-to-txt/m-p/105583&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592535#M206232</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2022-04-05T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592536#M206233</link>
      <description>&lt;P&gt;I tried but thats for raw. I tried using it for stats table and it did not generate anything in specified directory.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592536#M206233</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-04-05T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592537#M206234</link>
      <description>&lt;P&gt;you would need to format the output&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your search&amp;gt;
| table count index sourcetype time results 
| eval _raw = mvzip(mvzip(mvzip(mvzip(count, index, " "), sourcetype, " "),time, " "),results, " ")
| outputtext usexml=false | rename _xml as raw | fields raw | fields - _* | outputcsv append=t results.txt&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592537#M206234</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2022-04-05T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592538#M206235</link>
      <description>&lt;P&gt;Understood. Testing it for output. Will update shortly. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592538#M206235</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-04-05T21:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592541#M206237</link>
      <description>&lt;P&gt;Quick Q. The file frim savedsearch will be written on SH correct? We have SH cluster. Also, can path be defined at SPL level? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592541#M206237</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2022-04-05T21:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to export search results into a text file using search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592708#M206317</link>
      <description>&lt;P&gt;I do not think you can change the path explicitly in SPL&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-location-a-saved-search-outputs-a-CSV-file-to/m-p/204917" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-location-a-saved-search-outputs-a-CSV-file-to/m-p/204917&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, you can write cron jobs to move the file on OS level.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-export-search-results-into-a-text-file-using-search/m-p/592708#M206317</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2022-04-06T15:07:40Z</dc:date>
    </item>
  </channel>
</rss>

