<?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: Filtering with props and transforms in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575048#M101636</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237593"&gt;@michaelnorup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my understanding, the regex you are using is matching all the events.&lt;BR /&gt;So you need to use any unique value in the regex.&lt;/P&gt;&lt;P&gt;Ex. Eventcode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else you can disable this input&lt;/P&gt;&lt;P&gt;[WinEventLog:Microsoft-Windows-Powershell/Operational]&lt;/P&gt;&lt;P&gt;disabled = 1&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 13:52:55 GMT</pubDate>
    <dc:creator>vhharanpositka</dc:creator>
    <dc:date>2021-11-16T13:52:55Z</dc:date>
    <item>
      <title>Filtering with props and transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575041#M101635</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I have just enabled powershell logging and am now getting completely spammed with splunk forwarders running powershell scripts, so i am trying to filter that out.&lt;BR /&gt;&lt;BR /&gt;It is a distributed setup, with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1 deployment/license server&lt;/LI&gt;&lt;LI&gt;1 indexer&lt;/LI&gt;&lt;LI&gt;1 search head&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;On the indexer i have added&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;splunk/etc/apps/windowsServers/local/props.conf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[WinEventLog:Microsoft-Windows-Powershell/Operational]
SHOULD_LINEMERG = false
MAX_TIMESTAP_LOOKAHEAD=300
detect_trailing_nulls = auto
TIME_PREFIX = "\clock\":
KV_MODE = json
AUTO_KV_JSON = true
TRANSFORMS-set = setnull&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = (?mi)SplunkUniversalForwarder
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the &lt;EM&gt;&lt;STRONG&gt;deployment/license server&lt;/STRONG&gt;&lt;/EM&gt; i have added the same transforms.conf as above&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On the &lt;EM&gt;&lt;STRONG&gt;Search head&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;i have added props.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[WinEventLog:Microsoft-Windows-Powershell/Operational]
SHOULD_LINEMERGE = false
detect_trailing_nulls = auto
KV_MODE = json
AUTO_KV_JSON = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A log entry that i would like filtered out could look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;11/16/2021 01:38:27 PM LogName=Microsoft-Windows-PowerShell/Operational SourceName=Microsoft-Windows-PowerShell EventCode=4103 EventType=4 Type=Information ComputerName=********* User=SYSTEM Sid=S-1-5-18 SidType=1 TaskCategory=Executing Pipeline OpCode=To be used when operation is just executing a method RecordNumber=16918098 Keywords=None Message=CommandInvocation(Select-Object): "Select-Object" ParameterBinding(Select-Object): name="ExpandProperty"; value="UserProcessorTime" ParameterBinding(Select-Object): name="InputObject"; value="System.Diagnostics.Process (WmiPrvSE)" Context: Severity = Informational Host Name = ConsoleHost Host Version = 4.0 Host ID = c939e89c-c7f2-468c-b351-295154efdf43 Host Application = powershell.exe -command &amp;amp; {get-content C:\Windows\TEMP\\input51852c9500841041.tmp | c:\Program` Files\SplunkUniversalForwarder\bin\splunk-powershell.ps1 c:\Program` Files\SplunkUniversalForwarder 51852c9500841041} Engine Version = 4.0 Runspace ID = bb969a43-cc4d-4f2c-b4ec-80b7ed2ff7d7 Pipeline ID = 1 Command Name = Select-Object Command Type = Cmdlet Script Name = C:\Program Files\SplunkUniversalForwarder\bin\splunk-powershell-common.ps1 Command Path = Sequence Number = 104739 User = ****** Shell ID = Microsoft.PowerShell User Data:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They all contain the SplunkUniversalForwarder which is why i tried to use that in the regex&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When i add all these things, all logs from the sourcetype disappear. What am i doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 07:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575041#M101635</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2021-11-18T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with props and transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575048#M101636</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237593"&gt;@michaelnorup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my understanding, the regex you are using is matching all the events.&lt;BR /&gt;So you need to use any unique value in the regex.&lt;/P&gt;&lt;P&gt;Ex. Eventcode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else you can disable this input&lt;/P&gt;&lt;P&gt;[WinEventLog:Microsoft-Windows-Powershell/Operational]&lt;/P&gt;&lt;P&gt;disabled = 1&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 13:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575048#M101636</guid>
      <dc:creator>vhharanpositka</dc:creator>
      <dc:date>2021-11-16T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering with props and transforms</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575049#M101637</link>
      <description>&lt;P&gt;The regex could be wrong, but i dont think thats the issue. The log here is evetncode 4103, which is the ones i am actually interested in. Problem is that it looks like the Universalforwarder runs a powershell script constantly, and it is spamming my data, so i need to filter that single script out, and keep the rest of the powershell logs.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 13:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-with-props-and-transforms/m-p/575049#M101637</guid>
      <dc:creator>michaelnorup</dc:creator>
      <dc:date>2021-11-16T13:57:28Z</dc:date>
    </item>
  </channel>
</rss>

