<?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: Can I make a calculated field by regex replace on an existing field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234572#M69702</link>
    <description>&lt;P&gt;The regex replace has to work &lt;EM&gt;AUTOMATICALLY&lt;/EM&gt; w/o adding anything to the query. &lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2015 23:29:35 GMT</pubDate>
    <dc:creator>hylam</dc:creator>
    <dc:date>2015-11-13T23:29:35Z</dc:date>
    <item>
      <title>Can I make a calculated field by regex replace on an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234568#M69698</link>
      <description>&lt;P&gt;Can I make this happen automatically? I know I can do it with the rex search command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval newField=sed(oldField, "s/aa/bb/g")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Nov 2015 13:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234568#M69698</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-11-13T13:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a calculated field by regex replace on an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234569#M69699</link>
      <description>&lt;P&gt;Did you try it?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234569#M69699</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-13T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a calculated field by regex replace on an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234570#M69700</link>
      <description>&lt;P&gt;oh i have just found it&lt;BR /&gt;
replace(X,Y,Z)&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;my next question is can i perform the replace w/o the /g?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 16:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234570#M69700</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-11-13T16:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a calculated field by regex replace on an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234571#M69701</link>
      <description>&lt;P&gt;You can do this in search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |eval newField = oldField | rex field=oldField mode=sed "s/aa/bb/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Nov 2015 19:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234571#M69701</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-13T19:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a calculated field by regex replace on an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234572#M69702</link>
      <description>&lt;P&gt;The regex replace has to work &lt;EM&gt;AUTOMATICALLY&lt;/EM&gt; w/o adding anything to the query. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 23:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-calculated-field-by-regex-replace-on-an-existing/m-p/234572#M69702</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-11-13T23:29:35Z</dc:date>
    </item>
  </channel>
</rss>

