<?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: Removing characters from output with rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519309#M146237</link>
    <description>&lt;P&gt;Thank you&lt;BR /&gt;That what made the trick&lt;/P&gt;</description>
    <pubDate>Sun, 13 Sep 2020 15:37:02 GMT</pubDate>
    <dc:creator>SplunkySplunk</dc:creator>
    <dc:date>2020-09-13T15:37:02Z</dc:date>
    <item>
      <title>Removing characters from output with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519300#M146231</link>
      <description>&lt;P&gt;I`m trying to remove a hash string from my output-&lt;BR /&gt;"Example hash is 3ernksMt7b3EzKwHuW4papuEFtvePZtDs9CQFeVYy57= will not be cracked"&lt;BR /&gt;As the hash is changing but has unique specifications, I'm trying to implement a rex rule to catch every event with this rule- "[a-zA-Z0-9]+="&lt;BR /&gt;Unfortunately, I've tried multiple solutions from the forum but non worked for this case.&lt;BR /&gt;&lt;BR /&gt;I would also appreciate a reference to the documentation on this issue (Understanding each part of the rex command)&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 13:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519300#M146231</guid>
      <dc:creator>SplunkySplunk</dc:creator>
      <dc:date>2020-09-13T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters from output with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519303#M146233</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=_raw mode=sed "s/[a-zA-Z0-9]+=//g"&lt;/LI-CODE&gt;&lt;P&gt;This removes you hash from the _raw field - use a different field as appropriate. The sed command substitutes your pattern for nothing - you could replace it with something else. Note that this relies on there being a "=" at the end of the hash, which may or may not be true for all instances of your hashes. If it isn't true, you need a pattern the does match all your hashes or apply multiple rex commands to remove/replace hashes of different patterns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regex101.com is a good site to test regex expressions&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 14:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519303#M146233</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-13T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters from output with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519308#M146236</link>
      <description>&lt;P&gt;Worth watching regular expressions in Splunk&lt;/P&gt;&lt;P&gt;&lt;A href="https://youtu.be/LoiyiCVGLnw" target="_blank"&gt;https://youtu.be/LoiyiCVGLnw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 15:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519308#M146236</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-13T15:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing characters from output with rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519309#M146237</link>
      <description>&lt;P&gt;Thank you&lt;BR /&gt;That what made the trick&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 15:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-characters-from-output-with-rex/m-p/519309#M146237</guid>
      <dc:creator>SplunkySplunk</dc:creator>
      <dc:date>2020-09-13T15:37:02Z</dc:date>
    </item>
  </channel>
</rss>

