<?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 remove tags in a string? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464373#M191595</link>
    <description>&lt;P&gt;The &lt;CODE&gt;rex&lt;/CODE&gt; command may be what you are looking for.  The example below will extract what is between &lt;CODE&gt;&amp;lt;tag&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; into a field called 'field'.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\&amp;lt;[^&amp;gt;]+&amp;gt;\s*(?&amp;lt;field&amp;gt;[^\&amp;lt;]+)\&amp;lt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Mar 2020 19:06:28 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-03-30T19:06:28Z</dc:date>
    <item>
      <title>How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464372#M191594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a string field like: View&lt;BR /&gt;
How can I remove tag  and  to only display View in the search?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 18:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464372#M191594</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-03-30T18:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464373#M191595</link>
      <description>&lt;P&gt;The &lt;CODE&gt;rex&lt;/CODE&gt; command may be what you are looking for.  The example below will extract what is between &lt;CODE&gt;&amp;lt;tag&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; into a field called 'field'.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\&amp;lt;[^&amp;gt;]+&amp;gt;\s*(?&amp;lt;field&amp;gt;[^\&amp;lt;]+)\&amp;lt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Mar 2020 19:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464373#M191595</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-30T19:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464374#M191596</link>
      <description>&lt;P&gt;Sorry, actually the field name is EventData with values like:  View or Edit or Delete&lt;BR /&gt;
I try to only display the text b/w tags  and  (View, Edit, or Delete).&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 19:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464374#M191596</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-03-30T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464375#M191597</link>
      <description>&lt;P&gt;It will help to see some sample events and the desired output.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 20:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464375#M191597</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-30T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464376#M191598</link>
      <description>&lt;P&gt;I have no idea what you mean.  Use more works and try the &lt;CODE&gt;markdown&lt;/CODE&gt; features in answers.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464376#M191598</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-31T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464377#M191599</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;BR /&gt;
All I meant is that how I can remove tags .... in a string. For example:&lt;BR /&gt;
 View , I only need my search to return View. The field name is EventData.&lt;/P&gt;

&lt;P&gt;Thanks, &lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464377#M191599</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-03-31T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464378#M191600</link>
      <description>&lt;P&gt;You said the same thing 3 times the same way and it doesn't make sense.  Draw us a picture and stop using words.  Show us the data before and the data after.  We are not following what you mean, especially your strange use of the term &lt;CODE&gt;tag&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464378#M191600</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-31T17:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464379#M191601</link>
      <description>&lt;P&gt;Sorry for the confusing and here is the detail:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search: index=index1 | table eventdata
Current output: 
eventdata
&amp;lt;Type&amp;gt; View &amp;lt;/Type&amp;gt; 
&amp;lt;Action&amp;gt; Edit &amp;lt;/Action&amp;gt;
 &amp;lt;Source&amp;gt; Server Name &amp;lt;/Source&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Desired output:&lt;BR /&gt;
eventdata&lt;BR /&gt;
View&lt;BR /&gt;
Edit&lt;BR /&gt;
Server Name&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464379#M191601</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-03-31T18:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464380#M191602</link>
      <description>&lt;P&gt;Wow, I see where it causes confusing. The tags were removed from my original post. That makes both current and desired outputs the same.&lt;BR /&gt;
The current output has smaller and greater signs at beginning  and these signs with  at the end.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 18:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464380#M191602</guid>
      <dc:creator>vnguyen46</dc:creator>
      <dc:date>2020-03-31T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove tags in a string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464381#M191603</link>
      <description>&lt;P&gt;It got eaten again.  Re-edit your original question, highlight the stuff that is getting changed and then click the &lt;CODE&gt;101010&lt;/CODE&gt; button to make it a code fragment that will not get modified.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-tags-in-a-string/m-p/464381#M191603</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-31T19:48:27Z</dc:date>
    </item>
  </channel>
</rss>

