<?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 create a field alias by event type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272717#M52391</link>
    <description>&lt;P&gt;See my answer.  It works.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 12:52:05 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-06-27T12:52:05Z</dc:date>
    <item>
      <title>Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272712#M52386</link>
      <description>&lt;P&gt;I need to create a field aliase by event type. I saw that it is possible to reference an eventtype from the props.conf:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
I am running Splunk 6.3.1&lt;/P&gt;

&lt;P&gt;I've tried the following without success:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[eventtype::opsec_vpn_bachata]
FIELDALIAS-user_for_opsec_vpn_bachata           = user_dn as user
FIELDALIAS-user_for_opsec_vpn_bachata_cust           = user_dn as user_cust
LOOKUP-action_for_opsec_bachata       = te_action_lookup te_action OUTPUT action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;eventtypes.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[opsec_vpn_bachata]
search = index="opsec-lea-cust" orig=bachata event_type=Login
#tags = vpn authentication*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 14:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272712#M52386</guid>
      <dc:creator>noybin</dc:creator>
      <dc:date>2016-05-30T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272713#M52387</link>
      <description>&lt;P&gt;I would open a support case.  That "feature" is documented only in v6.3.0 and v6.3.1 of props.conf but disappears from v6.3.2 documentation versions and later. I can find no mention of the feature being added or deleted in any of the v6.* release notes. Did this ever work? What is the story?  Only splunk can say.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 17:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272713#M52387</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-30T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272714#M52388</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;

&lt;P&gt;I am opening the case.&lt;BR /&gt;
In the meantime, do you know a way to achieve what I am trying to do?&lt;/P&gt;

&lt;P&gt;Thank's again.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 21:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272714#M52388</guid>
      <dc:creator>noybin</dc:creator>
      <dc:date>2016-05-30T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272715#M52389</link>
      <description>&lt;P&gt;You should be able to do something like this in props.conf instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourcetypeHere]
EVAL-user = if((eventtype=opsec_vpn_bachata)), user_dn, null())
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 00:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272715#M52389</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-31T00:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272716#M52390</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I worked on the very similar problem right now but I had a to match on a mv field.&lt;/P&gt;

&lt;P&gt;So i used something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-action = if(mvfind(eventtype,"usp_nac-state_change")=1, "modified", null())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe it helps someone in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 10:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272716#M52390</guid>
      <dc:creator>pinVie</dc:creator>
      <dc:date>2016-06-27T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272717#M52391</link>
      <description>&lt;P&gt;See my answer.  It works.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272717#M52391</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-27T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a field alias by event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272718#M52392</link>
      <description>&lt;P&gt;This shouldn't work, because the calculated fields are made well before the typer even runs.&lt;BR /&gt;&lt;BR /&gt;
Typer and thus eventtypes, don't exist until after all the other props.conf stuff is done -- extractions, Aliases, calculated fields and lookups. &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 00:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-create-a-field-alias-by-event-type/m-p/272718#M52392</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2018-02-14T00:26:04Z</dc:date>
    </item>
  </channel>
</rss>

