<?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 monitor and index tar.gz files in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227687#M44384</link>
    <description>&lt;P&gt;Normally it should show you an error message in $SPLUNKHOME/var/log/splunk/splunkd.log when its not reading you can force it with a &lt;CODE&gt;.splunk restart&lt;/CODE&gt; or you try a &lt;CODE&gt;.splunk add oneshot&lt;/CODE&gt; to see in splunkd.log what happen.&lt;/P&gt;

&lt;P&gt;...what kind of files are in the .tar.gz may there is something inside splunk can't read.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2016 18:59:22 GMT</pubDate>
    <dc:creator>SierraX</dc:creator>
    <dc:date>2016-11-13T18:59:22Z</dc:date>
    <item>
      <title>How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227683#M44380</link>
      <description>&lt;P&gt;I have a tar.gz file and I wan't to continuously monitor it. I tried to index it to Splunk Enterprise via Settings&amp;gt;Data Inputs&amp;gt;Files&amp;amp;Directories, but when I run a search, Splunk doesn't return a result. &lt;BR /&gt;
What are the steps to continuously monitor tar.gz files to index in Splunk? Do I need to write a script that automatically decompress tar.gz file so Splunk can index it? Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 15:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227683#M44380</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-13T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227684#M44381</link>
      <description>&lt;P&gt;Splunk won't index compressed files because they look like binaries.  A script is one idea.  Or you could have Splunk monitor the files before they are tarred.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 17:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227684#M44381</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-13T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227685#M44382</link>
      <description>&lt;P&gt;According to the most recent docs Splunk does index compressed files&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;How Splunk Enterprise monitors archive files
Archive files (such as a .tar or .zip file, are decompressed before being indexed. The following types of archive files are supported:

 .tar
 .gz
 .bz2
 .tar.gz and .tgz
 .tbz and .tbz2
 .zip
 .z
If you add new data to an existing archive file, the entire file is reindexed, not just the new data. This can result in event duplication.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Nov 2016 18:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227685#M44382</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-13T18:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227686#M44383</link>
      <description>&lt;P&gt;I use the Universal forwarder to monitor compressed files, haven't tried it with the gui though.....&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 18:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227686#M44383</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-13T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227687#M44384</link>
      <description>&lt;P&gt;Normally it should show you an error message in $SPLUNKHOME/var/log/splunk/splunkd.log when its not reading you can force it with a &lt;CODE&gt;.splunk restart&lt;/CODE&gt; or you try a &lt;CODE&gt;.splunk add oneshot&lt;/CODE&gt; to see in splunkd.log what happen.&lt;/P&gt;

&lt;P&gt;...what kind of files are in the .tar.gz may there is something inside splunk can't read.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 18:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227687#M44384</guid>
      <dc:creator>SierraX</dc:creator>
      <dc:date>2016-11-13T18:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227688#M44385</link>
      <description>&lt;P&gt;@lguinn said at &lt;A href="https://answers.splunk.com/answers/127734/how-to-uncompress-and-index-the-compressed-log-data-coming-from-the-forwarder.html"&gt;How to uncompress and index the compressed log data coming from the forwarder&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2140i0E11B3B189E2F907/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 20:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227688#M44385</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-11-13T20:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227689#M44386</link>
      <description>&lt;P&gt;inside the .tar.gz is a log file&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 07:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227689#M44386</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-14T07:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227690#M44387</link>
      <description>&lt;P&gt;I've already did this but still no logs are being indexed&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227690#M44387</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-14T08:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227691#M44388</link>
      <description>&lt;P&gt;Check your sourcetype as well, does it match the data format?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 11:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227691#M44388</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-14T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227692#M44389</link>
      <description>&lt;P&gt;Yes it is.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 07:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227692#M44389</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-15T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227693#M44390</link>
      <description>&lt;P&gt;How do you monitor compress file without using gui? Is it on the inputs.conf? &lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 07:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227693#M44390</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-15T07:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227694#M44391</link>
      <description>&lt;P&gt;Yes, you would use inputs.conf&lt;/P&gt;

&lt;P&gt;Here is what I do.&lt;/P&gt;

&lt;P&gt;in $SPLUNK_HOME/etc/system/local&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///var/nfs/SAT_SplunkLogs/weblogic/twc_media4/*.zip]
move_policy = sinkhole
host_segment=5
sourcetype=wls_managedserver
index=twc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227694#M44391</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-15T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227695#M44392</link>
      <description>&lt;P&gt;keep in mind the batch option on the first line.  This will ERASE the zip file when Splunk finishes indexing.  If you don't want that, change batch to monitor and delete the move_policy line.&lt;/P&gt;

&lt;P&gt;Also you must restart Splunk for any changes in inputs.conf to take effect.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227695#M44392</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-15T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227696#M44393</link>
      <description>&lt;P&gt;If you are trying to monitor a file on a universal forwarder (i.e. tar.gz on a remote system), you can use the GUI to create a forwarder data/file input.&lt;/P&gt;

&lt;P&gt;Settings --&amp;gt; Data Inputs --&amp;gt; Forwarded Inputs --&amp;gt; Files &amp;amp; Directories&lt;/P&gt;

&lt;P&gt;Once that is complete, make sure you go to Forwarder Management, and enable the app by editing it, and checking the box. The Deployment will take a few minutes, but should start returning results shortly thereafter. &lt;/P&gt;

&lt;P&gt;If it doesn't start indexing the data, and if you have direct access to the file location, try moving the files out of location (e.g. from /log to /opt) and back again. The move should trigger indexing.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 12:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227696#M44393</guid>
      <dc:creator>Rhin0Crash</dc:creator>
      <dc:date>2016-11-15T12:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227697#M44394</link>
      <description>&lt;P&gt;Hi thank you for your answer. I'm using heavy forwarder for me to monitor those compressed log.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 03:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227697#M44394</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2016-11-16T03:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227698#M44395</link>
      <description>&lt;P&gt;My comment above works for me&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227698#M44395</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-11-16T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227699#M44396</link>
      <description>&lt;P&gt;FYI Splunk does index compressed files&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227699#M44396</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-12-02T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227700#M44397</link>
      <description>&lt;P&gt;I downvoted this post because this answer is incorrect. Splunk is capable of monitoring compressed files. There must be some other issue here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 15:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227700#M44397</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2016-12-27T15:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227701#M44398</link>
      <description>&lt;P&gt;I downvoted this post because splunk can index compressed files&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 19:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227701#M44398</guid>
      <dc:creator>jcspigler2010</dc:creator>
      <dc:date>2016-12-28T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor and index tar.gz files in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227702#M44399</link>
      <description>&lt;P&gt;In my case splunk enterprise did not index compressed file so we created a bash script to uncompressed the data and proceed with the indexing.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-and-index-tar-gz-files-in-Splunk/m-p/227702#M44399</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2017-03-28T10:46:13Z</dc:date>
    </item>
  </channel>
</rss>

