<?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 there any way of taking the field name in an event and using the lookup renaming it to what is found in the looku in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-of-taking-the-field-name-in-an-event-and-using/m-p/612620#M212993</link>
    <description>&lt;P&gt;You don't have. to rename; in fact better avoid renaming in props.conf. &amp;nbsp;The answer is keyword &lt;FONT face="andale mono,times"&gt;AS&lt;/FONT&gt;. &amp;nbsp;Excerpt from&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#lookup" target="_blank" rel="noopener"&gt;lookup&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The required syntax is in &lt;STRONG&gt;bold&lt;/STRONG&gt;.&lt;/P&gt;&lt;STRONG&gt;lookup&lt;/STRONG&gt;&lt;BR /&gt;[local=&amp;lt;bool&amp;gt;] [update=&amp;lt;bool&amp;gt;]&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;lookup-table-name&amp;gt;&lt;/STRONG&gt; ( &amp;lt;lookup-field&amp;gt; [AS &amp;lt;event-field&amp;gt;] )...&lt;BR /&gt;[ OUTPUT | OUTPUTNEW (&amp;lt;lookup-destfield&amp;gt; [AS &amp;lt;event-destfield&amp;gt;] )... ]&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The lookup command can accept multiple lookup and event fields and destfields. For example:&lt;/P&gt;&lt;PRE&gt;...| lookup &amp;lt;lookup-table-name&amp;gt; &amp;lt;lookup-field1&amp;gt; AS &amp;lt;event-field1&amp;gt;, &amp;lt;lookup-field2&amp;gt; AS &amp;lt;event-field2&amp;gt; OUTPUTNEW &amp;lt;lookup-destfield1&amp;gt; AS &amp;lt;event-destfield1&amp;gt;, &amp;lt;lookup-destfield2&amp;gt; AS &amp;lt;event-destfield2&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 09 Sep 2022 17:23:24 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-09-09T17:23:24Z</dc:date>
    <item>
      <title>Is there any way of taking the field name in an event and using the lookup renaming it to what is found in the lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-of-taking-the-field-name-in-an-event-and-using/m-p/612614#M212989</link>
      <description>&lt;P&gt;I'm working with the "Jira Issue Input Add-on" and in Jira we have created custom fields.&amp;nbsp; Splunk ingests issues and the custom field data looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;customfield_10101: SA-1017
customfield_10107: 3
customfield_25402: [ [+]
]
customfield_25426: [ [+]
]
customfield_25427: { [+]
} &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are 1,049 custom fields.&amp;nbsp; I would like to use the names for the custom fields and have created a csv file with this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;customfield_custom_field_number,custom_field_name
customfield_10000,Request participants
...
customfield_27904,Target Date&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to avoid having all the renames in props.conf.&amp;nbsp; Is there any way of taking the field name in an event and using the lookup renaming it to what is found in the lookup?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-of-taking-the-field-name-in-an-event-and-using/m-p/612614#M212989</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2022-09-09T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way of taking the field name in an event and using the lookup renaming it to what is found in the looku</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-of-taking-the-field-name-in-an-event-and-using/m-p/612620#M212993</link>
      <description>&lt;P&gt;You don't have. to rename; in fact better avoid renaming in props.conf. &amp;nbsp;The answer is keyword &lt;FONT face="andale mono,times"&gt;AS&lt;/FONT&gt;. &amp;nbsp;Excerpt from&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#lookup" target="_blank" rel="noopener"&gt;lookup&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The required syntax is in &lt;STRONG&gt;bold&lt;/STRONG&gt;.&lt;/P&gt;&lt;STRONG&gt;lookup&lt;/STRONG&gt;&lt;BR /&gt;[local=&amp;lt;bool&amp;gt;] [update=&amp;lt;bool&amp;gt;]&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;lookup-table-name&amp;gt;&lt;/STRONG&gt; ( &amp;lt;lookup-field&amp;gt; [AS &amp;lt;event-field&amp;gt;] )...&lt;BR /&gt;[ OUTPUT | OUTPUTNEW (&amp;lt;lookup-destfield&amp;gt; [AS &amp;lt;event-destfield&amp;gt;] )... ]&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The lookup command can accept multiple lookup and event fields and destfields. For example:&lt;/P&gt;&lt;PRE&gt;...| lookup &amp;lt;lookup-table-name&amp;gt; &amp;lt;lookup-field1&amp;gt; AS &amp;lt;event-field1&amp;gt;, &amp;lt;lookup-field2&amp;gt; AS &amp;lt;event-field2&amp;gt; OUTPUTNEW &amp;lt;lookup-destfield1&amp;gt; AS &amp;lt;event-destfield1&amp;gt;, &amp;lt;lookup-destfield2&amp;gt; AS &amp;lt;event-destfield2&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 17:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-any-way-of-taking-the-field-name-in-an-event-and-using/m-p/612620#M212993</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-09T17:23:24Z</dc:date>
    </item>
  </channel>
</rss>

