<?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: field alias for 2 fields in same sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194703#M38752</link>
    <description>&lt;P&gt;Hi , I've a same scenario where the events has both fileds jUser and cUser. So , how can I use the alias name?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2016 18:48:15 GMT</pubDate>
    <dc:creator>Kukkadapu</dc:creator>
    <dc:date>2016-01-25T18:48:15Z</dc:date>
    <item>
      <title>field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194700#M38749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to take 2 "user" fields that comes from the same sourcetype and give them the same alias.  I have 2 fields, "cUser" and jUser. I want them both to point to "remote_user"&lt;/P&gt;

&lt;P&gt;The problem is that only one of these works (c_user). My props.conf includes the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[VPN]
FIELDALIAS-extractUser = jUser AS remote_user
FIELDALIAS-extractUser = cUser AS remote_user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jun 2014 16:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194700#M38749</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-06-10T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194701#M38750</link>
      <description>&lt;P&gt;You gave both aliases the same name! Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[VPN]
FIELDALIAS-extractUser1 = jUser AS remote_user
FIELDALIAS-extractUser2 = cUser AS remote_user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although that may not work either, depending on the actual data in the events. Do you have any events that have both fields &lt;CODE&gt;jUser&lt;/CODE&gt; and &lt;CODE&gt;cUser&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 17:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194701#M38750</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-10T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194702#M38751</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I actually tried this right after I posted it. I was confused by the use of "class", thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 17:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194702#M38751</guid>
      <dc:creator>bcusick</dc:creator>
      <dc:date>2014-06-10T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194703#M38752</link>
      <description>&lt;P&gt;Hi , I've a same scenario where the events has both fileds jUser and cUser. So , how can I use the alias name?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 18:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194703#M38752</guid>
      <dc:creator>Kukkadapu</dc:creator>
      <dc:date>2016-01-25T18:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194704#M38753</link>
      <description>&lt;P&gt;Is it possible this method no longer works?&lt;BR /&gt;
I tried this one, but Spunk always fills up the field remote_user with the last entry appeared - in the above example with the values of cUser.&lt;BR /&gt;
This happens even if I use different class-definitions.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 13:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194704#M38753</guid>
      <dc:creator>christian_l</dc:creator>
      <dc:date>2016-05-19T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194705#M38754</link>
      <description>&lt;P&gt;Same problem here, I defined different names but it does not work as expected&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 12:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194705#M38754</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2016-06-07T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194706#M38755</link>
      <description>&lt;P&gt;Does not work for me either ... does anyone have an idea about how to solve this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 15:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194706#M38755</guid>
      <dc:creator>rgaube</dc:creator>
      <dc:date>2017-05-12T15:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194707#M38756</link>
      <description>&lt;P&gt;Anyone every resolve this?? I have the same problem. &lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194707#M38756</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2018-02-09T15:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194708#M38757</link>
      <description>&lt;P&gt;We want to FIELDALIAS srcip and destip to ip (both, at the same time) - so ip would become a multi-value field, is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194708#M38757</guid>
      <dc:creator>dolxor</dc:creator>
      <dc:date>2018-06-05T11:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: field alias for 2 fields in same sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194709#M38758</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;What you are trying to achieve could be done using an EVAL  rather than a FIELDALIAS in your props.conf&lt;/P&gt;

&lt;P&gt;[mysourcetype]&lt;BR /&gt;
EVAL-ip=mvappend(src,dest)&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Darren&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/field-alias-for-2-fields-in-same-sourcetype/m-p/194709#M38758</guid>
      <dc:creator>ddance_splunk</dc:creator>
      <dc:date>2018-06-26T12:13:18Z</dc:date>
    </item>
  </channel>
</rss>

