<?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: Windows - How to monitor XML files within a sub-directory in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196482#M39084</link>
    <description>&lt;P&gt;That looks OK. Make sure you're really searching for the logs correctly (specifying index for instance, searching over all time etc), and if you're sure the logs aren't really there, troubleshoot by checking splunkd.log on the forwarder. Also this script can be of help in order to determine the status of Splunk's file monitor: &lt;A href="http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/"&gt;http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Aug 2014 09:04:49 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-08-27T09:04:49Z</dc:date>
    <item>
      <title>Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196481#M39083</link>
      <description>&lt;P&gt;I want to monitor &lt;STRONG&gt;XML&lt;/STRONG&gt; files residing inside sub-directories.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Files inside Path :&lt;/STRONG&gt; &lt;BR /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\Roll\DIP\SessionLogs\35\1.xml
D:\Roll\DIP\SessionLogs\35\2.xml
D:\Roll\DIP\SessionLogs\35\3.xml
D:\Roll\DIP\SessionLogs\36\1.xml
D:\Roll\DIP\SessionLogs\36\2.xml
D:\Roll\DIP\SessionLogs\36\3.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I set inputs.conf: (in Universal forwarder)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Roll\DIP\SessionLogs\]
index = myindex
sourcetype = session_log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf (in indexer)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[session_logs]
KV_MODE = xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I dont get the logs in Search head ? Something am i missing here ..?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 08:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196481#M39083</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-27T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196482#M39084</link>
      <description>&lt;P&gt;That looks OK. Make sure you're really searching for the logs correctly (specifying index for instance, searching over all time etc), and if you're sure the logs aren't really there, troubleshoot by checking splunkd.log on the forwarder. Also this script can be of help in order to determine the status of Splunk's file monitor: &lt;A href="http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/"&gt;http://blogs.splunk.com/2011/01/02/did-i-miss-christmas-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196482#M39084</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-08-27T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196483#M39085</link>
      <description>&lt;P&gt;The below will monitor everything..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Roll\DIP\SessionLogs\...\*.xml]
index = myindex
sourcetype = session_log
recursive = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
L&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196483#M39085</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-08-27T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196484#M39086</link>
      <description>&lt;P&gt;Note: A single dot (.) is not a wildcard, and is the regex equivalent of ..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Caution: In Windows, you cannot currently use a wildcard at the root level. For example, this does not work:

[monitor://E:\...\foo\*.log]
Splunk Enterprise logs an error and fails to index the desired files.

This is a known issue, described in the Known Issues topic of the Release Notes. Look there for details on all known issues.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196484#M39086</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-27T09:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196485#M39087</link>
      <description>&lt;P&gt;I tried in my windows universal forwarder the script , but cant execute it ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Program Files\SplunkUniversalForwarder\bin&amp;gt;splunk cmd python "c:\filestatus.py"
CreateProcess: The system cannot find the file specified.

couldn't run "c:\Program Files\SplunkUniversalForwarder\bin\python": The system cannot find the file specified.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196485#M39087</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-27T09:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196486#M39088</link>
      <description>&lt;P&gt;I tried ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;splunk list monitor
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Its shows the list of files &amp;amp; directories that are being monitored, but still cant view the data in SH. also there is no any errors in splunkd log.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196486#M39088</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-27T09:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Windows - How to monitor XML files within a sub-directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196487#M39089</link>
      <description>&lt;P&gt;Below Works good :&lt;/P&gt;

&lt;P&gt;At forwarder : (inputs.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://D:\Roll\DIP\SessionLogs\]
recursive = true
index = myindex
sourcetype = session_log
whitelist = \.xml$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;At Indexer: (props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[session_log]
DATETIME_CONFIG = CURRENT
KV_MODE = xml
LINE_BREAKER = (&amp;lt;/Data&amp;gt;)             ###Last element of the XML file
MAX_TIMESTAMP_LOOKAHEAD = 150
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = False
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Aug 2014 07:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-to-monitor-XML-files-within-a-sub-directory/m-p/196487#M39089</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-28T07:29:39Z</dc:date>
    </item>
  </channel>
</rss>

