<?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 Window Event (Multiline) nullQueue Question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441220#M76922</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;
A nullQueue procedure is need in multiline data, such as in a Windows security log.&lt;BR /&gt;
The heavy forwarder is trying to nullQueueue logs sent by a large number of universal forwarders.&lt;BR /&gt;
If it is a name other than ComputerName=PC01 and ComputerName=PC02, I would like to send EventCode=5145 to nullQueueue.&lt;BR /&gt;
But I have to get another EventCode.&lt;BR /&gt;
Is there a good way?&lt;/P&gt;

&lt;P&gt;-- example data--&lt;BR /&gt;
08/09/2019 12:21:21 PM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows security auditing.&lt;BR /&gt;
EventCode=5145&lt;BR /&gt;
EventType=0&lt;BR /&gt;
Type=info&lt;BR /&gt;
ComputerName=PC01&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 05:57:23 GMT</pubDate>
    <dc:creator>khyoung7410</dc:creator>
    <dc:date>2019-08-09T05:57:23Z</dc:date>
    <item>
      <title>Window Event (Multiline) nullQueue Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441220#M76922</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
A nullQueue procedure is need in multiline data, such as in a Windows security log.&lt;BR /&gt;
The heavy forwarder is trying to nullQueueue logs sent by a large number of universal forwarders.&lt;BR /&gt;
If it is a name other than ComputerName=PC01 and ComputerName=PC02, I would like to send EventCode=5145 to nullQueueue.&lt;BR /&gt;
But I have to get another EventCode.&lt;BR /&gt;
Is there a good way?&lt;/P&gt;

&lt;P&gt;-- example data--&lt;BR /&gt;
08/09/2019 12:21:21 PM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows security auditing.&lt;BR /&gt;
EventCode=5145&lt;BR /&gt;
EventType=0&lt;BR /&gt;
Type=info&lt;BR /&gt;
ComputerName=PC01&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 05:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441220#M76922</guid>
      <dc:creator>khyoung7410</dc:creator>
      <dc:date>2019-08-09T05:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Window Event (Multiline) nullQueue Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441221#M76923</link>
      <description>&lt;P&gt;Provided the windows events are properly parsed for multiline, you can keep specific events and discard the rest as below.&lt;/P&gt;

&lt;P&gt;1) Edit&amp;nbsp;&lt;CODE&gt;props.conf&lt;/CODE&gt;&amp;nbsp;and add the following (Modify sourcetype accordingly):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[winSecurityLog]
TRANSFORMS-set= setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) Edit&amp;nbsp;&lt;CODE&gt;transforms.conf&lt;/CODE&gt;&amp;nbsp;and add the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = PC0[1-2]
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt; &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 06:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441221#M76923</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2019-08-09T06:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Window Event (Multiline) nullQueue Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441222#M76924</link>
      <description>&lt;P&gt;It doesn't fit the above conditions.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 08:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441222#M76924</guid>
      <dc:creator>khyoung7410</dc:creator>
      <dc:date>2019-08-09T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Window Event (Multiline) nullQueue Question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441223#M76925</link>
      <description>&lt;P&gt;Is this your condition?&lt;/P&gt;

&lt;P&gt;if (ComputerName !=PC01 AND ComputerName!=PC02 AND EventCode=5145)&lt;BR /&gt;
then&lt;BR /&gt;
    Send_To_NullQueue&lt;BR /&gt;
else&lt;BR /&gt;
    Send_to_IndexQueue&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Window-Event-Multiline-nullQueue-Question/m-p/441223#M76925</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2020-09-30T01:43:05Z</dc:date>
    </item>
  </channel>
</rss>

