<?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: FIELDALIAS from props.conf is not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503205#M85726</link>
    <description>&lt;P&gt;why add a new "answer" instead of adding to the one you already had?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 12:30:34 GMT</pubDate>
    <dc:creator>wmyersas</dc:creator>
    <dc:date>2019-11-05T12:30:34Z</dc:date>
    <item>
      <title>FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503190#M85711</link>
      <description>&lt;P&gt;Below is my props.conf configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;some-sourcetype&amp;gt;]
FIELDALIAS-0_abc = field1 as field2
FIELDALIAS-pqr = field2 as field3
FIELDALIAS-xyz = field2 as field4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Current behavior:&lt;BR /&gt;
- field1 and field2 are coming from REPORT.&lt;BR /&gt;
- field1 and field2 are being extracted but not field3 and field4.&lt;BR /&gt;
- I'm using Splunk 7.3.1 version.&lt;BR /&gt;
- The FIELDALIAS works based on the lexicographic order of class names. So, 0 comes before p and x in lexicographical order it should correctly alias field3 and field4. This is what I'm expecting.&lt;/P&gt;

&lt;P&gt;Can anyone tell me why it is not working? Is it expected? Is there any doc related to it?&lt;/P&gt;

&lt;P&gt;I've some calculated fields (EVAL) based on field3 and field4, so I cannot extract field3 and field4 using EVAL as all EVAL executed in parallel. Is there any way I can solve the issue.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 10:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503190#M85711</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-19T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503191#M85712</link>
      <description>&lt;P&gt;If you're going to alias &lt;CODE&gt;field1 as field2&lt;/CODE&gt; followed by &lt;CODE&gt;field2 as field3&lt;/CODE&gt;, etc, why not just alias &lt;CODE&gt;field1 as field2&lt;/CODE&gt;, &lt;CODE&gt;field1 as field3&lt;/CODE&gt;, etc?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 19:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503191#M85712</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-10-19T19:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503192#M85713</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you can not do a field alias based on other field aliases. Take a look into the docs, under restrictions: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Searchtimeoperationssequence#Field_aliasing"&gt;Field aliasing&lt;/A&gt;.&lt;BR /&gt;
What might help in your case, is the newer "ASNEW" option for field aliases. See under the props.conf specficiation.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 17:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503192#M85713</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-10-20T17:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503193#M85714</link>
      <description>&lt;P&gt;Transitive aliasing is not allowed.  You have to do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-0_abc = field1 as field2
