<?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: Indexing Zipped Files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323000#M60141</link>
    <description>&lt;P&gt;What you need is the &lt;CODE&gt;add oneshot&lt;/CODE&gt; command from the CLI.  Write a small script to shoot each file (do not ZIP them all together) and pass in the sourcetype as a parameter so that your timestamping is done correctly as per your configuraitons for that sourcetype:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Data/MonitorfilesanddirectoriesusingtheCLI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Jul 2017 00:34:29 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-07-22T00:34:29Z</dc:date>
    <item>
      <title>Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/322998#M60139</link>
      <description>&lt;P&gt;I have about 500 excel files that I need to index into Splunk.&lt;/P&gt;

&lt;P&gt;If I upload each file individually, I pick my sourcetype in the Add Data wizard and all the events show up correctly.&lt;/P&gt;

&lt;P&gt;If I zip all the files together into a single file, I select the same sourcetype, but I cannot see a preview of the sample events: &lt;A href="http://imgur.com/a/Un4xL"&gt;http://imgur.com/a/Un4xL&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Splunk then gets confused when parsing the time stamp from the zipped file, and events show up with the wrong time.&lt;/P&gt;

&lt;P&gt;Here are the sourcetype settings I'm trying to use: &lt;A href="http://imgur.com/a/5F4bK"&gt;http://imgur.com/a/5F4bK&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is there a way to make the events load correctly for the zipped file, instead of uploading all 500 files individually?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 20:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/322998#M60139</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-21T20:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/322999#M60140</link>
      <description>&lt;P&gt;@mhtedford, is the intent of zipping the file only to upload multiple files to Splunk index in single shot, or the CSV files are created as zip through your existing system/application?&lt;/P&gt;

&lt;P&gt;If individual file upload is working fine, and there is not hard and fast need to upload a zip file, then you can choose &lt;STRONG&gt;Monitor folder&lt;/STRONG&gt; option instead of &lt;STRONG&gt;Upload file&lt;/STRONG&gt;. You can put all the files to the folder, and Splunk should pick them up.&lt;/P&gt;

&lt;P&gt;PS: Monitor Folder allows you to select folder from UI (instead of individual file).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 20:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/322999#M60140</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-21T20:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323000#M60141</link>
      <description>&lt;P&gt;What you need is the &lt;CODE&gt;add oneshot&lt;/CODE&gt; command from the CLI.  Write a small script to shoot each file (do not ZIP them all together) and pass in the sourcetype as a parameter so that your timestamping is done correctly as per your configuraitons for that sourcetype:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Data/MonitorfilesanddirectoriesusingtheCLI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 00:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323000#M60141</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-22T00:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323001#M60142</link>
      <description>&lt;P&gt;@niketnilay&lt;/P&gt;

&lt;P&gt;The intent of zipping the file is only to upload multiple files to Splunk index in a single shot.&lt;/P&gt;

&lt;P&gt;I'm trying to use the &lt;STRONG&gt;Monitor folder&lt;/STRONG&gt; option, but I am having trouble finding my folder: &lt;A href="http://imgur.com/a/OfZZA"&gt;http://imgur.com/a/OfZZA&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's currently located on my desktop, but the folder is empty in the Splunk wizard. Please advise&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 13:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323001#M60142</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323002#M60143</link>
      <description>&lt;P&gt;What is the folder name and path? You can also directly set the path using text box in the Splunk UI.&lt;/P&gt;

&lt;P&gt;Monitor Folder will should folders and not files since by default it will monitor all the files inside the folder (unless you want to restrict the same through Whitelist and/or Blacklist).&lt;/P&gt;

&lt;P&gt;In the screenshot attached you have selected entire c drive. For adding a folder on your desktop you should navigate to Users folder and then to your logged in username folder.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323002#M60143</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-24T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing Zipped Files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323003#M60144</link>
      <description>&lt;P&gt;This is the error I get when I try to set the path directly: &lt;A href="http://imgur.com/a/hAStX"&gt;http://imgur.com/a/hAStX&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I navigate to the Users folder and then my username, all the folders are empty. I think the permissions might not allow, and I'm not sure how to fix that.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 17:35:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-Zipped-Files/m-p/323003#M60144</guid>
      <dc:creator>mhtedford</dc:creator>
      <dc:date>2017-07-24T17:35:06Z</dc:date>
    </item>
  </channel>
</rss>

