<?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: filter data problem with windows path in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30929#M5440</link>
    <description>&lt;P&gt;Not sure, are there any errors or related messages in $SPLUNK_HOME/var/log/splunk/splunkd.log?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2012 16:01:13 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2012-04-19T16:01:13Z</dc:date>
    <item>
      <title>filter data problem with windows path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30928#M5439</link>
      <description>&lt;P&gt;I have installed splunk on windows 2008 to analyze iis log file.&lt;BR /&gt;
I want to avoid to index log entries with 401 http status code, so i have used props.conf and transforms.conf files.&lt;/P&gt;

&lt;P&gt;In props.conf i have:&lt;BR /&gt;&lt;BR /&gt;
[source::C:\\Users\\Administrator\\Desktop\\MyLogFolder\\mylogfile.log]&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-nullcode= setnullcode&lt;/P&gt;

&lt;P&gt;In transforms.conf file i have&lt;BR /&gt;&lt;BR /&gt;
[setnullcode]&lt;BR /&gt;&lt;BR /&gt;
REGEX = 401( [0-9]+){5}&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;However i index log entries with 401 status code.&lt;BR /&gt;
I have verified reg ex and it is all right, infact if i use in props.conf file &lt;/P&gt;

&lt;P&gt;[host::myhost]&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-nullcode= setnullcode&lt;/P&gt;

&lt;P&gt;entries with 401 are correctly discarded.&lt;BR /&gt;
Problem is with windows path....&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 15:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30928#M5439</guid>
      <dc:creator>my_splunk</dc:creator>
      <dc:date>2012-04-19T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: filter data problem with windows path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30929#M5440</link>
      <description>&lt;P&gt;Not sure, are there any errors or related messages in $SPLUNK_HOME/var/log/splunk/splunkd.log?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 16:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30929#M5440</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-19T16:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: filter data problem with windows path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30930#M5441</link>
      <description>&lt;P&gt;I have solved&lt;BR /&gt;&lt;BR /&gt;
In my first answer i wanted to write:&lt;BR /&gt;&lt;BR /&gt;
[source::C:\\Users\\Administrator\\Desktop\\MyLogFolder\\mylogfile.log]&lt;BR /&gt;&lt;BR /&gt;
i.e with a double \ but for my typing error i wrote with a single \&lt;BR /&gt;&lt;BR /&gt;
So my problem is with double \ in path.  &lt;/P&gt;

&lt;P&gt;I have solved typing path with a single \, i.e&lt;BR /&gt;&lt;BR /&gt;
[source::C:\Users\Administrator\Desktop\MyLogFolder\mylogfile.log]  &lt;/P&gt;

&lt;P&gt;At this point i think there is a problem in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/propsconf&lt;/A&gt; doc, whete it is recommended to escape any backslashes contained within the specified file path in windows.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30930#M5441</guid>
      <dc:creator>my_splunk</dc:creator>
      <dc:date>2012-04-20T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: filter data problem with windows path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30931#M5442</link>
      <description>&lt;P&gt;i don't understand.....in preview there are double \ and in published answer a single . However i hope it is clear my solution.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 15:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-problem-with-windows-path/m-p/30931#M5442</guid>
      <dc:creator>my_splunk</dc:creator>
      <dc:date>2012-04-20T15:37:03Z</dc:date>
    </item>
  </channel>
</rss>

