<?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: how to add Attributes with a Regular Expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185148#M53361</link>
    <description>&lt;P&gt;Thanks MuS, that works perfect in the search, however, do you know how to replace it in the label?&lt;/P&gt;

&lt;P&gt;I tried above, it works ok in raw data, but when put it into a table format, it still shows the name with __b in it. same to the chart, if I build a chart, the label still shows the unformated text, any idea how should I get this one done?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2014 20:18:42 GMT</pubDate>
    <dc:creator>bigbeetlefan</dc:creator>
    <dc:date>2014-03-13T20:18:42Z</dc:date>
    <item>
      <title>how to add Attributes with a Regular Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185146#M53359</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;

&lt;P&gt;I have a index, and the data was in one column is like &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Item__bAffected&lt;/CODE&gt;, I'd like to replace "&lt;CODE&gt;__b&lt;/CODE&gt;" with a " "(space), so it will look like&lt;/P&gt;

&lt;P&gt;"&lt;CODE&gt;Item Affected&lt;/CODE&gt;"&lt;/P&gt;

&lt;P&gt;however, I don't know how to used regular expression to replace the string, or its more easier to filter them out before input in to index? &lt;/P&gt;

&lt;P&gt;any idea?&lt;/P&gt;

&lt;P&gt;THanK you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 00:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185146#M53359</guid>
      <dc:creator>bigbeetlefan</dc:creator>
      <dc:date>2014-03-13T00:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to add Attributes with a Regular Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185147#M53360</link>
      <description>&lt;P&gt;Hi bigbeetlefan,&lt;/P&gt;

&lt;P&gt;you can do this with &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/SearchReference/rex#Examples"&gt;&lt;CODE&gt;rex&lt;/CODE&gt;&lt;/A&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed field=YourField "s/__b/ /g" | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 13:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185147#M53360</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-03-13T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to add Attributes with a Regular Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185148#M53361</link>
      <description>&lt;P&gt;Thanks MuS, that works perfect in the search, however, do you know how to replace it in the label?&lt;/P&gt;

&lt;P&gt;I tried above, it works ok in raw data, but when put it into a table format, it still shows the name with __b in it. same to the chart, if I build a chart, the label still shows the unformated text, any idea how should I get this one done?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 20:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185148#M53361</guid>
      <dc:creator>bigbeetlefan</dc:creator>
      <dc:date>2014-03-13T20:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to add Attributes with a Regular Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185149#M53362</link>
      <description>&lt;P&gt;Thanks MuS, that works perfect in the search, however, do you know how to replace it in the label?&lt;/P&gt;

&lt;P&gt;I tried above, it works ok in raw data, but when put it into a table format, it still shows the name with __b in it. same to the chart, if I build a chart, the label still shows the unformated text, any idea how should I get this one done?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 20:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185149#M53362</guid>
      <dc:creator>bigbeetlefan</dc:creator>
      <dc:date>2014-03-13T20:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to add Attributes with a Regular Expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185150#M53363</link>
      <description>&lt;P&gt;The rex command does the replacement at search time only (its not a permanent change to data stored). You need to include the rex part in each of the query your use for your chart/table etc.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 20:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-add-Attributes-with-a-Regular-Expression/m-p/185150#M53363</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-13T20:50:26Z</dc:date>
    </item>
  </channel>
</rss>

