<?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 blacklist regex using inputs.conf of universal forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636250#M108827</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204073"&gt;@bapun18&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;blacklisting events usually runs only on windows logs.&lt;/P&gt;&lt;P&gt;the only way is described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must put the props.conf and transforms.conf on the first Heavy Forwarder (if present) between the Universal Forwarder and the Indexers, if not present, on Indexers.&lt;/P&gt;&lt;P&gt;you could try with following:&lt;/P&gt;&lt;P&gt;pros.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-null= setnull&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = UC_Test-4-DeviceTransientConnection and Reason\=3
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 06:23:02 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-03-28T06:23:02Z</dc:date>
    <item>
      <title>Splunk blacklist regex using inputs.conf of universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636211#M108824</link>
      <description>&lt;P&gt;Needs to blacklist certain syslogs messages from the forwarder level. We have raw syslogs as below:&lt;BR /&gt;&lt;BR /&gt;2023-03-27T00:00:00+00:00 10.10.33.15 Mar 27 2023 00:00:00.028 UTC : %UC_Test-4-DeviceTransientConnection: %[ConnectingPort=2000][DeviceName=AN004A1328478011][IPAddress=10.152.157.107][DeviceType=30027][Reason=3][Protocol=SCCP][IPAddrAttributes=2][UNKNOWN_PARAMNAME:LastSignalReceived=StationRegister][UNKNOWN_PARAMNAME:StationState=wait_register][AppID=Siso CallManager][ClusterID=c6801ccm][NodeID=c6801011ccm007]: A device attempted to register but did not complete registration 0.0.3.1 0 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2023-03-27T00:00:00+00:00 10.10.33.15 Mar 27 2023 00:00:00.144 UTC : %UC_Test-4-DeviceTransientConnection: %[ConnectingPort=2000][DeviceName=ANF000673BC20003][IPAddress=10.70.56.248][DeviceType=30027][Reason=3][Protocol=SCCP][IPAddrAttributes=2][UNKNOWN_PARAMNAME:LastSignalReceived=StationRegister][UNKNOWN_PARAMNAME:StationState=wait_register][AppID=Siso CallManager][ClusterID=c6801ccm][NodeID=c6801011ccm007]: A device attempted to register but did not complete registration 0.0.3.1 0 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2023-03-27T00:00:00+00:00 10.10.33.15 Mar 27 2023 00:00:00.147 UTC : %UC_Test-4-DeviceTransientConnection: %[ConnectingPort=2000][DeviceName=AN00A13274B800D][IPAddress=10.108.2.248][DeviceType=30027][Reason=3][Protocol=SCCP][IPAddrAttributes=2][UNKNOWN_PARAMNAME:LastSignalReceived=StationRegister][UNKNOWN_PARAMNAME:StationState=wait_register][AppID=Siso CallManager][ClusterID=c6801ccm][NodeID=c6801011ccm007]: A device attempted to register but did not complete registration 0.0.3.1 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to filter the data before pushing it to the Splunk indexer, with respect to&amp;nbsp;UC_Test-4-DeviceTransientConnection and&amp;nbsp;Reason=3&lt;BR /&gt;&lt;BR /&gt;which means I don't want to push the data which have&amp;nbsp;UC_Test-4-DeviceTransientConnection and&amp;nbsp;Reason=3.&lt;BR /&gt;&lt;BR /&gt;I have tried blacklisting it in inputs.conf&lt;BR /&gt;blacklist =&amp;nbsp;^.*UC_Test-4-DeviceTransientConnection.*\[Reason=3\].*$&lt;BR /&gt;&lt;BR /&gt;above isn't working then I have tried with props.conf and transforms.conf like below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;[testsys]&lt;BR /&gt;TRUNCATE = 0&lt;BR /&gt;TRANSFORMS-NULL = setnull&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[setnull]&lt;BR /&gt;REGEX = ^.*UC_Test-4-DeviceTransientConnection.*\[Reason=3\].*$&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But unfortunately, it's still not filtering.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 01:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636211#M108824</guid>
      <dc:creator>bapun18</dc:creator>
      <dc:date>2023-03-28T01:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk blacklist regex using inputs.conf of universal forwrder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636212#M108825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204073"&gt;@bapun18&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using the props and transforms method is the correct method.&amp;nbsp; This configuration is not meant to not work at source using a Splunk universal forwarder and needs to live on the Splunk parsing layer (heavy forwarders/indexers, depending on your env).&lt;/P&gt;&lt;P&gt;If it must be filtered at source, then you may need to look at a separate job/script to pre-filter the log and have Splunk UF forward the new output file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 21:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636212#M108825</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-03-27T21:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk blacklist regex using inputs.conf of universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636250#M108827</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204073"&gt;@bapun18&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;blacklisting events usually runs only on windows logs.&lt;/P&gt;&lt;P&gt;the only way is described at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must put the props.conf and transforms.conf on the first Heavy Forwarder (if present) between the Universal Forwarder and the Indexers, if not present, on Indexers.&lt;/P&gt;&lt;P&gt;you could try with following:&lt;/P&gt;&lt;P&gt;pros.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-null= setnull&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = UC_Test-4-DeviceTransientConnection and Reason\=3
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 06:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636250#M108827</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-03-28T06:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk blacklist regex using inputs.conf of universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636439#M108854</link>
      <description>&lt;P&gt;I just discovered there is a UF setting (props.conf &amp;gt;&amp;nbsp;&lt;SPAN&gt;force_local_processing) - documented since v7 - that makes the UF parse the data, i.e. make props.conf and transforms.conf work at source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yeahnah_0-1680050012610.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24595i1B2FC470F6A8BDB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yeahnah_0-1680050012610.png" alt="yeahnah_0-1680050012610.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Possibly, the UF will not be as configurable to the same level as a heavy forwarder would.&lt;BR /&gt;&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Diagrams-of-how-indexing-works-in-the-Splunk-platform-the-Masa/m-p/590774" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Diagrams-of-how-indexing-works-in-the-Splunk-platform-the-Masa/m-p/590774&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This may also cook the data at source, so the HF will not do any further processing.&lt;BR /&gt;&lt;BR /&gt;Understandably, there will be a cost to local UF CPU and mem usage, depending on what it's configured to do and amount of data being processed, so should be used with caution, i.e. test it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/What-are-the-capabilities-of-the-quot-force-local-processing/m-p/336932" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/What-are-the-capabilities-of-the-quot-force-local-processing/m-p/336932&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 00:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-blacklist-regex-using-inputs-conf-of-universal-forwarder/m-p/636439#M108854</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-03-29T00:44:17Z</dc:date>
    </item>
  </channel>
</rss>

