<?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: How do you tag a field based on a condition? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442102#M3924</link>
    <description>&lt;P&gt;Create a lookup file with all of the administrators IDs in it and a second field called &lt;CODE&gt;usertype&lt;/CODE&gt; with every row having a value of &lt;CODE&gt;admin&lt;/CODE&gt;.  Then create an automatic lookup that will create a field called &lt;CODE&gt;usertype&lt;/CODE&gt; with a value of &lt;CODE&gt;admin&lt;/CODE&gt; for any user who is an admin.  Then create a &lt;CODE&gt;tag&lt;/CODE&gt; for &lt;CODE&gt;usertype=admin&lt;/CODE&gt; and give it the value of &lt;CODE&gt;admin&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Feb 2019 04:19:41 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-02-02T04:19:41Z</dc:date>
    <item>
      <title>How do you tag a field based on a condition?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442101#M3923</link>
      <description>&lt;P&gt;Good day everyone,&lt;/P&gt;

&lt;P&gt;I was wondering if there is a way to tag certain fields based on the value of that specific field.&lt;/P&gt;

&lt;P&gt;As an example, we have field "UserID", which includes all users (including admins). However, I want to tag the UserID field as admin if the user is an administrator.&lt;/P&gt;

&lt;P&gt;is this possible?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 23:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442101#M3923</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2019-02-01T23:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a field based on a condition?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442102#M3924</link>
      <description>&lt;P&gt;Create a lookup file with all of the administrators IDs in it and a second field called &lt;CODE&gt;usertype&lt;/CODE&gt; with every row having a value of &lt;CODE&gt;admin&lt;/CODE&gt;.  Then create an automatic lookup that will create a field called &lt;CODE&gt;usertype&lt;/CODE&gt; with a value of &lt;CODE&gt;admin&lt;/CODE&gt; for any user who is an admin.  Then create a &lt;CODE&gt;tag&lt;/CODE&gt; for &lt;CODE&gt;usertype=admin&lt;/CODE&gt; and give it the value of &lt;CODE&gt;admin&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 04:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442102#M3924</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-02T04:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a field based on a condition?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442103#M3925</link>
      <description>&lt;P&gt;Thanks for the answer Woodcock, One question though, if i create an automatic lookup then this tag will only work for one source type. am i wrong?&lt;BR /&gt;
what will happen if i use a search like the following in the "field value pair" when creating an index&lt;/P&gt;

&lt;P&gt;index=adsecurity AND UserID=* AND Display_Name="&lt;EM&gt;admin&lt;/EM&gt;"|lookup test userid as userid output Display_Name as Display_Name&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442103#M3925</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2020-09-29T23:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a field based on a condition?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442104#M3926</link>
      <description>&lt;P&gt;There is a hack to apply an automatic lookup to use wildcards. See here:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/8505/is-it-possible-to-use-wildcards-in-sourcetype-props-conf-stanzas.html"&gt;https://answers.splunk.com/answers/8505/is-it-possible-to-use-wildcards-in-sourcetype-props-conf-stanzas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 15:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-do-you-tag-a-field-based-on-a-condition/m-p/442104#M3926</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-02T15:23:05Z</dc:date>
    </item>
  </channel>
</rss>

