<?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: Export raw logs from specific time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31681#M6588</link>
    <description>&lt;P&gt;Yeah agreed, the "table _raw" solution did not work for me at all in 6.2.0, it looks like it would by populating stats but when I hit "export" then did csv it just gave me a file of timestamps.&lt;/P&gt;

&lt;P&gt;Following the CLI export example though got it done.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Exportsearchresults"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Exportsearchresults&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 16:17:34 GMT</pubDate>
    <dc:creator>shawngarrettsgp</dc:creator>
    <dc:date>2016-04-13T16:17:34Z</dc:date>
    <item>
      <title>Is there a way to export raw logs from specific time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31674#M6581</link>
      <description>&lt;P&gt;I have a specific source type and hosts that I want to export the raw logs for the past 24h is there a way to do that via the ui as I do not have admin access.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 03:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31674#M6581</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2022-12-29T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31675#M6582</link>
      <description>&lt;P&gt;You can do something like this to roughly achieve what you are trying to do via Splunk Web.&lt;/P&gt;

&lt;P&gt;Replace sourcetype and host with your actual search values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=foo host=goo | table _raw | outputcsv rawdump.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The file will get written to $SPLUNK_HOME/var/run/splunk&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 01:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31675#M6582</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-20T01:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31676#M6583</link>
      <description>&lt;P&gt;But I still need access to that location on the spunk server? Seems like it would be a simple thing for slunk to be able to do. Often times its nessicary to send logs  to the third party app developers so that they cam diagnose issues.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 01:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31676#M6583</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2012-04-20T01:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31677#M6584</link>
      <description>&lt;P&gt;Perform your search on required sourcetype(s) and host(s)&lt;/P&gt;

&lt;P&gt;Then navigate to Export -&amp;gt; Export Results&lt;/P&gt;

&lt;P&gt;Choose Format=Raw Events and click on "Export" to save a txt file of the raw events.&lt;/P&gt;

&lt;P&gt;There is "Max # of results to export " option where you can select "unlimited"&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 02:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31677#M6584</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-20T02:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31678#M6585</link>
      <description>&lt;P&gt;Only exports 10k lines that's no good&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 22:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31678#M6585</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2012-04-20T22:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31679#M6586</link>
      <description>&lt;P&gt;There is "Max # of results to export " option where you can select "unlimited"&lt;/P&gt;

&lt;P&gt;Note : Splunk 4.3&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2012 03:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31679#M6586</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-22T03:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31680#M6587</link>
      <description>&lt;P&gt;Here's a gzipped dump of everything past a certain timestamp that you run from the linux command line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo /opt/splunk/bin/splunk search "sourcetype=apache_access _time &amp;gt; 1335337200" -preview 0 -maxout 0 -output rawdata | gzip &amp;gt; access_custom.apr-may2012.gz
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2012 20:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31680#M6587</guid>
      <dc:creator>ianmaddox4bookr</dc:creator>
      <dc:date>2012-05-23T20:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31681#M6588</link>
      <description>&lt;P&gt;Yeah agreed, the "table _raw" solution did not work for me at all in 6.2.0, it looks like it would by populating stats but when I hit "export" then did csv it just gave me a file of timestamps.&lt;/P&gt;

&lt;P&gt;Following the CLI export example though got it done.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Exportsearchresults"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Exportsearchresults&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:17:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31681#M6588</guid>
      <dc:creator>shawngarrettsgp</dc:creator>
      <dc:date>2016-04-13T16:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31682#M6589</link>
      <description>&lt;P&gt;This is a good scripting approach to export large search results.&lt;BR /&gt;
This is another example of scripting: splunk search "index=_internal earliest=09/14/2014:23:59:00 latest=09/16/2014:01:00:00 " -output rawdata -maxout 200000 &amp;gt; c:/test123.dmp&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 00:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/31682#M6589</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-06-02T00:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/625243#M217354</link>
      <description>&lt;P&gt;From UI:&lt;/P&gt;&lt;P&gt;you can try dump command. choose the time range for which you want to export the logs. Make sure you have enough storage available in the server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index_name&amp;gt; | dump basefilename=dump_&amp;lt;index_name&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;basefilename will be saved under $SPLUNK_HOME/var/run/splunk/dispatch/&amp;lt;search_job_id&amp;gt;/dump/basefilename_&amp;lt;some_number&amp;gt;_&amp;lt;hour&amp;gt;.raw.gz&lt;BR /&gt;&lt;BR /&gt;Note: Splunk generates 1 dump for 1 hour. if you have selected 24hours time range then you will see 24 or 25 files.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 04:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/625243#M217354</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2022-12-26T04:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export raw logs from specific time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/635698#M220862</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1660"&gt;@Damien_Dallimor&lt;/a&gt;&amp;nbsp;Thanks man, this worked perfectly. Youre a rockstar! I want to add that I was able to set the host name using regular expression in path and created multiple indices by recreating the folder structure of the raw logs thanks to your method. Worked like a charm&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Thanks once again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-export-raw-logs-from-specific-time/m-p/635698#M220862</guid>
      <dc:creator>kiranshaw</dc:creator>
      <dc:date>2023-03-23T12:22:25Z</dc:date>
    </item>
  </channel>
</rss>

