<?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 filter out temp files when searching with Hunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260178#M49952</link>
    <description>&lt;P&gt;Thx for the link.&lt;/P&gt;

&lt;P&gt;I had the whitelist regex as follows: &lt;CODE&gt;ISE.*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I then changed the regex to: &lt;CODE&gt;(ISE.*\.(\d+))&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;as the Cisco ISE logs either end with  . when fully written, or .tmp as the file is still be written to.&lt;/P&gt;

&lt;P&gt;I have a different regex problem (Time capturing regex) which is driving me mad if you don't mind taking a look at.&lt;/P&gt;

&lt;P&gt;We have three directories on HDFS:&lt;/P&gt;

&lt;P&gt;• /LogCentral/Firewall&lt;BR /&gt;
• /LogCentral/ISE&lt;BR /&gt;
• /LogCentral/ WindowsEvent&lt;/P&gt;

&lt;P&gt;I have the following regex applied to our Firewall virtual index and I can use the time picker no problem&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*?/Firewall/(\d+)-(\d+)-(\d+)/.*?) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, applying the same format to the other two logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.?/ISE/(\d+)-(\d+)-(\d+)/.*?)
.?/WindowsEvent/(\d+)-(\d+)-(\d+)/.*?)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get no events at all no matter what dates I select in the time picker, yet I'm using the same format.&lt;/P&gt;

&lt;P&gt;Tried the following regex as I got a match on regex101.com:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.+\ISE\/(\d+)-(\d+)-(\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yes when I enter that and try and run a search, it errors out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cdhprovider] Error while running external process, return_code=255. See search.log for more info
[cdhprovider] IOException - No input paths specified in job.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2015 18:38:38 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2015-12-02T18:38:38Z</dc:date>
    <item>
      <title>How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260176#M49950</link>
      <description>&lt;P&gt;Running into an issue where a query against a virtual index errors out when it hits *.tmp files in the HDFS directory. &lt;/P&gt;

&lt;P&gt;Is there a way to filter, or prevent the query from looking at *.tmp files as it's performing the query?&lt;/P&gt;

&lt;P&gt;Cloudera said to perform a filtering of the files in the target input directory, to remove away any .tmp files as these are in-progress files from Flume and can get renamed during the job, causing this error.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 16:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260176#M49950</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-02T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260177#M49951</link>
      <description>&lt;P&gt;You can use the whitelist regex, see this &lt;A href="http://blogs.splunk.com/2013/11/08/hunk-intro-part-3/"&gt;blog pos&lt;/A&gt;t for an example&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260177#M49951</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2015-12-02T17:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260178#M49952</link>
      <description>&lt;P&gt;Thx for the link.&lt;/P&gt;

&lt;P&gt;I had the whitelist regex as follows: &lt;CODE&gt;ISE.*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I then changed the regex to: &lt;CODE&gt;(ISE.*\.(\d+))&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;as the Cisco ISE logs either end with  . when fully written, or .tmp as the file is still be written to.&lt;/P&gt;

&lt;P&gt;I have a different regex problem (Time capturing regex) which is driving me mad if you don't mind taking a look at.&lt;/P&gt;

&lt;P&gt;We have three directories on HDFS:&lt;/P&gt;

&lt;P&gt;• /LogCentral/Firewall&lt;BR /&gt;
• /LogCentral/ISE&lt;BR /&gt;
• /LogCentral/ WindowsEvent&lt;/P&gt;

&lt;P&gt;I have the following regex applied to our Firewall virtual index and I can use the time picker no problem&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*?/Firewall/(\d+)-(\d+)-(\d+)/.*?) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, applying the same format to the other two logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.?/ISE/(\d+)-(\d+)-(\d+)/.*?)
.?/WindowsEvent/(\d+)-(\d+)-(\d+)/.*?)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get no events at all no matter what dates I select in the time picker, yet I'm using the same format.&lt;/P&gt;

&lt;P&gt;Tried the following regex as I got a match on regex101.com:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.+\ISE\/(\d+)-(\d+)-(\d+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yes when I enter that and try and run a search, it errors out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cdhprovider] Error while running external process, return_code=255. See search.log for more info
[cdhprovider] IOException - No input paths specified in job.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260178#M49952</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-02T18:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260179#M49953</link>
      <description>&lt;P&gt;As copied here, your regexes have unbalanced parentheses. For example, &lt;CODE&gt;".?/ISE/(d+)-(d+)-(d+)/.?)"&lt;/CODE&gt; has a final &lt;CODE&gt;)&lt;/CODE&gt; char that is not matched on the left. Is that a copying artifact, or what you're really using? If the latter, try removing the final &lt;CODE&gt;)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 21:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260179#M49953</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-12-02T21:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260180#M49954</link>
      <description>&lt;P&gt;That is a copying artifact - should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*?/ISE/(\d+)-(\d+)-(\d+)/.*?
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Dec 2015 21:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260180#M49954</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-02T21:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260181#M49955</link>
      <description>&lt;P&gt;OK, then that regex looks OK to me. Can you verify that the data format is the same for the ISE index as it is for the Firewall index?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 22:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260181#M49955</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-12-02T22:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260182#M49956</link>
      <description>&lt;P&gt;It's exact, and that's what's driving me crazy&lt;/P&gt;

&lt;P&gt;• /LogCentral/Firewall/yyyy-MM-dd&lt;BR /&gt;
• /LogCentral/ISE/yyyy-MM-dd&lt;BR /&gt;
• /LogCentral/WindowsEvent/yyyy-MM-dd&lt;/P&gt;

&lt;P&gt;and I have yyyyMMdd entered for Format&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 01:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260182#M49956</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-03T01:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260183#M49957</link>
      <description>&lt;P&gt;I'm afraid I can't figure out what's going on from the info here. The only other difference I see is that the pattern that works starts with .*?, while the other two start with .?, but that really should not matter. I think you may need to contact support to have somebody go through this with you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 23:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260183#M49957</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-12-07T23:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out temp files when searching with Hunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260184#M49958</link>
      <description>&lt;P&gt;Just an update:&lt;/P&gt;

&lt;P&gt;For the time capturing regex I had to set the 'Time Range' to 1 day as the we're saving logs to one folder per day (12/14, 12/15, 12/16, etc). By setting the 'Time Range' to 1 day, I can now search logs per day.&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-out-temp-files-when-searching-with-Hunk/m-p/260184#M49958</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-16T20:03:54Z</dc:date>
    </item>
  </channel>
</rss>

