<?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 all indexed data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92901#M19328</link>
    <description>&lt;P&gt;Where is that documented?  I have many sourcetypes starting with a pattern sm_* could I set &lt;BR /&gt;
[(^:::){0}sm_*]&lt;BR /&gt;
fieldalias-myfirst = myFirst AS myLast&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;To apply the fieldalias to all the sourcetypes starting with sm_ ?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:04:49 GMT</pubDate>
    <dc:creator>benoitleroux</dc:creator>
    <dc:date>2020-09-29T08:04:49Z</dc:date>
    <item>
      <title>Field alias for all indexed data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92899#M19326</link>
      <description>&lt;P&gt;I am creating some field aliases that I want to apply to multiple sourcetypes.  I was hoping to do something like this in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype_*]
FIELDALIAS-class = fieldname as alias
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My thought was this would hopefully apply the alias to the sourcetypes that match that pattern.  This didn't appear to work so I resorted to something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...*...]
FIELDALIAS-class = fieldname as alias
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While this works I have two questions.&lt;/P&gt;

&lt;P&gt;Is there a way to specify a pattern for the sourcetype like I was trying to do in the first example?&lt;/P&gt;

&lt;P&gt;What are the performance implications, if any, of the second example, which applies the field alias to all sources?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2010 06:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92899#M19326</guid>
      <dc:creator>christopherutz</dc:creator>
      <dc:date>2010-11-20T06:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias for all indexed data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92900#M19327</link>
      <description>&lt;P&gt;There is. You can use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[(?:::){0}mysourcetype_*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as the sourcetype stanza header.&lt;/P&gt;

&lt;P&gt;Your pattern to match all data could be simpler with any of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::...]

[source::...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But you can also use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[(?:::){0}...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Performance implications are pretty minimal for this.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2010 13:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92900#M19327</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-20T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field alias for all indexed data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92901#M19328</link>
      <description>&lt;P&gt;Where is that documented?  I have many sourcetypes starting with a pattern sm_* could I set &lt;BR /&gt;
[(^:::){0}sm_*]&lt;BR /&gt;
fieldalias-myfirst = myFirst AS myLast&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;To apply the fieldalias to all the sourcetypes starting with sm_ ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-alias-for-all-indexed-data/m-p/92901#M19328</guid>
      <dc:creator>benoitleroux</dc:creator>
      <dc:date>2020-09-29T08:04:49Z</dc:date>
    </item>
  </channel>
</rss>

