<?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: Build data from index in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147087#M9100</link>
    <description>&lt;P&gt;You could create a search that ends with&lt;BR /&gt;&lt;BR /&gt;
    | table _time,_raw | outputcsv csvfilename&lt;/P&gt;

&lt;P&gt;This will create a csv file in the splunk\var\run\splunk directory that includes the raw data.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Outputcsv"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Outputcsv&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2013 20:14:31 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-11-18T20:14:31Z</dc:date>
    <item>
      <title>Build data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147086#M9099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an interesting question put by my client. Here in this case splunk listens to a port and starts indexing the streaming data. Now that an index is built and there is no physical storage of files(Source), the other tools want to access the physical files. How do I build physical files AUTOMATICALLY from the index.&lt;/P&gt;

&lt;P&gt;Note : I tried exporting the results of a search MANUALLY and that worked fine irrespective of the file size. Please correct me for the size factor.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147086#M9099</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2013-11-18T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Build data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147087#M9100</link>
      <description>&lt;P&gt;You could create a search that ends with&lt;BR /&gt;&lt;BR /&gt;
    | table _time,_raw | outputcsv csvfilename&lt;/P&gt;

&lt;P&gt;This will create a csv file in the splunk\var\run\splunk directory that includes the raw data.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Outputcsv"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Outputcsv&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147087#M9100</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-18T20:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Build data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147088#M9101</link>
      <description>&lt;P&gt;Alternatively, if you looking for some script automation for the same, you can use curl command to execute and export the search result (preferred for large no of rows). This command is availabe in Linux/Unix and downloadable versions available for windows.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u adminUserName:password &lt;A href="https://&amp;lt;&amp;lt;yourHostName:8089/services/search/jobs/export" target="test_blank"&gt;https://&amp;lt;&amp;lt;yourHostName:8089/services/search/jobs/export&lt;/A&gt; --data-urlencode search='search &amp;lt;&amp;lt;your base search&amp;gt;&amp;gt; | table index,host,source,sourcetype,_raw' -d output_mode=csv -d earliest_time='-2d@d' -d latest_time='-1d@d' -o &amp;lt;&amp;lt;yourfilename&amp;gt;&amp;gt;.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147088#M9101</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-18T20:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Build data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147089#M9102</link>
      <description>&lt;P&gt;Thanks for your time. I really appreciate.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147089#M9102</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2013-11-18T20:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Build data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147090#M9103</link>
      <description>&lt;P&gt;Thank you. I was exactly looking for something like this.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Build-data-from-index/m-p/147090#M9103</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2013-11-18T20:36:24Z</dc:date>
    </item>
  </channel>
</rss>

