<?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: Regex Help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585260#M203885</link>
    <description>&lt;P&gt;Based on the samples I'm assuming you want want to mask numbers and alphabets between / and ::.&lt;/P&gt;&lt;P&gt;I'm assuming there are no spaces or other characters in between them.&lt;/P&gt;&lt;P&gt;Write below the line in the &lt;STRONG&gt;props.conf&lt;/STRONG&gt; under the right sourcetype stanza. (on the parsing instance, if you collect data on HF, put it on HF, if you collect data on UF and send it to Indexer then put it on Indexers, if you don't understand where to put I would put the configuration everywhere)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-maskvalues = s/\/(\w|\d)+::/\/#####::/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should mask the values in your event before it ingests in Splunk. Because I made some assumptions it is a good idea that you do a test before you apply it on production.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 05:40:56 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-02-16T05:40:56Z</dc:date>
    <item>
      <title>Help masking data and regex?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585258#M203883</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help me in masking data and regex? currently, we have an event where I need to mask certain data in a field extraction. I have already worked on the basic regex forSample1 | rex field=_raw "("PAE"\/)(?&amp;lt;Mask_Data&amp;gt;\d+\W\w+\d\s)"&amp;nbsp; &amp;nbsp;but I am looking for a common or a separate regex for all the below samples and I want the events but mask the numbers before " : : " and after /&amp;nbsp; I am good I can get only the numbers masked in the tail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EVENT Samples&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; Request_URL=ghghghghghhghghghhghg/eeeee/xxx/functionalPAE/188888/WWE&lt;/SPAN&gt;E&lt;SPAN class=""&gt;1112&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;: :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;2) Request_URL=ghghghghghhghghghhghg/eeeee/xxx/functionalAssessment/188888&lt;/SPAN&gt;/EEE&lt;SPAN class=""&gt;3456823947&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;: :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;3)Request_URL=ghghghghghhghghghhghg/eeeee/xxx/functionalAssessmentFromEEF/11111233&lt;/SPAN&gt;&amp;nbsp;: :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;4) Request_URL=ghghghghghhghghghhghg/eeeee/xxx/functionalAssessmentFromservices/1333/11233&lt;/SPAN&gt;&amp;nbsp;: :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 00:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585258#M203883</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-17T00:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585260#M203885</link>
      <description>&lt;P&gt;Based on the samples I'm assuming you want want to mask numbers and alphabets between / and ::.&lt;/P&gt;&lt;P&gt;I'm assuming there are no spaces or other characters in between them.&lt;/P&gt;&lt;P&gt;Write below the line in the &lt;STRONG&gt;props.conf&lt;/STRONG&gt; under the right sourcetype stanza. (on the parsing instance, if you collect data on HF, put it on HF, if you collect data on UF and send it to Indexer then put it on Indexers, if you don't understand where to put I would put the configuration everywhere)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-maskvalues = s/\/(\w|\d)+::/\/#####::/g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should mask the values in your event before it ingests in Splunk. Because I made some assumptions it is a good idea that you do a test before you apply it on production.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 05:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585260#M203885</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-02-16T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585267#M203888</link>
      <description>&lt;P class="lia-align-justify"&gt;Appreciate your help on the details &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;. yes, we do have space after the /digit"space": : but I can add "s " in the provided query. Is there a way we can use get the regex on the UI for masking?&amp;nbsp; cause I don't have access to the backend servers.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585267#M203888</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-16T06:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585272#M203891</link>
      <description>&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/\/(\w|\d)+::/\/#####::/g"&lt;/LI-CODE&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="VatsalJagani_0-1644992466208.png" style="width: 705px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17993i8B4A27C7E04CC585/image-dimensions/705x219?v=v2" width="705" height="219" role="button" title="VatsalJagani_0-1644992466208.png" alt="VatsalJagani_0-1644992466208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243022"&gt;@kc_prane&lt;/a&gt;&amp;nbsp;- Please upvote and accept the solution if this answers your questions.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585272#M203891</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-02-16T06:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585381#M203946</link>
      <description>&lt;P&gt;Thanks a lot Vatsal Jagani !&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 15:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-masking-data-and-regex/m-p/585381#M203946</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2022-02-16T15:18:27Z</dc:date>
    </item>
  </channel>
</rss>

