<?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: Is it possible to remove an asterisk from the returned data for a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286867#M86821</link>
    <description>&lt;P&gt;I think you were close.  Try &lt;CODE&gt;eval Message=replace(DATA, "\*", "")&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 15:43:07 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-10-21T15:43:07Z</dc:date>
    <item>
      <title>Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286866#M86820</link>
      <description>&lt;P&gt;Is it possible to remove an asterisk from the returned data for a table? &lt;/P&gt;

&lt;P&gt;I tried to use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "Data=(?&amp;lt;Message&amp;gt;[^C]+)\sC" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;however, this ends up cutting off some of the returned data for some lines. I also tried to do &lt;CODE&gt;eval Message=REPLACE(DATA,"*"," ")&lt;/CODE&gt; and this threw an error. &lt;/P&gt;

&lt;P&gt;The example of the returned data in a table would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName; XYZ User: ABC * File Sent to where it needs to go 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I end up getting is not using anything is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the rex expression, I get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName; XYZ User: ABC File
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm hoping to see is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName; XYZ User: ABC File Sent to where it needs to go 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286866#M86820</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-10-21T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286867#M86821</link>
      <description>&lt;P&gt;I think you were close.  Try &lt;CODE&gt;eval Message=replace(DATA, "\*", "")&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286867#M86821</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-21T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286868#M86822</link>
      <description>&lt;P&gt;Thanks for your reply richgalloway, when i tried that it just populated the table with the ComputerName.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286868#M86822</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-10-21T15:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286869#M86823</link>
      <description>&lt;P&gt;Try with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=FIELD "\w*[^\*]"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286869#M86823</guid>
      <dc:creator>slr</dc:creator>
      <dc:date>2015-10-21T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286870#M86824</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=DATA mode=sed "s/\*//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will remove every asterisk character from the field &lt;CODE&gt;DATA&lt;/CODE&gt;, regardless of where it may occur.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286870#M86824</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-21T16:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286871#M86825</link>
      <description>&lt;P&gt;Hello Sir, &lt;CODE&gt;rex field=DATA "\w*[^\*]"&lt;/CODE&gt; threw an error - &lt;/P&gt;

&lt;P&gt;Error in 'rex' command: The regex '\w*[^*]' does not extract anything. It should specify at least one named group. Format: (?...).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286871#M86825</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-10-21T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286872#M86826</link>
      <description>&lt;P&gt;I was able to get all the data displayed along with the asterisk by using &lt;CODE&gt;|rex "DATA=(?[^$]+)"|&lt;/CODE&gt; where DATA was the indexed column. Then removed the asterisk with &lt;CODE&gt;|eval Message=replace(Message, "\*", "")|&lt;/CODE&gt; Thanks to all that replied with ideas to help me resolve this issue i was having. &lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286872#M86826</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-10-21T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to remove an asterisk from the returned data for a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286873#M86827</link>
      <description>&lt;P&gt;The @woodcock answer is more accurate than mine, forget this &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 07:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-remove-an-asterisk-from-the-returned-data-for/m-p/286873#M86827</guid>
      <dc:creator>slr</dc:creator>
      <dc:date>2015-10-22T07:54:55Z</dc:date>
    </item>
  </channel>
</rss>

