<?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: Splunk Regex Expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38313#M8701</link>
    <description>&lt;P&gt;Your regex I think should work- but you need to escape the backslashes in your source path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::d:\\TGNI\\Logs*.log] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the props.conf.spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Considerations for Windows file paths:**

When you specify Windows-based file paths as part of a [source::&amp;lt;source&amp;gt;] stanza, you must escape any backslashes contained within the specified file path.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Feb 2013 13:46:14 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2013-02-21T13:46:14Z</dc:date>
    <item>
      <title>Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38308#M8696</link>
      <description>&lt;P&gt;Below is the raw data that am getting. I want to extract the events where category is Error.&lt;BR /&gt;
For this am doing this in props.conf.&lt;/P&gt;

&lt;P&gt;[source::d:\TGNI\Logs*.log] &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;BR /&gt;
Correction to transforms.conf&lt;BR /&gt;
[setnull] &lt;BR /&gt;
REGEX = (?m)Category\:\sInfo&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Is this the right way to do? Cant seem to get the regex expression right i guess. I still see the info events&lt;/P&gt;

&lt;P&gt;1   »   2/18/13&lt;BR /&gt;
6:48:54.000 PM&lt;/P&gt;

&lt;P&gt;Timestamp: 2/18/2013 6:48:54 PM&lt;BR /&gt;
 Category: Error&lt;BR /&gt;
 Machine: devmundia01&lt;BR /&gt;
 IP Address: &lt;BR /&gt;
 Customer ID: &lt;BR /&gt;
 Request URL: &lt;BR /&gt;
 Referrer URL: &lt;BR /&gt;
 Browser Name: &lt;BR /&gt;
 Browser Version: &lt;BR /&gt;
 User Agent: &lt;BR /&gt;
Show all 24 lines&lt;BR /&gt;
host=devmundia01   Options|  sourcetype=mundiaerr   Options|  source=d:TGNILogstgni-mundia.2013-02-19.log   Options&lt;/P&gt;

&lt;P&gt;2   »   2/18/13&lt;BR /&gt;
6:48:53.000 PM&lt;/P&gt;

&lt;P&gt;Timestamp: 2/18/2013 6:48:53 PM&lt;BR /&gt;
 Category: Info&lt;BR /&gt;
 Machine: devmundia01&lt;BR /&gt;
 IP Address: 10.6.8.28 (3yu4xv0x5bbyk5345sqcbegq)&lt;BR /&gt;
 Customer ID: &lt;BR /&gt;
 Request URL: &lt;A href="http://10.13.65.105/"&gt;http://10.13.65.105/&lt;/A&gt;&lt;BR /&gt;
 Referrer URL: &lt;BR /&gt;
 Browser Name: Jakarta Commons-HttpClient&lt;BR /&gt;
 Browser Version: 0.0&lt;BR /&gt;
 User Agent: Jakarta Commons-HttpClient/3.0.1&lt;BR /&gt;
Show all 16 lines&lt;BR /&gt;
host=devmundia01   Options|  sourcetype=mundiaerr   Options|  source=d:TGNILogstgni-mundia.2013-02-19.log   Options&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 20:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38308#M8696</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2013-02-20T20:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38309#M8697</link>
      <description>&lt;P&gt;Did you restart Splunk after you set this up? Are these events still coming in even after this, or are these sample events from before you set up the filter?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 21:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38309#M8697</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-02-20T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38310#M8698</link>
      <description>&lt;P&gt;these are coming in after i changed the conf files in indexers and restarted splunk&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 21:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38310#M8698</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2013-02-20T21:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38311#M8699</link>
      <description>&lt;P&gt;Where do you have this configuration, on the indexer?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 21:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38311#M8699</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-02-20T21:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38312#M8700</link>
      <description>&lt;P&gt;yes. inside  system/local&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 22:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38312#M8700</guid>
      <dc:creator>pdash</dc:creator>
      <dc:date>2013-02-20T22:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38313#M8701</link>
      <description>&lt;P&gt;Your regex I think should work- but you need to escape the backslashes in your source path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::d:\\TGNI\\Logs*.log] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the props.conf.spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Considerations for Windows file paths:**

When you specify Windows-based file paths as part of a [source::&amp;lt;source&amp;gt;] stanza, you must escape any backslashes contained within the specified file path.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Feb 2013 13:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38313#M8701</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-02-21T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Regex Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38314#M8702</link>
      <description>&lt;P&gt;Hi pdash,&lt;BR /&gt;
I'm not 100% sure but I think Splunk doesn't need colon ( : ) escaped. Try removing backslash before it.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Stefano&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2013 13:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Regex-Expression/m-p/38314#M8702</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-02-21T13:48:20Z</dc:date>
    </item>
  </channel>
</rss>