FIELDALIAS-pqr = field1 as field3
FIELDALIAS-xyz = field1 as field4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can use a &lt;CODE&gt;calculated field&lt;/CODE&gt; like this (but this is a last resort as there are performance downsides to it):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-0_abc = field1 as field2
EVAL-field3 = coalesce(field3,  field2)
EVAL-field4 = coalesce(field4, field2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Oct 2019 19:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503193#M85714</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-20T19:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503194#M85715</link>
      <description>&lt;P&gt;I agree with your solution @wmyersas. Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 04:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503194#M85715</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-21T04:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503195#M85716</link>
      <description>&lt;P&gt;I agree with the solution @woodcock.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 04:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503195#M85716</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-21T04:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503196#M85717</link>
      <description>&lt;P&gt;Then come back here and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503196#M85717</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-21T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503197#M85718</link>
      <description>&lt;P&gt;I got a solution to resolve my issue from @woodcock and @wmyersas.&lt;BR /&gt;
Though I had a question where why this is not working which you have answered.&lt;BR /&gt;
&lt;CODE&gt;you can not do a field alias based on other field aliases.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I don't understand then why FIELDALIAS has &lt;CODE&gt;class&lt;/CODE&gt;  name in it and why it executes in lexicographical order?&lt;BR /&gt;
@skalliger, @woodcock, @wmyersas - In case you can answer this question?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503197#M85718</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-21T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503198#M85719</link>
      <description>&lt;P&gt;I still don't understand then why FIELDALIAS has  &lt;CODE&gt;&amp;lt;class&amp;gt;&lt;/CODE&gt; name in it and why it executes in lexicographical order?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503198#M85719</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-21T14:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503199#M85720</link>
      <description>&lt;P&gt;Splunk &lt;CODE&gt;Knowledge Objects&lt;/CODE&gt; exist within user-defined, arbitrary, and unique instance-global namespaces (like AWS S3 buckets).  One benefit of this is that for some KOs it allows Admins to control the order that they execute.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503199#M85720</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-21T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503200#M85721</link>
      <description>&lt;P&gt;I agree with that. Do we get any benefit if they execute in order rather than in parallel? Specifically in the case of FIELDALIAS, because we cannot use field created by any other FIELDALIAS just like EVAL but in case of EVAL we get benefit on another side where we'll improve in speed because EVAL executes in parallel.&lt;BR /&gt;
In that case if FIELDALIAS executes in order what benefit we are receiving?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 05:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503200#M85721</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-10-25T05:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503201#M85722</link>
      <description>&lt;P&gt;It executes in lexicographical order because it has to execute in &lt;EM&gt;some&lt;/EM&gt; order - and lexicographical is used everywhere else.&lt;/P&gt;

&lt;P&gt;Also, there are some cases wehre you might want to alias different source fields to a new alias (eg they only show up in some (but not all) events).&lt;/P&gt;

&lt;P&gt;For example, I had source data which sometimes had a &lt;CODE&gt;username&lt;/CODE&gt; sometimes had a &lt;CODE&gt;user&lt;/CODE&gt; and sometimes had a &lt;CODE&gt;domainname&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;But I wanted them all to be CIM-compliant, so I aliased &lt;CODE&gt;username&lt;/CODE&gt; and &lt;CODE&gt;domainname&lt;/CODE&gt; to &lt;CODE&gt;user&lt;/CODE&gt; (of course, &lt;CODE&gt;user&lt;/CODE&gt; didn't need to be aliased).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503201#M85722</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-04T20:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503202#M85723</link>
      <description>&lt;P&gt;This is a good question.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 03:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503202#M85723</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T03:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503203#M85724</link>
      <description>&lt;P&gt;That is a good question.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 03:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503203#M85724</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T03:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503204#M85725</link>
      <description>&lt;P&gt;There's also the stacking that can happen - you may have private (or app-local) &lt;CODE&gt;FIELDALIAS&lt;/CODE&gt; statements that override the basic &lt;CODE&gt;FIELDALIAS&lt;/CODE&gt; where &lt;EM&gt;your&lt;/EM&gt; observed search behavior is different from &lt;EM&gt;mine&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503204#M85725</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-05T12:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503205#M85726</link>
      <description>&lt;P&gt;why add a new "answer" instead of adding to the one you already had?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503205#M85726</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-05T12:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503206#M85727</link>
      <description>&lt;P&gt;Sometimes I don't realize that I have already answered.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503206#M85727</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503207#M85728</link>
      <description>&lt;P&gt;I agree. So, what I understand is I can write below field alias.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-a = username as user
FIELDALIAS-b = domainname as user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If "username" and "domainname" both have values then the final value of the "user" would be the same as "domainname" as it is overrides the value from "username" (as it has b which comes after a). If "domainname" is not available then the "user" value will be the same as "username".&lt;/P&gt;

&lt;P&gt;Is this right?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 16:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503207#M85728</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-11-10T16:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503208#M85729</link>
      <description>&lt;P&gt;Great point!!!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 18:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503208#M85729</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-10T18:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: FIELDALIAS from props.conf is not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503209#M85730</link>
      <description>&lt;P&gt;That is exactly correct&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 23:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FIELDALIAS-from-props-conf-is-not-working/m-p/503209#M85730</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-10T23:57:47Z</dc:date>
    </item>
  </channel>
</rss>

