<?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: Heavy Forwarder REGEX Filting Issues in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197720#M57158</link>
    <description>&lt;P&gt;Yes, you need to restart splunkd - either from the outside, like restarting the service, or from the inside, in the GUI, or hit the refresh endpoint url;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;http(s)://your_splunk:8000/en-US/debug/refresh&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will also reload most configs.&lt;/P&gt;

&lt;P&gt;Purely search-related configs, such as field extractions will be reloaded for each search.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2014 19:46:33 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2014-03-24T19:46:33Z</dc:date>
    <item>
      <title>Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197711#M57149</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am having difficulty finding in-depth documentation on REGEX syntax, and I am attempting to filter out [WinEventLog:Security] logs from our central Splunk Instance by use of a heavy forwarder.&lt;/P&gt;

&lt;P&gt;On our Heavy Forwarder, we have the following filters setup:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-security= npm-setnull, everythingElse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filter NPM account Security logs to nullQueue&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[npm-setnull]
REGEX = (?msi)Account_Name="ACCOUNT@DOMAIN.COM"
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Send everything else to be indexed in the indexQueue&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[everythingElse]
REGEX = .
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is currently not filtering any of the logs, and I feel thate the syntax is incorrect, but I can't find any solid documentation on how to format this.  Can anyone help?&lt;/P&gt;

&lt;P&gt;Thank you in advance,r&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 17:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197711#M57149</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-03-21T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197712#M57150</link>
      <description>&lt;P&gt;You'll need to reverse the order in which the transforms are called from props.conf. Or in your case, just remove the [everythingElse] stanza and the reference to it. While it might seem a bit contra-intuitive, think of it like this;&lt;/P&gt;

&lt;P&gt;"All events will pass through all transforms in the specified order before being returned for further processing"&lt;/P&gt;

&lt;P&gt;It is not like there is some kind of 'break-on-match' processing. Thus, first setting the queue to nullQueue for some events, and then immediately resetting it back to indexQueue (for all events), will have the same results as not having any filtering at all.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;Yes, wolverine is right. The field name &lt;CODE&gt;Account_Name&lt;/CODE&gt; is a so-called 'cleaned' name, i.e, spaces are replaced with underscores etc. The &lt;CODE&gt;REGEX&lt;/CODE&gt; must match the actual text in the event, i.e.;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;REGEX = Account\sName:\s+ACCOUNT@DOMAIN.COM&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 21:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197712#M57150</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-21T21:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197713#M57151</link>
      <description>&lt;P&gt;Hi Kristian,&lt;/P&gt;

&lt;P&gt;Thank you for your response.&lt;/P&gt;

&lt;P&gt;I now have:&lt;/P&gt;

&lt;P&gt;[WinEventLog:Security]&lt;BR /&gt;
TRANSFORMS-security= npm-setnull&lt;/P&gt;

&lt;P&gt;[npm-setnull]&lt;BR /&gt;
REGEX = (?msi)Account_Name="&lt;A href="mailto:NPM@EDM.LOCAL" target="_blank"&gt;NPM@EDM.LOCAL&lt;/A&gt;"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;It still appears not to be filtering.  Do I need to restart the Heavy Forwarder instance?&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197713#M57151</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2020-09-28T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197714#M57152</link>
      <description>&lt;P&gt;I think the issue might be with your REGEX:&lt;/P&gt;

&lt;P&gt;REGEX = (?m)Account_Name="&lt;A href="mailto:ACCOUNT@DOMAIN.COM"&gt;ACCOUNT@DOMAIN.COM&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2014 00:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197714#M57152</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-03-22T00:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197715#M57153</link>
      <description>&lt;P&gt;good spotting, wolverine! Updated my answer to reflect on this as well.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2014 21:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197715#M57153</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-23T21:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197716#M57154</link>
      <description>&lt;P&gt;Hi wolverine!&lt;/P&gt;

&lt;P&gt;Thank you for your response.  I am going to try this out.  I know I probably sound like a broken record.  But does Splunk provide REGEX documentation?  I feel rather ignorant not understanding (?msi) and (?m) syntax; or is this provided elsewhere?&lt;/P&gt;

&lt;P&gt;Thanks for your help, guys.&lt;/P&gt;

&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197716#M57154</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-03-24T12:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197717#M57155</link>
      <description>&lt;P&gt;Hi dscoland,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.regular-expressions.info"&gt;www.regular-expressions.info&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;regexr.com&lt;/P&gt;

&lt;P&gt;are two commonly referenced guides for learning/testing regular expressions.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197717#M57155</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-24T12:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197718#M57156</link>
      <description>&lt;P&gt;Awesome, thanks Kristian!&lt;/P&gt;

&lt;P&gt;As it turns out, this did not fix the issue.  I will have to dig deeper in this.&lt;/P&gt;

&lt;P&gt;Thanks for your continued help, guys.&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 14:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197718#M57156</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-03-24T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197719#M57157</link>
      <description>&lt;P&gt;Thanks guys, I managed to get the filter working.&lt;/P&gt;

&lt;P&gt;I changed the field to look for the Logon Account&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[npm-setnull]&lt;BR /&gt;
REGEX = Logon\sAccount:\snpm&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I believe the Splunkd service in Services.msc needs to be rebooted in order to start the filter.&lt;/P&gt;

&lt;P&gt;Regards!&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 16:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197719#M57157</guid>
      <dc:creator>dscoland</dc:creator>
      <dc:date>2014-03-24T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder REGEX Filting Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197720#M57158</link>
      <description>&lt;P&gt;Yes, you need to restart splunkd - either from the outside, like restarting the service, or from the inside, in the GUI, or hit the refresh endpoint url;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;http(s)://your_splunk:8000/en-US/debug/refresh&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That will also reload most configs.&lt;/P&gt;

&lt;P&gt;Purely search-related configs, such as field extractions will be reloaded for each search.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Heavy-Forwarder-REGEX-Filting-Issues/m-p/197720#M57158</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-03-24T19:46:33Z</dc:date>
    </item>
  </channel>
</rss>

