<?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 by sourcetype not working in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561020#M5112</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/57946"&gt;@torowa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try the below solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/data/props/fieldaliases 
| rename title as Name, value as "Field aliases", eai:acl.app as App, eai:acl.owner as Owner, stanza as "Source Type"
| table Name "Field aliases" App Owner "Source Type"&lt;/LI-CODE&gt;&lt;P&gt;I observed that even if we mention source type the fields are coming. Additionally, the pattern in the Name field is &amp;lt;&lt;SPAN&gt;stype&amp;gt;: FIELDALIAS-&amp;lt;class&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you try the above solution?&lt;/P&gt;&lt;P&gt;If it's still not working can you check whether the mentioned configurations in your props are working?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 12:54:17 GMT</pubDate>
    <dc:creator>jhanvidattani</dc:creator>
    <dc:date>2021-07-27T12:54:17Z</dc:date>
    <item>
      <title>Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/558643#M5096</link>
      <description>&lt;P&gt;Hi Splunkers.&lt;BR /&gt;&lt;SPAN&gt;I'm trying to troubleshoot an issue with field aliases based on a particular sourcetype.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1) Field alias was configured in SplunkWeb as the follows (modified for privacy reasons):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Name_Mode:Type_of_access:SECURED : FIELDALIAS-Mode_extract_for_web&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;Name_Mode:Type_of_access:SECURED&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is the sourcetype.)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uri = uri_path.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) If I run the following, it lists the alias definition correctly:&lt;BR /&gt;&lt;SPAN&gt;| rest /services/data/props/fieldaliases&lt;BR /&gt;&lt;/SPAN&gt;| rename title as Name, value as "Field aliases", eai:acl.app as App, eai:acl.owner as Owner&lt;BR /&gt;| table Name "Field aliases" App Owner&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;When searching specifically for that sourcetype, the events are returned but without the field alias.&lt;BR /&gt;The sourcetype has multiple colons in the name.&amp;nbsp; I can't see that causing the alias to fail as there are other field aliases used against similarly-named sourcetypes (in other apps) that are working without issue.&lt;/P&gt;&lt;P&gt;It is running on a SH cluster.&amp;nbsp; Splunk is v8.02&lt;BR /&gt;Permissions for alias is "All apps" with read for Everyone.&lt;/P&gt;&lt;P&gt;"uri" field is an inline field extraction.&lt;BR /&gt;&lt;SPAN&gt;Search-time operation order puts inline field extraction (1st) ahead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;field aliasing operations (4th). (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Knowledge/Searchtimeoperationssequence" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Knowledge/Searchtimeoperationssequence&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;... so I don't see this being a &lt;SPAN&gt;Search-time operation issue&lt;/SPAN&gt;.&amp;nbsp; Any ideas where else to check?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Apologies if the above is not clear due to the obfuscation.&lt;BR /&gt;Let me know if you need clarification.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 06:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/558643#M5096</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2021-07-08T06:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/558773#M5097</link>
      <description>&lt;P&gt;Upon further digging, this seems to be related to when using the sourcetype in the definition.&lt;/P&gt;&lt;P&gt;If I set the definition up using a host name, the field alias works.&lt;BR /&gt;If it is set up using the sourcetype, the field alias doesn't get set.&lt;BR /&gt;&lt;BR /&gt;If I copy the sourcetype from the definition and manually search on it, I get events of that sourcetype.&amp;nbsp; i.e. The sourcetype as used in the definition is correct.&lt;/P&gt;&lt;P&gt;Also, as the sourcetype is one of the default fields, I wouldn't expect a definition that uses a sourcetype to be affected by the sequence of search-time operations.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 01:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/558773#M5097</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2021-07-09T01:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561020#M5112</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/57946"&gt;@torowa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try the below solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/data/props/fieldaliases 
| rename title as Name, value as "Field aliases", eai:acl.app as App, eai:acl.owner as Owner, stanza as "Source Type"
| table Name "Field aliases" App Owner "Source Type"&lt;/LI-CODE&gt;&lt;P&gt;I observed that even if we mention source type the fields are coming. Additionally, the pattern in the Name field is &amp;lt;&lt;SPAN&gt;stype&amp;gt;: FIELDALIAS-&amp;lt;class&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Can you try the above solution?&lt;/P&gt;&lt;P&gt;If it's still not working can you check whether the mentioned configurations in your props are working?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 12:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561020#M5112</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-07-27T12:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561280#M7340</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236777"&gt;@jhanvidattani&lt;/a&gt;, formatting was due to a transcription error as had to redact content from the definition names.&lt;/P&gt;&lt;P&gt;This seems to have sorted itself out (by itself unfortunately) after a few days.&lt;BR /&gt;&lt;SPAN&gt;Perhaps this was related to a SH cluster member not having fully received the KO bundle.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When testing on different cluster members accessed directly, it works fine.&lt;BR /&gt;When trying on a particular cluster member directly the issue occurs again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It has subsequently started working on the recalcitrant server.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 03:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561280#M7340</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2021-07-29T03:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561285#M7396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@towara,&lt;/P&gt;&lt;P&gt;This kind of issue generally happens because of the sequence of search time operation shown here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Knowledge/Searchtimeoperationssequence#Search-time_operation_sequence" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Knowledge/Searchtimeoperationssequence#Search-time_operation_sequence&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The aliasing operation happens 4th, and therefore cannot be applied on calculated fields, lookups fields, eventtypes or tags.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please confirm that the field you are trying to alias (uri_path) created before the aliasing happens in the sequence ?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 05:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561285#M7396</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2021-07-29T05:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Field Alias by sourcetype not working</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561286#M7402</link>
      <description>&lt;P&gt;&lt;SPAN&gt;While I understand the importance of search time operations, I don't believe this to be the cause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The field aliases were operating against in-line extracted fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;eSearch-time operation order puts inline field extraction (1st) ahead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;field aliasing operations (4th).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 05:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Alias-by-sourcetype-not-working/m-p/561286#M7402</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2021-07-29T05:51:50Z</dc:date>
    </item>
  </channel>
</rss>

