<?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: Before Indexing Filter Based ON JSON format data match in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557528#M92271</link>
    <description>&lt;P&gt;Hello kagamalai,&lt;/P&gt;&lt;P&gt;I already gave you a link to check your regular expression:&amp;nbsp;&lt;A href="https://regex101.com/r/sjwTa8/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/sjwTa8/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you restart Splunk after the changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it doesn't work, which it should, there is another way. Just run several transforms in a row. Its exactly the same like before. This method is much less efficient because each event must be viewed four times. However, heres the example for the four events you want to keep.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[aws:cloudtrail]
TRANSFORMS-filter_events = sendNull, keepWAFFlags, keepFirewallMatchesActionslog, keepFirewalMatchesActionloglog, keepFirewallMatchesSources&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;PRE&gt;[sendNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[keepWAFFlags]
REGEX = \"WAFFlags\":\"1\"
DEST_KEY = queue
FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewallMatchesActionslog] &lt;BR /&gt;REGEX = \"FirewallMatchesActions\":\[\"log\"\]&lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewalMatchesActionloglog] &lt;BR /&gt;REGEX = \"FirewallMatchesActions\":\[\"log\",\"log\"\] &lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewallMatchesSources] &lt;BR /&gt;REGEX = \"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\]&lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 06:03:58 GMT</pubDate>
    <dc:creator>mdorobek</dc:creator>
    <dc:date>2021-06-29T06:03:58Z</dc:date>
    <item>
      <title>Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556935#M92157</link>
      <description>&lt;P&gt;We want to filter the event before indexing based on filed value match.&lt;/P&gt;&lt;P&gt;For example below is the single event, if the below condition is match&amp;nbsp; we need to index the whole event otherwise drop the whole event.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WAFAction = unknown&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WAFFlags = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please advise how to achieve the same ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Sample event&amp;nbsp; JSON format&amp;nbsp; with time stamp&lt;/U&gt;&lt;/P&gt;&lt;P&gt;{ [-]&lt;BR /&gt;BotScore: 98&lt;BR /&gt;BotScoreSrc: Machine Learning&lt;BR /&gt;CacheCacheStatus: unknown&lt;BR /&gt;CacheResponseBytes: 1877&lt;BR /&gt;CacheResponseStatus: 200&lt;BR /&gt;CacheTieredFill: false&lt;BR /&gt;ClientASN: 701&lt;BR /&gt;ClientCountry: us&lt;BR /&gt;ClientDeviceType: desktop&lt;BR /&gt;ClientIP: 196.142.18.94&lt;BR /&gt;ClientIPClass: noRecord&lt;BR /&gt;ClientMTLSAuthCertFingerprint:&lt;BR /&gt;ClientMTLSAuthStatus: unknown&lt;BR /&gt;ClientRequestBytes: 3912&lt;BR /&gt;ClientRequestMethod: POST&lt;BR /&gt;ClientRequestPath: /common/endpoint/&lt;BR /&gt;ClientRequestProtocol: HTTP/2&lt;BR /&gt;ClientRequestScheme: https&lt;BR /&gt;ClientRequestSource: eyeball&lt;BR /&gt;ClientRequestURI: /common/endpoint/&lt;BR /&gt;ClientRequestUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36&lt;BR /&gt;ClientSSLCipher: ECDHE-ECDSA-AES128-GCM-SHA256&lt;BR /&gt;ClientSSLProtocol: TLSv1.2&lt;BR /&gt;ClientSrcPort: 50738&lt;BR /&gt;ClientTCPRTTMs: 14&lt;BR /&gt;ClientXRequestedWith: XMLHttpRequest&lt;BR /&gt;EdgeCFConnectingO2O: false&lt;BR /&gt;EdgeColoCode: EWR&lt;BR /&gt;EdgeColoID: 11&lt;BR /&gt;EdgeEndTimestamp: 2021-06-24T01:33:21Z&lt;BR /&gt;EdgePathingOp: wl&lt;BR /&gt;EdgePathingSrc: macro&lt;BR /&gt;EdgePathingStatus: nr&lt;BR /&gt;EdgeRateLimitAction:&lt;BR /&gt;EdgeRateLimitID: 0&lt;BR /&gt;EdgeRequestHost: api.xyz.com&lt;BR /&gt;EdgeResponseBodyBytes: 71&lt;BR /&gt;EdgeResponseBytes: 814&lt;BR /&gt;EdgeResponseCompressionRatio: 0&lt;BR /&gt;EdgeResponseContentType: application/json&lt;BR /&gt;EdgeResponseStatus: 200&lt;BR /&gt;EdgeServerIP: 62.15.62.15&lt;BR /&gt;EdgeStartTimestamp: 2021-06-24T01:33:21Z&lt;BR /&gt;EdgeTimeToFirstByteMs: 160&lt;BR /&gt;FirewallMatchesActions: [ [+]&lt;BR /&gt;]&lt;BR /&gt;FirewallMatchesRuleIDs: [ [+]&lt;BR /&gt;]&lt;BR /&gt;FirewallMatchesSources: [ [+]&lt;BR /&gt;]&lt;BR /&gt;OriginDNSResponseTimeMs: 0&lt;BR /&gt;OriginIP: 44.12.238.17&lt;BR /&gt;OriginRequestHeaderSendDurationMs: 0&lt;BR /&gt;OriginResponseBytes: 0&lt;BR /&gt;OriginResponseDurationMs: 148&lt;BR /&gt;OriginResponseHTTPExpires:&lt;BR /&gt;OriginResponseHTTPLastModified:&lt;BR /&gt;OriginResponseHeaderReceiveDurationMs: 90&lt;BR /&gt;OriginResponseStatus: 200&lt;BR /&gt;OriginResponseTime: 148000000&lt;BR /&gt;OriginSSLProtocol: TLSv1.2&lt;BR /&gt;OriginTCPHandshakeDurationMs: 18&lt;BR /&gt;OriginTLSHandshakeDurationMs: 40&lt;BR /&gt;ParentRayID: 00&lt;BR /&gt;RayID: 6642351fccb80ca5&lt;BR /&gt;SecurityLevel: med&lt;BR /&gt;SmartRouteColoID: 0&lt;BR /&gt;UpperTierColoID: 0&lt;BR /&gt;&lt;STRONG&gt;WAFAction: unknown&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WAFFlags: 0&lt;/STRONG&gt;&lt;BR /&gt;WAFMatchedVar:&lt;BR /&gt;WAFProfile: unknown&lt;BR /&gt;WAFRuleID:&lt;BR /&gt;WAFRuleMessage:&lt;BR /&gt;WorkerCPUTime: 0&lt;BR /&gt;WorkerStatus: unknown&lt;BR /&gt;WorkerSubrequest: false&lt;BR /&gt;WorkerSubrequestCount: 0&lt;BR /&gt;ZoneID: 134451718&lt;BR /&gt;ZoneName: yy.xxxxx.com&lt;BR /&gt;}&lt;BR /&gt;Show as raw text&lt;BR /&gt;host = idx1.server001.net.netsource = s3://cloudflare/logs/20210624/20210624T013257Z_20210624T013327Z_0c91c265.log.gzsourcetype = _json &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 05:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556935#M92157</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-24T05:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556940#M92158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234965"&gt;@kagamalai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the _raw event what you have shared is UI version of JSON. change from list to raw in search app UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 06:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556940#M92158</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-24T06:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556943#M92160</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response, please look the below raw format.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{"BotScore":99,"BotScoreSrc":"Machine Learning","CacheCacheStatus":"unknown","CacheResponseBytes":2254,"CacheResponseStatus":200,"CacheTieredFill":false,"ClientASN":6805,"ClientCountry":"de","ClientDeviceType":"mobile","ClientIP":"79.14.16.54","ClientIPClass":"noRecord","ClientMTLSAuthCertFingerprint":"","ClientMTLSAuthStatus":"unknown","ClientRequestBytes":4059,"ClientRequestHost":"ty.xyz.com","ClientRequestMethod":"POST","ClientRequestPath":"/common/endpoint/","ClientRequestProtocol":"HTTP/2","ClientRequestReferer":"&lt;A href="https://ty.xyz.com/games/Popular/" target="_blank"&gt;https://ty.xyz.com/games/Popular/&lt;/A&gt;","ClientRequestScheme":"https","ClientRequestSource":"eyeball","ClientRequestURI":"/common/endpoint/","ClientRequestUserAgent":"Mozilla/5.0 (Linux; Android 10; MAR-LX1A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36","ClientSSLCipher":"ECDHE-ECDSA-AES128-GCM-SHA256","ClientSSLProtocol":"TLSv1.2","ClientSrcPort":46452,"ClientTCPRTTMs":33,"ClientXRequestedWith":"XMLHttpRequest","EdgeCFConnectingO2O":false,"EdgeColoCode":"DUS","EdgeColoID":48,"EdgeEndTimestamp":"2021-06-24T01:33:16Z","EdgePathingOp":"wl","EdgePathingSrc":"macro","EdgePathingStatus":"nr","EdgeRateLimitAction":"","EdgeRateLimitID":0,"EdgeRequestHost":"ty.xyz.com","EdgeResponseBodyBytes":300,"EdgeResponseBytes":1192,"EdgeResponseCompressionRatio":0,"EdgeResponseContentType":"application/json","EdgeResponseStatus":200,"EdgeServerIP":"18.41.42.13","EdgeStartTimestamp":"2021-06-24T01:33:16Z","EdgeTimeToFirstByteMs":224,"FirewallMatchesActions":[],"FirewallMatchesRuleIDs":[],"FirewallMatchesSources":[],"OriginDNSResponseTimeMs":0,"OriginIP":"14.11.28.17","OriginRequestHeaderSendDurationMs":0,"OriginResponseBytes":0,"OriginResponseDurationMs":215,"OriginResponseHTTPExpires":"","OriginResponseHTTPLastModified":"","OriginResponseHeaderReceiveDurationMs":215,"OriginResponseStatus":200,"OriginResponseTime":215000000,"OriginSSLProtocol":"TLSv1.2","OriginTCPHandshakeDurationMs":0,"OriginTLSHandshakeDurationMs":0,"ParentRayID":"00","RayID":"664235027de321b1","SecurityLevel":"med","SmartRouteColoID":0,"UpperTierColoID":0,"WAFAction":"unknown","WAFFlags":"0","WAFMatchedVar":"","WAFProfile":"unknown","WAFRuleID":"","WAFRuleMessage":"","WorkerCPUTime":0,"WorkerStatus":"unknown","WorkerSubrequest":false,"WorkerSubrequestCount":0,"ZoneID":134451718,"ZoneName":"ty.xyz.com"}&lt;BR /&gt;Show syntax highlighted&lt;BR /&gt;host = svr003.xyz.netsource = s3://prod-cloudflare/logs/ty.xyz.com/20210624/20210624T013257Z_20210624T013327Z_0c91c265.log.gzsourcetype = _json&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556943#M92160</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-24T07:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556981#M92162</link>
      <description>&lt;P&gt;Hello kagamalai,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can send events based on a regex matching to a specific queue before indexing. To only index some events send all events to the nullqueue and define a regex to send just the ones you want to keep to the indexqueue.&lt;/P&gt;&lt;P&gt;Since the transforms are executed from left to right "keepUnknown" overwrites the nullqueue with the indexqueue if the regex matches.&lt;/P&gt;&lt;P&gt;Heres a example:&lt;/P&gt;&lt;P&gt;props.conf&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;[yourSourcetype]
