<?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 Having some trouble with an infinite forwarding loop - Windows Event Logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269597#M51748</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I'm having a problem with Windows Event logs coming into Splunk.&lt;/P&gt;

&lt;P&gt;Windows Events log every time that the Forwarder connects to the Indexer, generating about 25GB of data per day. I had this fixed, but at some point yesterday the indexer stopped sending data containing the indexer's IP address to nullQueue. I don't know why this stopped filtering data, because nobody logged into the server yesterday, and the props.conf and transforms.conf look the same.&lt;/P&gt;

&lt;P&gt;Here is the props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [host::$ComputerName.*]
 TRANSFORMS-null = setnull2,setparsing2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the transforms: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [setparsing2]
 REGEX = .
 DEST_KEY = queue
 FORMAT = indexQueue

 [setnull2]
 REGEX = .*(9997).*
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is an example of 99.98% of the data coming in:&lt;/P&gt;

&lt;P&gt;07/22/2016 12:43:04 PM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows security auditing.&lt;BR /&gt;
EventCode=5156&lt;BR /&gt;
EventType=0&lt;BR /&gt;
Type=Information&lt;BR /&gt;
ComputerName=$ComputerName&lt;BR /&gt;
TaskCategory=Filtering Platform Connection&lt;BR /&gt;
OpCode=Info&lt;BR /&gt;
RecordNumber=18494355&lt;BR /&gt;
Keywords=Audit Success&lt;BR /&gt;
Message=The Windows Filtering Platform has permitted a connection.&lt;/P&gt;

&lt;P&gt;Application Information:&lt;BR /&gt;
    Process ID:     3860&lt;BR /&gt;
    Application Name:   \device\harddiskvolume2\program files\splunkuniversalforwarder\bin\splunkd.exe&lt;/P&gt;

&lt;P&gt;Network Information:&lt;BR /&gt;
    Direction:      Outbound&lt;BR /&gt;
    Source Address:     $srcIP&lt;BR /&gt;
    Source Port:        $Port&lt;BR /&gt;
    Destination Address:    $dstIP&lt;BR /&gt;
    Destination Port:       9997&lt;BR /&gt;
    Protocol:       6&lt;/P&gt;

&lt;P&gt;Filter Information:&lt;BR /&gt;
    Filter Run-Time ID: 77106&lt;BR /&gt;
    Layer Name:     Connect&lt;BR /&gt;
    Layer Run-Time ID:  48&lt;/P&gt;

&lt;P&gt;This configuration worked just fine for 2 or 3 months, but stopped working yesterday.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 17:11:06 GMT</pubDate>
    <dc:creator>janderson19</dc:creator>
    <dc:date>2016-07-22T17:11:06Z</dc:date>
    <item>
      <title>Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269597#M51748</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I'm having a problem with Windows Event logs coming into Splunk.&lt;/P&gt;

&lt;P&gt;Windows Events log every time that the Forwarder connects to the Indexer, generating about 25GB of data per day. I had this fixed, but at some point yesterday the indexer stopped sending data containing the indexer's IP address to nullQueue. I don't know why this stopped filtering data, because nobody logged into the server yesterday, and the props.conf and transforms.conf look the same.&lt;/P&gt;

&lt;P&gt;Here is the props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [host::$ComputerName.*]
 TRANSFORMS-null = setnull2,setparsing2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the transforms: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [setparsing2]
 REGEX = .
 DEST_KEY = queue
 FORMAT = indexQueue

 [setnull2]
 REGEX = .*(9997).*
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is an example of 99.98% of the data coming in:&lt;/P&gt;

&lt;P&gt;07/22/2016 12:43:04 PM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows security auditing.&lt;BR /&gt;
EventCode=5156&lt;BR /&gt;
EventType=0&lt;BR /&gt;
Type=Information&lt;BR /&gt;
ComputerName=$ComputerName&lt;BR /&gt;
TaskCategory=Filtering Platform Connection&lt;BR /&gt;
OpCode=Info&lt;BR /&gt;
RecordNumber=18494355&lt;BR /&gt;
Keywords=Audit Success&lt;BR /&gt;
Message=The Windows Filtering Platform has permitted a connection.&lt;/P&gt;

&lt;P&gt;Application Information:&lt;BR /&gt;
    Process ID:     3860&lt;BR /&gt;
    Application Name:   \device\harddiskvolume2\program files\splunkuniversalforwarder\bin\splunkd.exe&lt;/P&gt;

&lt;P&gt;Network Information:&lt;BR /&gt;
    Direction:      Outbound&lt;BR /&gt;
    Source Address:     $srcIP&lt;BR /&gt;
    Source Port:        $Port&lt;BR /&gt;
    Destination Address:    $dstIP&lt;BR /&gt;
    Destination Port:       9997&lt;BR /&gt;
    Protocol:       6&lt;/P&gt;

&lt;P&gt;Filter Information:&lt;BR /&gt;
    Filter Run-Time ID: 77106&lt;BR /&gt;
    Layer Name:     Connect&lt;BR /&gt;
    Layer Run-Time ID:  48&lt;/P&gt;

&lt;P&gt;This configuration worked just fine for 2 or 3 months, but stopped working yesterday.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:11:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269597#M51748</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-07-22T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269598#M51749</link>
      <description>&lt;P&gt;If your forwarders are version 6 or above, you can use the Windows event filtering, which would prevent sending the data to the indexers in the first place. More info:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/"&gt;http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/152131/filter-windows-eventcode-using-blacklist-and-whitelist.html#answer-152132"&gt;https://answers.splunk.com/answers/152131/filter-windows-eventcode-using-blacklist-and-whitelist.html#answer-152132&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I feel like this would be a more effective way of accomplishing the same goal, if you are trying to filter based on the event code.&lt;/P&gt;

&lt;P&gt;Edit: This can also be used to filter based on information within the Windows event.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 18:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269598#M51749</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2016-07-22T18:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269599#M51750</link>
      <description>&lt;P&gt;If (and that is a BIG IF because you have not told us how/what you are trying to filter, leaving us no choice but to guess) you are trying to throw away any event that contains the number &lt;CODE&gt;9997&lt;/CODE&gt; anywhere in it, then you can make this change and it will work;&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TRANSFORMS-null = setnull2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be aware that your RegEx is probably sub-optimal and this would probably be better:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(:?[^0-9]|^)9997(?:[^0-9]|$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think probably you actually should be using this instead (but who can really know?):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Destination\s+Port:\s*9997(?:[^0-9]|$)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2016 18:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269599#M51750</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-22T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269600#M51751</link>
      <description>&lt;P&gt;I have looked into this previously, but I am trying to filter by either destination port or destination Address. In the configuration in the OP, I'm filtering by source port.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 18:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269600#M51751</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-07-22T18:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269601#M51752</link>
      <description>&lt;P&gt;Have you tried something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
blacklist1 = Destination\s+Port:\s+9997
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2016 18:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269601#M51752</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2016-07-22T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Having some trouble with an infinite forwarding loop - Windows Event Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269602#M51753</link>
      <description>&lt;P&gt;This worked great, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 18:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Having-some-trouble-with-an-infinite-forwarding-loop-Windows/m-p/269602#M51753</guid>
      <dc:creator>janderson19</dc:creator>
      <dc:date>2016-07-22T18:43:43Z</dc:date>
    </item>
  </channel>
</rss>

