<?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: Rename values extracted into field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28263#M5572</link>
    <description>&lt;P&gt;Maybe I miss-understood the question, but this didn't work for me; but the "replace" command worked great. Reference here: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/7077/how-can-i-rename-the-host-names-for-my-chart.html"&gt;http://answers.splunk.com/answers/7077/how-can-i-rename-the-host-names-for-my-chart.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 19:17:04 GMT</pubDate>
    <dc:creator>Michael</dc:creator>
    <dc:date>2015-06-03T19:17:04Z</dc:date>
    <item>
      <title>Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28256#M5565</link>
      <description>&lt;P&gt;Can you rename values extracted into fields?&lt;/P&gt;

&lt;P&gt;Example - Here is a field i have called "filename" and some examples of values that were extracted.&lt;/P&gt;

&lt;P&gt;filename=statement.pdf&lt;BR /&gt;
filename=invoice.pdf&lt;BR /&gt;
filename=invoice.html&lt;/P&gt;

&lt;P&gt;Can I rename (or trick) these values from the field filename to show up in a chart or table as:&lt;/P&gt;

&lt;P&gt;statement.pdf ====&amp;gt; Billing Statement&lt;BR /&gt;
invoice.pdf ===&amp;gt; Billing Invoice&lt;BR /&gt;
invoice.html ===&amp;gt; Drilldown Invoice&lt;/P&gt;

&lt;P&gt;I was looking at eval but so far haven't figured anything out yet.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 20:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28256#M5565</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-08-07T20:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28257#M5566</link>
      <description>&lt;P&gt;use eval &lt;BR /&gt;
for example...&lt;/P&gt;

&lt;P&gt;search whatever | eval Actual = case(filename = "statement.pdf","Billing Statement",filename = " invoice.pdf","Billing Invoice", filename = "invoice.html","Drilldown Invoice")&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28257#M5566</guid>
      <dc:creator>splunk_gs</dc:creator>
      <dc:date>2012-08-09T19:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28258#M5567</link>
      <description>&lt;P&gt;haha yup eval can be used with just about anything...you can dig deeper by surrounding the eval with a coalesce for unknown values like coalesce(case(...),"unknown") and that will replace unknown definitions as "unknown"&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28258#M5567</guid>
      <dc:creator>splunk_gs</dc:creator>
      <dc:date>2012-08-09T19:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28259#M5568</link>
      <description>&lt;P&gt;filename="&lt;EM&gt;-&lt;/EM&gt;.pdf","Scorecard" is what I have at the end.  I'm wondering if it's because of how it's defined earlier in the search with the NOT command?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28259#M5568</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-08-09T20:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28260#M5569</link>
      <description>&lt;P&gt;For some reason Scorecard won't show up w/ this search. sourcetype="EPPWEB" source="/opt/log/&lt;EM&gt;/web_server/info.log" WAT | rex field=_raw "USER (?P&lt;REGISTRAR&gt;[\d+-\w\w]) downloading .&lt;/REGISTRAR&gt;&lt;/EM&gt;/(?&lt;FILENAME&gt;.+?)$" | search filename=Invoice.pdf OR filename=Statement.pdf OR filename=text.txt OR filename=&lt;EM&gt;-&lt;/EM&gt;.pdf NOT filename=&lt;EM&gt;-&lt;/EM&gt;_&lt;EM&gt;.pdf | stats count by registrar, filename | eval Actual=case(filename="Statement.pdf","Billing Statement",filename="Invoice.pdf","Billing Invoice",filename="text.txt","Billing Text",filename="&lt;/EM&gt;-*.pdf","Scorecard")&lt;/FILENAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28260#M5569</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28261#M5570</link>
      <description>&lt;P&gt;and for some reason Comments like to remove my *'s from my searches.  Will post what i mean as an answer...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28261#M5570</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-08-09T20:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28262#M5571</link>
      <description>&lt;P&gt;Hrmm... I don't understand.&lt;/P&gt;

&lt;P&gt;On my summary page, I have a source listed as "WinEventLog:ForwardedEvents" that I'd like to rename to "DC Security Logs"&lt;/P&gt;

&lt;P&gt;Anyone able to help?&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 19:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28262#M5571</guid>
      <dc:creator>ackoch</dc:creator>
      <dc:date>2013-05-23T19:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28263#M5572</link>
      <description>&lt;P&gt;Maybe I miss-understood the question, but this didn't work for me; but the "replace" command worked great. Reference here: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/7077/how-can-i-rename-the-host-names-for-my-chart.html"&gt;http://answers.splunk.com/answers/7077/how-can-i-rename-the-host-names-for-my-chart.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 19:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28263#M5572</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2015-06-03T19:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rename values extracted into field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28264#M5573</link>
      <description>&lt;P&gt;Ya, I didn't get that either... I ended up simply using REX:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;rex field=mount mode=sed "s/space/Splunk DB location/g"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This takes the value "space" in the mount field (this is a df output) and replaces the word "space" with "Splunk DB location".&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 15:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-values-extracted-into-field/m-p/28264#M5573</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-05-30T15:33:24Z</dc:date>
    </item>
  </channel>
</rss>