TRANSFORMS-filter_events = sendNull, keepUnknown&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;transforms.conf&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;[sendNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[keepUnknown]
REGEX = WAFAction\":\"unknown\",\"WAFFlags\":\"0\"
DEST_KEY = queue
FORMAT = indexQueue&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;If this helps you, you are welcome to accept the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;mdorobek&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 12:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/556981#M92162</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-24T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557002#M92163</link>
      <description>&lt;P&gt;Thank you for your reply, I have a doubt on this, if the condition is match the entire event will be indexed or only matched field and value only indexed ? please clarify&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 14:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557002#M92163</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-24T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557016#M92164</link>
      <description>&lt;P&gt;Hello kagamalai,&lt;/P&gt;&lt;P&gt;when data gets indexed it proceeds through a pipeline where event processing occours. This pipeline consists of several shorter pipelines that are strung together. You can see the pipeline on the picture. If you want further information you can read the following wiki entry:&amp;nbsp;&lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks" target="_blank"&gt;https://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mdorobek_0-1624546565144.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14793iAB7B26DCFEFD20FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="mdorobek_0-1624546565144.png" alt="mdorobek_0-1624546565144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The event breaking and merging happens in the parsing and merging pipeline. Transforms commands are executed in the typing pipeline. This means that a transforms is executed on every event and not on every line and splunk keeps the whole event which matches the regex.&amp;nbsp;Of course this assumes that the event&amp;nbsp;breaking has been configured correctly.&lt;/P&gt;&lt;P&gt;Does this clarify your question?&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;mdorobek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557016#M92164</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-24T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557026#M92166</link>
      <description>&lt;P&gt;Thank you for detailed explanation and your time.&lt;/P&gt;&lt;P&gt;I am using below apps for downloading the cloudflare logs. so where i have to use or edit the props.conf, transforms.conf files which path?.&amp;nbsp; all the apps having the props/transforms files in default directory.&lt;/P&gt;&lt;P&gt;1. Splunk Add-On for AWS&amp;nbsp; &amp;nbsp; &amp;nbsp;----- downloading the logs from s3.&lt;/P&gt;&lt;P&gt;2. Cloudflare Technology Add-On for Splunk&amp;nbsp; &amp;nbsp; &amp;nbsp;-------&lt;/P&gt;&lt;P&gt;3. Cloudflare App for Splunk.&lt;/P&gt;&lt;P&gt;I am running the splunk on Linux&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/splunk/etc/apps&lt;/P&gt;&lt;P&gt;Please advise path for this scenario&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 16:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557026#M92166</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-24T16:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557142#M92200</link>
      <description>&lt;P&gt;Hello kagamalai,&lt;/P&gt;&lt;P&gt;this depends on the sourcetype youre useing. I dont know how familiar youre with config files in Splunk. &lt;SPAN&gt;It merges the settings from all copies of the file, using a location-based prioritization scheme.&amp;nbsp;&lt;/SPAN&gt;When different copies have conflicting attribute values (that is, when they set the same attribute to different values), it uses the value from the file with the highest priority. More information here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Admin/Wheretofindtheconfigurationfiles" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its best practise for prebuild apps that they define the configs in /opt/splunk/etc/&amp;lt;appname&amp;gt;/default/&amp;lt;config&amp;gt; User specific changes should be located in&amp;nbsp;/opt/splunk/etc/&amp;lt;appname&amp;gt;/local/&amp;lt;config&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has two advantages:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;The configuration in the local folder has priority over the default one&lt;/P&gt;&lt;P&gt;2. If you update the app in future the local folder wont be changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Heres an example. If you use the&amp;nbsp;aws:cloudtrail sourcetype of the aws app you can locate the props.conf&amp;nbsp; under /opt/splunk/etc/apps/Splunk_TA_aws/local/props.conf with the following entry:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[aws:cloudtrail]
TRANSFORMS-filter_events = sendNull, keepUnknown&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to this the transforms.conf under&amp;nbsp;/opt/splunk/etc/apps/Splunk_TA_aws/local/transforms.conf&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[sendNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[keepUnknown]
REGEX = WAFAction\":\"unknown\",\"WAFFlags\":\"0\"
DEST_KEY = queue
FORMAT = indexQueue&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the REGEX has to match your specific condition. Further your transforms needs a individual name&amp;nbsp;because otherwise it could be overwritten if you have also defined it in another place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;mdorobek&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 08:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557142#M92200</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-25T08:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557183#M92204</link>
      <description>&lt;P&gt;Thank you its working......&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 12:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557183#M92204</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-25T12:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557207#M92210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I match OR&amp;nbsp; condition here ?&amp;nbsp; I want to do index if any one match below it should be index&lt;/P&gt;&lt;P&gt;"WAFFlags":"1"&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;"FirewallMatchesActions":["log"]&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;"FirewallMatchesActions":["log","log"]&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;FirewallMatchesSources&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;["&lt;/SPAN&gt;&lt;SPAN class="t"&gt;firewallRules&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class="t"&gt;waf&lt;/SPAN&gt;&lt;SPAN&gt;"]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557207#M92210</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-25T14:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557364#M92249</link>
      <description>&lt;P&gt;Hello kagamalai,&lt;/P&gt;&lt;P&gt;you can write an regex with an or condition. Heres an example:&lt;/P&gt;&lt;P&gt;(\"WAFFlags\":\"1\"|\"FirewallMatchesActions\":\[\"log\"\]|\"FirewallMatchesActions\":\[\"log\",\"log\"\]|\"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\])&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/sjwTa8/1" target="_blank"&gt;https://regex101.com/r/sjwTa8/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards ,&lt;/P&gt;&lt;P&gt;mdorobek&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 07:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557364#M92249</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-28T07:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557368#M92250</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have to write with below format ? in transforms.conf ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regex = (\"WAFFlags\":\"1\"|\"FirewallMatchesActions\":\[\"log\"\]|\"FirewallMatchesActions\":\[\"log\",\"log\"\]|\"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 08:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557368#M92250</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-28T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557387#M92255</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 09:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557387#M92255</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-28T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557426#M92264</link>
      <description>&lt;P&gt;Thanks, How many OR operator I can add ? could you please verify the below is correct format&amp;nbsp;&lt;/P&gt;&lt;P&gt;REGEX = (\"WAFFlags\":\"1\"|\"FirewallMatchesActions\":\[\"log\"\]|\"FirewallMatchesActions\":\[\"log\",\"log\"\]|\"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\]|\"FirewallMatchesActions\":\[\"block\"\]|\"FirewallMatchesActions\":\[\"challengeSolved\"\]|\"FirewallMatchesActions\":\[\"challenge\"\])&lt;/P&gt;&lt;P&gt;I have doubt on this its not filtering&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557426#M92264</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-28T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557518#M92270</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/204149"&gt;@mdorobek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please advise its not working while adding the OR operator" | " is there any other methods to filter the same ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 05:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557518#M92270</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-29T05:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557528#M92271</link>
      <description>&lt;P&gt;Hello kagamalai,&lt;/P&gt;&lt;P&gt;I already gave you a link to check your regular expression:&amp;nbsp;&lt;A href="https://regex101.com/r/sjwTa8/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/sjwTa8/1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you restart Splunk after the changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it doesn't work, which it should, there is another way. Just run several transforms in a row. Its exactly the same like before. This method is much less efficient because each event must be viewed four times. However, heres the example for the four events you want to keep.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[aws:cloudtrail]
TRANSFORMS-filter_events = sendNull, keepWAFFlags, keepFirewallMatchesActionslog, keepFirewalMatchesActionloglog, keepFirewallMatchesSources&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;PRE&gt;[sendNull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[keepWAFFlags]
REGEX = \"WAFFlags\":\"1\"
DEST_KEY = queue
FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewallMatchesActionslog] &lt;BR /&gt;REGEX = \"FirewallMatchesActions\":\[\"log\"\]&lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewalMatchesActionloglog] &lt;BR /&gt;REGEX = \"FirewallMatchesActions\":\[\"log\",\"log\"\] &lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[keepFirewallMatchesSources] &lt;BR /&gt;REGEX = \"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\]&lt;BR /&gt;DEST_KEY = queue &lt;BR /&gt;FORMAT = indexQueue&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557528#M92271</guid>
      <dc:creator>mdorobek</dc:creator>
      <dc:date>2021-06-29T06:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557591#M92281</link>
      <description>&lt;P&gt;Thank you for reply, Yes tested with regex101 site before using the pattern the pattern is below&lt;/P&gt;&lt;P&gt;Please have look is there any mistake ?&lt;/P&gt;&lt;P&gt;REGEX = (\"WAFFlags\":\"1\"|\"FirewallMatchesActions\":\[\"log\"\]|\"FirewallMatchesActions\":\[\"log\",\"log\"\]|\"FirewallMatchesSources\":\[\"firewallRules\",\"waf\"\]|\"FirewallMatchesActions\":\[\"block\"\])&lt;/P&gt;&lt;P&gt;If above method is work its very useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 11:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557591#M92281</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-29T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Before Indexing Filter Based ON JSON format data match</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557647#M92287</link>
      <description>&lt;P&gt;Thank you its working fine.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 17:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Before-Indexing-Filter-Based-ON-JSON-format-data-match/m-p/557647#M92287</guid>
      <dc:creator>kagamalai</dc:creator>
      <dc:date>2021-06-29T17:17:08Z</dc:date>
    </item>
  </channel>
</rss>

