<?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: Add an alternative name as an extra index identifier in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157886#M1528</link>
    <description>&lt;P&gt;You can tag your indexes with your codenames, and view them in the field sidebar under tag::index.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2014 19:35:52 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-02-19T19:35:52Z</dc:date>
    <item>
      <title>Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157884#M1526</link>
      <description>&lt;P&gt;In splunk I have a bunch of indexes:&lt;BR /&gt;
&lt;PRE&gt;customer01&lt;BR /&gt;
customer02&lt;BR /&gt;
customer03&lt;BR /&gt;
...&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Outside of splunk (in real life), each customer has a codename:&lt;BR /&gt;
&lt;PRE&gt;customer01 = "alfa"&lt;BR /&gt;
customer02 = "beta"&lt;BR /&gt;
customer03 = "gamma"&lt;BR /&gt;
...&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;What I'm asking for:&lt;BR /&gt;&lt;BR /&gt;
In the left column in Splunk Search I see my usual selected fields; "host", "index", "source", "sourcetype", etc.&lt;BR /&gt;&lt;BR /&gt;
Here I want to add the field "codename".&lt;BR /&gt;&lt;BR /&gt;
By clicking on "index" I see a list of all indexes ("customer01", "customer02", etc).&lt;BR /&gt;&lt;BR /&gt;
Simillarly, I would like to be able to click on "codename" and see list of all codenames ("alfa", "beta", etc) to easily filter out a specific customer without having to know its customer number.&lt;BR /&gt;&lt;BR /&gt;
(some of my users searching through all non-internal indexes don't know which customer has what number, but they know the customer's codename)&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;So is there any way to statically add an anternative name to all incoming data (from my universal forwarders)?&lt;BR /&gt;&lt;BR /&gt;
All events logged to to index "customer01" should be tagged with "alfa", everything to index "customer02" with "beta", and so on.&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;If this tagging/aliasing/whatever is possible to do, I would like to do it in the universal forwarder. If that is not possible I can do it on the indexer.&lt;BR /&gt;&lt;BR /&gt;
...resulting in events looking someting like this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;ntpd[945]: synchronized to 10.10.10.10, stratum 2&lt;BR /&gt;
host=foo  index=customer02  source=/var/log/foo  sourcetype=bar  codename=beta&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;PS: Using lookup-tables seem a bit excessive for this. I simply want to add a static string into the data the easiest way.&lt;/P&gt;

&lt;P&gt;How?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157884#M1526</guid>
      <dc:creator>elof</dc:creator>
      <dc:date>2014-02-19T17:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157885#M1527</link>
      <description>&lt;P&gt;I don't think so this is possible (creating alias at index level). (&lt;A href="http://answers.splunk.com/answers/42071/any-way-to-create-an-alternate-name-or-alias-for-an-index"&gt;http://answers.splunk.com/answers/42071/any-way-to-create-an-alternate-name-or-alias-for-an-index&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Other cumbersome option will be to configure field alias/automatic lookup at sourcetype level.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157885#M1527</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-19T18:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157886#M1528</link>
      <description>&lt;P&gt;You can tag your indexes with your codenames, and view them in the field sidebar under tag::index.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 19:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157886#M1528</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-19T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157887#M1529</link>
      <description>&lt;P&gt;I'm reading the tagging docs but don't fully understand how to do it. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Could I have an example of such a stanza, and in which file it goes?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157887#M1529</guid>
      <dc:creator>elof</dc:creator>
      <dc:date>2014-02-19T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157888#M1530</link>
      <description>&lt;P&gt;It's probably easiest to go through the Splunk web interface. Search for &lt;CODE&gt;index=customer01&lt;/CODE&gt;, expand an event (black triangle to its left), look for the field index, click actions for that field (blue triangle to its right), click tag, enter "alfa" (no quotes) in the box, done.&lt;/P&gt;

&lt;P&gt;That's for Splunk 6, previous versions do the same thing but the steps to get there are a bit different.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157888#M1530</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-19T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157889#M1531</link>
      <description>&lt;P&gt;Here's an example for tags.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[index=_internal]
foo = enabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will add a tag called foo for the index _internal.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157889#M1531</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-19T20:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157890#M1532</link>
      <description>&lt;P&gt;Worked like a charm! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 21:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157890#M1532</guid>
      <dc:creator>elof</dc:creator>
      <dc:date>2014-02-19T21:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157891#M1533</link>
      <description>&lt;P&gt;Whee! Splunk made it even better than my example above. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
It placed my index-tag "beta" right next to the index-name, making everything very intuitive. Great stuff.&lt;/P&gt;

&lt;PRE&gt;ntpd[945]: synchronized to 10.10.10.10, stratum 2
host=foo  index=customer02 beta  source=/var/log/foo  sourcetype=bar&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2014 09:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157891#M1533</guid>
      <dc:creator>elof</dc:creator>
      <dc:date>2014-02-20T09:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add an alternative name as an extra index identifier</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157892#M1534</link>
      <description>&lt;P&gt;Splunk - exceeding expectations where you didn't expect it to &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 10:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Add-an-alternative-name-as-an-extra-index-identifier/m-p/157892#M1534</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-20T10:08:38Z</dc:date>
    </item>
  </channel>
</rss>

