<?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 archive specific logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102815#M21564</link>
    <description>&lt;P&gt;You could use the &lt;CODE&gt;collect&lt;/CODE&gt; command to grab the search results for some search with interesting results and write those results to a separate index that has a much longer retention time than your main index.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2012 15:12:53 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-10-25T15:12:53Z</dc:date>
    <item>
      <title>How to archive specific logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102814#M21563</link>
      <description>&lt;P&gt;If I find something worth keeping I would like to be able to archive the specific event logs that I want and save them somewhere outside of splunk.  &lt;/P&gt;

&lt;P&gt;coldToFrozenDir, determines the behavior when cold rolls to frozen and archives the frozen buckets in the specified directory, but I only want to archive specific logs, at random.&lt;/P&gt;

&lt;P&gt;for example if I do a search and find a log that I would like to just keep, how do I just keep that one.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 15:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102814#M21563</guid>
      <dc:creator>aywong</dc:creator>
      <dc:date>2012-10-25T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to archive specific logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102815#M21564</link>
      <description>&lt;P&gt;You could use the &lt;CODE&gt;collect&lt;/CODE&gt; command to grab the search results for some search with interesting results and write those results to a separate index that has a much longer retention time than your main index.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 15:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102815#M21564</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-25T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to archive specific logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102816#M21565</link>
      <description>&lt;P&gt;The easiest way to do what you're asking is to export the results using the "export" button in the search view, print it, or "save search and results".&lt;/P&gt;

&lt;P&gt;coldToFrozenDir works at the bucket (subdivision of an index) level, and it's unlikely that you could archive a particular piece of log segment in a single bucket (not without a lot of other things in that bucket, too).&lt;/P&gt;

&lt;P&gt;You could also consider saving just the "_raw" field of the events found by your search. This would work for the export functionality, too. When you're satisfied with the search expression to get the results you want, add &lt;CODE&gt;| table _raw&lt;/CODE&gt; at the end, then export the results when the search finishes.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 15:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102816#M21565</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-10-25T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to archive specific logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102817#M21566</link>
      <description>&lt;P&gt;The problem with this method is that the fields source, sourcetype and host are overridden. &lt;BR /&gt;
It would be better if there was an option to archive data or mark data as don't delete until you do not need them anymore. &lt;BR /&gt;
We have to sometimes keep specific Data for further analysis and do not know how long we need to keep them. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-archive-specific-logs/m-p/102817#M21566</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2014-11-25T16:21:05Z</dc:date>
    </item>
  </channel>
</rss>

