<?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 Hunk and virtual indexes in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220780#M73440</link>
    <description>&lt;P&gt;We are using Hunk in a POC and the way our HDFS file structure is set up is we have a folder for every date, so for example our firewall logs are set up like:&lt;/P&gt;

&lt;P&gt;/logs/fwsm (parent dir)&lt;BR /&gt;
--/2015-11-06&lt;BR /&gt;
--/2015-11-05&lt;BR /&gt;
--/2015-11-04&lt;BR /&gt;
…&lt;BR /&gt;
--/2015-10-31&lt;/P&gt;

&lt;P&gt;We set up a main virtual index at the parent so we’re searching all logs under /logs/fwsm. An issue we’re running into is there is a need to search per day so I find myself creating a virtual index for every date, and with that I had two questions&lt;/P&gt;

&lt;P&gt;• Is there any other way to search by date using the virtual indexes?&lt;BR /&gt;
• Is there any limit to the amount of virtual indexes that can be created (as one can imagine, this will get real ugly when we start creating virtual indexes by date for multiple sourcetypes)?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 20:38:59 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2015-11-06T20:38:59Z</dc:date>
    <item>
      <title>Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220780#M73440</link>
      <description>&lt;P&gt;We are using Hunk in a POC and the way our HDFS file structure is set up is we have a folder for every date, so for example our firewall logs are set up like:&lt;/P&gt;

&lt;P&gt;/logs/fwsm (parent dir)&lt;BR /&gt;
--/2015-11-06&lt;BR /&gt;
--/2015-11-05&lt;BR /&gt;
--/2015-11-04&lt;BR /&gt;
…&lt;BR /&gt;
--/2015-10-31&lt;/P&gt;

&lt;P&gt;We set up a main virtual index at the parent so we’re searching all logs under /logs/fwsm. An issue we’re running into is there is a need to search per day so I find myself creating a virtual index for every date, and with that I had two questions&lt;/P&gt;

&lt;P&gt;• Is there any other way to search by date using the virtual indexes?&lt;BR /&gt;
• Is there any limit to the amount of virtual indexes that can be created (as one can imagine, this will get real ugly when we start creating virtual indexes by date for multiple sourcetypes)?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220780#M73440</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-06T20:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220781#M73441</link>
      <description>&lt;P&gt;Have you tried to use the Time Capturing Regex as shown in this document?&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Hunk/latest/Hunk/Addavirtualindex"&gt;http://docs.splunk.com/Documentation/Hunk/latest/Hunk/Addavirtualindex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 18:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220781#M73441</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2015-11-09T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220782#M73442</link>
      <description>&lt;P&gt;I did not see that option/document - I assume the time capturing regex means I'd be able to search by date/time within the main virtual index? Am I basing the regex on the file structure, or the log's date/time format?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 18:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220782#M73442</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-09T18:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220783#M73443</link>
      <description>&lt;P&gt;Yes, this will allow you to efficiently search by time within a single virtual index. The capturing regex will allow Hunk to choose which files to search based on the directories they are in, so it should match that, not the log structure.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220783#M73443</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-11-09T19:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220784#M73444</link>
      <description>&lt;P&gt;The option to capture the Regex is part of the Virtual Index UI, Select the Customize Timestamp Format button. &lt;BR /&gt;
Your assumption is correct, once you set it up you can use the search and the search time picker to select a specific day within the HDFS data.&lt;BR /&gt;
Here is an example:&lt;BR /&gt;
path      = /logs/fwsm/...&lt;BR /&gt;
accept    = &lt;BR /&gt;
regex  = &lt;EM&gt;.?/fwsm/(\d+)-(\d+)-(\d+)/.&lt;/EM&gt;&lt;BR /&gt;
format = yyyyMMdd&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220784#M73444</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2015-11-09T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220785#M73445</link>
      <description>&lt;P&gt;Thx for the reply and info&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220785#M73445</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-09T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220786#M73446</link>
      <description>&lt;P&gt;Thx&lt;/P&gt;

&lt;P&gt;Apologies as the actual dir structure is /LogCentral/Firewall, so I set my 'Time capturing regex' as follows - ?/Firewall/(d+)-(d+)-(d+)/. (leaving Time Format, Time Adjustment, and Time Zone untouched), but when I run a query - index=fwsm - using the Date/Time picker (I'm selecting Date Range|Before 11/3/2015), I'm getting 'No results found'&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220786#M73446</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-09T20:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220787#M73447</link>
      <description>&lt;P&gt;First, make certain there is a '.' char in front of your leading '?' char. (I realize that may just be a typo.)&lt;/P&gt;

&lt;P&gt;Also, try setting the format to yyyyMMdd.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 19:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220787#M73447</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-11-10T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220788#M73448</link>
      <description>&lt;P&gt;I added the '.' in front of the time leading '?', and added yyyyMMdd to the time format and it worked! I can't thank you enough!!&lt;/P&gt;

&lt;P&gt;Greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 18:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220788#M73448</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-11T18:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220789#M73449</link>
      <description>&lt;P&gt;Happy it worked!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 18:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220789#M73449</guid>
      <dc:creator>kschon_splunk</dc:creator>
      <dc:date>2015-11-11T18:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220790#M73450</link>
      <description>&lt;P&gt;Was hoping to revisit this issue if possible as I'm seeing some weirdness with the time regex.&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 (slightly modified from the original recommendation):&lt;/P&gt;

&lt;P&gt;.?/Firewall/(d+)-(d+)-(d+)/.?)&lt;/P&gt;

&lt;P&gt;However, applying the same format to the other two logs (below) 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;.?/ISE/(d+)-(d+)-(d+)/.?)&lt;BR /&gt;
.?/WindowsEvent/(d+)-(d+)-(d+)/.?)&lt;/P&gt;

&lt;P&gt;Tried the following regex and got a match on regex101.com:&lt;/P&gt;

&lt;P&gt;.+ISE/(d+)-(d+)-(d+)&lt;/P&gt;

&lt;P&gt;Yet when I enter that and try and run a search, it errors out:&lt;/P&gt;

&lt;P&gt;[cdhprovider] Error while running external process, return_code=255. See search.log for more info&lt;BR /&gt;
[cdhprovider] IOException - No input paths specified in job.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 21:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220790#M73450</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-02T21:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hunk and virtual indexes</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220791#M73451</link>
      <description>&lt;P&gt;Working with Splunk Support, the solution was to change the 'Time Range' setting under the Time section to 1 day. Once this change was applied, the date/time picker worked.&lt;/P&gt;

&lt;P&gt;Thx for everyone's feedback and help&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Hunk-and-virtual-indexes/m-p/220791#M73451</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-12-09T14:29:24Z</dc:date>
    </item>
  </channel>
</rss>

