<?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 index a simple dir in Windows Environment in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316603#M92748</link>
    <description>&lt;P&gt;try &lt;/P&gt;

&lt;P&gt;[mysourcetype]&lt;BR /&gt;
LINE_BREAKER = ---ENDDIR([\r\n]+)&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 14:16:35 GMT</pubDate>
    <dc:creator>WalshyB</dc:creator>
    <dc:date>2017-07-19T14:16:35Z</dc:date>
    <item>
      <title>How to index a simple dir in Windows Environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316602#M92747</link>
      <description>&lt;P&gt;Hi guys.&lt;BR /&gt;
A simple question (i hope &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;BR /&gt;
I need to index &lt;STRONG&gt;in a single event&lt;/STRONG&gt; this very very simple Windows .cmd output,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;19/07/2017-11:27:12,55
 Il volume nell'unità C è OSDisk
 Numero di serie del volume: F445-8CA0
 Directory di c:\
12/11/2015  16:00    &amp;lt;DIR&amp;gt;          adsm.sys
09/07/2013  18:07    &amp;lt;DIR&amp;gt;          Applicazioni
09/07/2013  16:28    &amp;lt;DIR&amp;gt;          Build
20/01/2015  16:03    &amp;lt;DIR&amp;gt;          cygwin
13/06/2017  11:52    &amp;lt;DIR&amp;gt;          inetpub
09/07/2013  16:55    &amp;lt;DIR&amp;gt;          infappdata
09/07/2013  16:21    &amp;lt;DIR&amp;gt;          Intel
09/07/2013  18:07    &amp;lt;DIR&amp;gt;          IRN
09/07/2013  18:07    &amp;lt;DIR&amp;gt;          JETFORM
09/07/2013  18:03    &amp;lt;DIR&amp;gt;          Jfsa
27/11/2015  18:01    &amp;lt;DIR&amp;gt;          KVRT_Data
09/07/2013  17:48    &amp;lt;DIR&amp;gt;          MQSERIES
14/07/2009  04:37    &amp;lt;DIR&amp;gt;          PerfLogs
13/06/2017  12:04    &amp;lt;DIR&amp;gt;          Program Files
13/06/2017  12:04    &amp;lt;DIR&amp;gt;          ProgramData
02/05/2017  12:33    &amp;lt;DIR&amp;gt;          Quarantine
19/07/2017  10:27    &amp;lt;DIR&amp;gt;          Temp
19/08/2014  11:02    &amp;lt;DIR&amp;gt;          tsm_images
05/07/2017  08:39    &amp;lt;DIR&amp;gt;          Users
30/06/2017  12:29    &amp;lt;DIR&amp;gt;          Windows
30/06/2017  12:29    &amp;lt;DIR&amp;gt;          _logfiles
               0 File              0 byte
              21 Directory  431.218.503.680 byte disponibili
---ENDDIR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, with default Splunk conf files (props), INDEXER split each line in 1 event, and stops at first new TIMESTAMP,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVENT#1    19/07/2017-11:27:12,55
EVENT#2     Il volume nell'unità C è OSDisk
EVENT#3     Numero di serie del volume: F445-8CA0
EVENT#4     Directory di c:\
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only way i can get a single event is to insert in props.conf, something like,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
BREAK_ONLY_BEFORE = ---ENDDIR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So i get my event, with a new one (with pattern of &lt;STRONG&gt;BREAK_ONLY_BEFORE&lt;/STRONG&gt; ) then&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(EVENT#1) 19/07/2017-11:27:12,55
  Il volume nell'unità C è OSDisk
  Numero di serie del volume: F445-8CA0
  Directory di c:\
 12/11/2015  16:00    &amp;lt;DIR&amp;gt;          adsm.sys
 09/07/2013  18:07    &amp;lt;DIR&amp;gt;          Applicazioni
 09/07/2013  16:28    &amp;lt;DIR&amp;gt;          Build
 20/01/2015  16:03    &amp;lt;DIR&amp;gt;          cygwin
 13/06/2017  11:52    &amp;lt;DIR&amp;gt;          inetpub
 09/07/2013  16:55    &amp;lt;DIR&amp;gt;          infappdata
 09/07/2013  16:21    &amp;lt;DIR&amp;gt;          Intel
 09/07/2013  18:07    &amp;lt;DIR&amp;gt;          IRN
 09/07/2013  18:07    &amp;lt;DIR&amp;gt;          JETFORM
 09/07/2013  18:03    &amp;lt;DIR&amp;gt;          Jfsa
 27/11/2015  18:01    &amp;lt;DIR&amp;gt;          KVRT_Data
 09/07/2013  17:48    &amp;lt;DIR&amp;gt;          MQSERIES
 14/07/2009  04:37    &amp;lt;DIR&amp;gt;          PerfLogs
 13/06/2017  12:04    &amp;lt;DIR&amp;gt;          Program Files
 13/06/2017  12:04    &amp;lt;DIR&amp;gt;          ProgramData
 02/05/2017  12:33    &amp;lt;DIR&amp;gt;          Quarantine
 19/07/2017  10:27    &amp;lt;DIR&amp;gt;          Temp
 19/08/2014  11:02    &amp;lt;DIR&amp;gt;          tsm_images
 05/07/2017  08:39    &amp;lt;DIR&amp;gt;          Users
 30/06/2017  12:29    &amp;lt;DIR&amp;gt;          Windows
 30/06/2017  12:29    &amp;lt;DIR&amp;gt;          _logfiles
                0 File              0 byte
               21 Directory  431.218.503.680 byte disponibili

(EVENT#2) ---ENDDIR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried a&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE_DATE = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with no results.&lt;/P&gt;

&lt;P&gt;Any solution?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316602#M92747</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2020-09-29T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a simple dir in Windows Environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316603#M92748</link>
      <description>&lt;P&gt;try &lt;/P&gt;

&lt;P&gt;[mysourcetype]&lt;BR /&gt;
LINE_BREAKER = ---ENDDIR([\r\n]+)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316603#M92748</guid>
      <dc:creator>WalshyB</dc:creator>
      <dc:date>2017-07-19T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a simple dir in Windows Environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316604#M92749</link>
      <description>&lt;P&gt;Works greeeeeeeeeeeeeeeeeeeeeeeeat &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Thanks.&lt;BR /&gt;
ps. think, i tried a&lt;BR /&gt;
&lt;STRONG&gt;LINE_BREAKER = ---ENDDIR&lt;/STRONG&gt;&lt;BR /&gt;
without success before!!! I think i forgot the "carriage return linefeed" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316604#M92749</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2017-07-19T14:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a simple dir in Windows Environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316605#M92750</link>
      <description>&lt;P&gt;you're welcome, try not to put the title in all caps next time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316605#M92750</guid>
      <dc:creator>WalshyB</dc:creator>
      <dc:date>2017-07-19T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a simple dir in Windows Environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316606#M92751</link>
      <description>&lt;P&gt;Sure &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; i promise &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; thanks again for the hint...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 16:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-simple-dir-in-Windows-Environment/m-p/316606#M92751</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2017-07-19T16:01:10Z</dc:date>
    </item>
  </channel>
</rss>

