<?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: Using transforms and props to search and replace multiple fields in an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/515461#M144861</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163241"&gt;@brettcave&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Legend has it that &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; is still looking for that upvote.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 14:03:42 GMT</pubDate>
    <dc:creator>GindiKhangura</dc:creator>
    <dc:date>2020-08-21T14:03:42Z</dc:date>
    <item>
      <title>Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497667#M144857</link>
      <description>&lt;P&gt;If I have an event that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;META1 META2 {foo:bar,color:green,size:medium} some text ({client: x, ip: z})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I want to use a single transforms to replace the values for &lt;CODE&gt;foo&lt;/CODE&gt;, &lt;CODE&gt;color&lt;/CODE&gt; and &lt;CODE&gt;size&lt;/CODE&gt;, to produce logs like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;META1 META2 {foo:###,color:###,size:###} some text ({client:x, ip:z})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I wanted to use the following in transforms, but it's only replacing the first field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=(?m)(META.* {)(foo|color|size):\w(}.*)$
FORMAT=$1###$3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It only masks the first value, how would I match multiple values?&lt;/P&gt;

&lt;P&gt;Sample log output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    META1 META2 {foo:###,color:green,size:medium some text ({client:x, ip:z})
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497667#M144857</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2020-01-29T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497668#M144858</link>
      <description>&lt;P&gt;Try adding &lt;CODE&gt;REPEAT_MATCH = true&lt;/CODE&gt; to the transforms.conf stanza.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497668#M144858</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-29T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497669#M144859</link>
      <description>&lt;P&gt;thanks @richgalloway , am testing this now.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497669#M144859</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2020-01-30T10:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497670#M144860</link>
      <description>&lt;P&gt;Still testing?  If your problem is resolved, please accept the answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 13:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/497670#M144860</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-05T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/515461#M144861</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163241"&gt;@brettcave&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Legend has it that &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; is still looking for that upvote.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/515461#M144861</guid>
      <dc:creator>GindiKhangura</dc:creator>
      <dc:date>2020-08-21T14:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using transforms and props to search and replace multiple fields in an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/515468#M144862</link>
      <description>&lt;P&gt;accepted answer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-transforms-and-props-to-search-and-replace-multiple-fields/m-p/515468#M144862</guid>
      <dc:creator>brettcave</dc:creator>
      <dc:date>2020-08-21T14:06:56Z</dc:date>
    </item>
  </channel>
</rss>

