<?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: Remove specific strings from raw events based on other fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669330#M229570</link>
    <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;SEDCMD &lt;/FONT&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
SEDCMD-rm-geo_protection = s/protection_type=geo_protection/---/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 13:58:07 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-11-21T13:58:07Z</dc:date>
    <item>
      <title>Remove specific strings from raw events based on other fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669256#M229547</link>
      <description>&lt;P&gt;Firewall logs needs some purification for threat monitoring, below are couple events,&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the events below action=Accept AND Service=23 along with protection_type=geo_protection, we need "protection_type=geo_protection" to be removed from raw in indextime extraction.&lt;/P&gt;&lt;P&gt;Current:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513220|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=000|time=1700513220|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Denied|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=67|src=111.11.1.111|src_country=Other&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513220|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=000|time=1700513220|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|---|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|---|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Accept|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|---|proto=99|s_port=1234|service=23|src=111.11.1.111|src_country=Other

2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Denied|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=67|src=111.11.1.111|src_country=Other&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 21:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669256#M229547</guid>
      <dc:creator>sandeepreddy947</dc:creator>
      <dc:date>2023-11-20T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific strings from raw events based on other fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669330#M229570</link>
      <description>&lt;P&gt;Use &lt;FONT face="courier new,courier"&gt;SEDCMD &lt;/FONT&gt;in props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
SEDCMD-rm-geo_protection = s/protection_type=geo_protection/---/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 13:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669330#M229570</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-21T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific strings from raw events based on other fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669331#M229571</link>
      <description>&lt;P&gt;But, this regex with SED will replace in all events, i only need them replaced when action=Allowed and Service=23" in raw events. your regex will not satisfy below event.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2023-11-20K00:12:00-05:00 111.111.11.111 time=1700513221|hostname=firewallhost|product=Firewall|action=Denied|ifdir=inbound|ifname=eth3-01|logid=xxxx|loguid={xxxx,xxxx,xxxx,xxxx}|origin=111.111.11.111|originsicname=PK\=originsicname,O\=xpljdkdk..xpl78kdk|sequencenum=00|time=1700513221|version=5|dst=111.11.1.111|dst_country=PL|inspection_information=Geo-location outbound enforcement|inspection_profile=Geo_settings_upgraded_from_FWPRMLP_Internet_v4|protection_type=geo_protection|proto=99|s_port=1234|service=67|src=111.11.1.111|src_country=Other&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 14:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669331#M229571</guid>
      <dc:creator>sandeepreddy947</dc:creator>
      <dc:date>2023-11-21T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific strings from raw events based on other fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669350#M229580</link>
      <description>&lt;P&gt;Sorry about that.&amp;nbsp; Try this &lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt;, instead.&amp;nbsp; It does, however, make some assumptions about the order of fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-rm-geo_protection = s/(.*\|action=Accept\|)(.*?)\|protection_type=geo_protection\|(.*?)(\|service=23.*)/\1\2|---|\3\4/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-strings-from-raw-events-based-on-other-fields/m-p/669350#M229580</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-21T15:25:55Z</dc:date>
    </item>
  </channel>
</rss>

