<?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: Replace _raw data for the matched string pattern in a multiple lines raw data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708197#M239498</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;. your solution works great.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 18:54:36 GMT</pubDate>
    <dc:creator>dwangfeng</dc:creator>
    <dc:date>2025-01-07T18:54:36Z</dc:date>
    <item>
      <title>Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708163#M239485</link>
      <description>&lt;P&gt;Here is my raw data in the splunk query&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;s:Envelope xmlns:s="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="noopener"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt; &amp;lt;s:Body xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt; &amp;lt;application xmlns="&lt;A href="http://www.abc.com/services/listService" target="_blank" rel="noopener"&gt;http://www.abc.com/services/listService&lt;/A&gt;"&amp;gt; &amp;lt;header&amp;gt; &amp;lt;user&amp;gt;def@ghi.com&amp;lt;/user&amp;gt; &amp;lt;password&amp;gt;al3yu2430nald&amp;lt;/password&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I want to mask the password value and show in the splunk output as:&lt;BR /&gt;&amp;lt;s:Envelope xmlns:s="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="noopener"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt; &amp;lt;s:Body xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="noopener"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt; &amp;lt;application xmlns="&lt;A href="http://www.abc.com/services/listService" target="_blank" rel="noopener"&gt;http://www.abc.com/services/listService&lt;/A&gt;"&amp;gt; &amp;lt;header&amp;gt; &amp;lt;user&amp;gt;def@ghi.com&amp;lt;/user&amp;gt; &amp;lt;password&amp;gt;xxxxxxxxxxxx&amp;lt;/password&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I do that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 16:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708163#M239485</guid>
      <dc:creator>dwangfeng</dc:creator>
      <dc:date>2025-01-07T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708188#M239492</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/77444"&gt;@dwangfeng&lt;/a&gt;&amp;nbsp;Can you try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1736276074956.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34053i911283EA1E3FAF19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1736276074956.png" alt="kiran_panchavat_0-1736276074956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.&lt;/P&gt;&lt;P&gt;Please, don't forget to accept this solution if it fits your needs.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708188#M239492</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-01-07T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708189#M239493</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/77444"&gt;@dwangfeng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="yourindex" sourcetype="yoursourcetype"&lt;BR /&gt;| rex mode=sed "s/&amp;lt;password&amp;gt;[^&amp;lt;]+&amp;lt;\/password&amp;gt;/&amp;lt;password&amp;gt;xxxxxxxxxxxx&amp;lt;\/password&amp;gt;/g"&lt;/P&gt;&lt;P&gt;I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.&lt;/P&gt;&lt;P&gt;Please, don't forget to accept this solution if it fits your needs.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708189#M239493</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-01-07T18:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708196#M239497</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/77444"&gt;@dwangfeng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apply this props.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&amp;lt;sourcetype&amp;gt;]&lt;BR /&gt;SEDCMD-splunktestdata = s/(?i)(&amp;lt;password&amp;gt;)[^&amp;lt;]+(&amp;lt;\/password&amp;gt;)/\1xxxxxxxxxxxx\2/g&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708196#M239497</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-01-07T18:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708197#M239498</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;. your solution works great.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 18:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708197#M239498</guid>
      <dc:creator>dwangfeng</dc:creator>
      <dc:date>2025-01-07T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace _raw data for the matched string pattern in a multiple lines raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708286#M239532</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;even you can mask that data in GUI, it didn't mean that you have really masked that data in Splunk. You must remember that after you have write it into bucket then it there and there is always a way to get it out in plain text if/when you have access to GUI and can write SPL. Even you are using search time props.conf and transforms.conf.&lt;/P&gt;&lt;P&gt;The only way is remove that data from index and reindex it again. And even the delete command is not enough if you have access to buckets on CLI level, you could get thet data back. The only way is let it go away with set frozen time enough low, then wait and then reindex it.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 18:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Replace-raw-data-for-the-matched-string-pattern-in-a-multiple/m-p/708286#M239532</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-08T18:16:10Z</dc:date>
    </item>
  </channel>
</rss>

