<?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 display a custom field with underscore from search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382550#M169618</link>
    <description>&lt;P&gt;You can rename the field to not start with an underscore, and then Splunk will display it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _msg="Hello World"
| rename "_msg" AS "msg"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have many fields that start with underscores, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _msg="Hello World"
| rename "_*" AS "*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;Note that this will also display and convert other internal fields, like _time.&lt;/EM&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 16:25:27 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2018-05-04T16:25:27Z</dc:date>
    <item>
      <title>How to display a custom field with underscore from search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382549#M169617</link>
      <description>&lt;P&gt;For instance, how to show "_msg" from the search result?  Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _msg="Hello World"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 May 2018 16:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382549#M169617</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2018-05-04T16:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a custom field with underscore from search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382550#M169618</link>
      <description>&lt;P&gt;You can rename the field to not start with an underscore, and then Splunk will display it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _msg="Hello World"
| rename "_msg" AS "msg"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have many fields that start with underscores, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _msg="Hello World"
| rename "_*" AS "*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;Note that this will also display and convert other internal fields, like _time.&lt;/EM&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 16:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382550#M169618</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-05-04T16:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a custom field with underscore from search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382551#M169619</link>
      <description>&lt;P&gt;If you are wondering why you need to rename them at all, it's because Splunk uses underscores to identify internal fields:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Internalfield"&gt;https://docs.splunk.com/Splexicon:Internalfield&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/7.0.0/Knowledge/Usedefaultfields"&gt;http://docs.splunk.com/Documentation/SplunkCloud/7.0.0/Knowledge/Usedefaultfields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 21:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-a-custom-field-with-underscore-from-search-result/m-p/382551#M169619</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-05-04T21:08:29Z</dc:date>
    </item>
  </channel>
</rss>

