<?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: Search app: Remove extracted values from event column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367791#M169810</link>
    <description>&lt;P&gt;This is working for one line, as we have the same prefix with a different log message on the second line (was my fault, I didn't mention that) I used&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 "message=(?&amp;lt;_raw&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now it's working fine. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 13:48:19 GMT</pubDate>
    <dc:creator>stefan_gohlke</dc:creator>
    <dc:date>2018-05-07T13:48:19Z</dc:date>
    <item>
      <title>Search app: Remove extracted values from event column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367787#M169806</link>
      <description>&lt;P&gt;Is it possiple to remove information from the column "Event" in the search app view? Some values have allready been extracted, so I would like to remove them from the event column.&lt;/P&gt;

&lt;P&gt;Current text in column "Event":&lt;BR /&gt;
time=2018-04-30 10:39:16.652 CEST processID=12116 appname= username= dbname= remoteHost= sessionid=5ae6d634.2f54 message=LOG: A long long log message&lt;/P&gt;

&lt;P&gt;New:&lt;BR /&gt;
LOG: A long long log message&lt;/P&gt;

&lt;P&gt;Is that possible? How to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 09:03:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367787#M169806</guid>
      <dc:creator>stefan_gohlke</dc:creator>
      <dc:date>2018-04-30T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search app: Remove extracted values from event column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367788#M169807</link>
      <description>&lt;P&gt;You should not remove these during indexing, because it will most likely break all your field extractions unless all these information has been extracted as index time fields, which it most likely isn't.&lt;/P&gt;

&lt;P&gt;You could use a regex like this:&lt;BR /&gt;
&lt;CODE&gt;.*\smessage=(?&amp;lt;_raw&amp;gt;.*)$&lt;/CODE&gt;&lt;BR /&gt;
This would replace the &lt;CODE&gt;_raw&lt;/CODE&gt; field, which is what you're getting displayed as the actual event text.&lt;BR /&gt;
So, you can simply set up a &lt;CODE&gt;props.conf&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your-sourcetype]
EXTRACT-shorten_raw_text = .*\smessage=(?&amp;lt;_raw&amp;gt;.*)$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps - if it does I'd be happy if you would upvote/accept this answer, so others could profit from it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 09:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367788#M169807</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-04-30T09:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search app: Remove extracted values from event column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367789#M169808</link>
      <description>&lt;P&gt;The event column shows the raw event.&lt;/P&gt;

&lt;P&gt;Technically, you could do an &lt;CODE&gt;| eval _raw=...&lt;/CODE&gt; command to apply some kind of eval functions on the _raw field, to only display the part you are looking for. Or specifically for your example: &lt;CODE&gt;| rex "message=(?&amp;lt;_raw&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367789#M169808</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-09-29T19:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search app: Remove extracted values from event column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367790#M169809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;can you past this example in your barre search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="time=2018-04-30 10:39:16.652 CEST processID=12116 appname= username= dbname= remoteHost= sessionid=5ae6d634.2f54 message=LOG: A long long log message" | rex "message=(?&amp;lt;_raw&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 12:09:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367790#M169809</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-30T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search app: Remove extracted values from event column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367791#M169810</link>
      <description>&lt;P&gt;This is working for one line, as we have the same prefix with a different log message on the second line (was my fault, I didn't mention that) I used&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 "message=(?&amp;lt;_raw&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now it's working fine. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-app-Remove-extracted-values-from-event-column/m-p/367791#M169810</guid>
      <dc:creator>stefan_gohlke</dc:creator>
      <dc:date>2018-05-07T13:48:19Z</dc:date>
    </item>
  </channel>
</rss>

