<?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: Using host tags (or similar) when searching on fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11405#M767</link>
    <description>&lt;P&gt;Seems like this would be a good place to consider using lookup tables. Possibly you could even replace the tags with lookup table entries.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2010 03:07:19 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-04-14T03:07:19Z</dc:date>
    <item>
      <title>Using host tags (or similar) when searching on fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11404#M766</link>
      <description>&lt;P&gt;I have a number of hosts that have a certain tag on them (let's say "sensitive"). I want to look for account lockout events involving these hosts. Normally this would be simple, just using a query like 'eventtype="winaccountlockout" tag="host::sensitive"' - the twist here is that the actual event occurs not on the hosts themselves but rather on the domain controllers. So, i want to search for account lockout events on the domain controllers that involve the hosts i have that are marked as 'sensitive'.&lt;/P&gt;

&lt;P&gt;I was thinking something like 'eventtype="winaccountlockout" Caller_Machine_Name=' where the list is somehow taken from the list of hosts with the "host::sensitive" tag. Is there any way to do that, or solve the problem in another way?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 03:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11404#M766</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2010-04-14T03:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using host tags (or similar) when searching on fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11405#M767</link>
      <description>&lt;P&gt;Seems like this would be a good place to consider using lookup tables. Possibly you could even replace the tags with lookup table entries.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 03:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11405#M767</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-14T03:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using host tags (or similar) when searching on fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11406#M768</link>
      <description>&lt;P&gt;Use a subsearch as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="winaccountlockout" [search tag::host=sensitive | dedup host | rename host as Caller_Machine_Name | fields Caller_Machine_Name  | format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or if you don't want to pass the subsearch results back as the specific field (Caller_Machine_Name) just do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="winaccountlockout" [search tag::host=sensitive | dedup host | fields host | rename host as search]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2010 03:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-host-tags-or-similar-when-searching-on-fields/m-p/11406#M768</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-04-14T03:18:21Z</dc:date>
    </item>
  </channel>
</rss>

