<?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 How do you assign host value for ActiveDirectory source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-assign-host-value-for-ActiveDirectory-source/m-p/62977#M12641</link>
    <description>&lt;P&gt;I have the 4.2 universal forwarder installed on an Active Directory DC, but have been unable to assign the fqdn as the host value for ActiveDirectory (splunk-admon) events. Setting host=fqdn in inputs.conf sets the correct host value for WinEventLog and WMI events, but not for ActiveDirectory. Tried setting host=fdqn in admon.conf but did not have any effect. Also tried the following transform but still had no effect...&lt;/P&gt;

&lt;P&gt;$splunkhome/etc/system/local/props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ActiveDirectory] 
TRANSFORMS-rowandc = rowandc-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$splunkhome/etc/system/local/transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rowandc-host]
DEST_KEY = MetaData:Host
REGEX = dcName=(\w*\.rowanads\.rowan\.edu)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample data...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/18/2011 11:25:50.073
dcName=ads4.rowanads.rowan.edu
admonEventType=Deleted
objectGuid=removed
distinguishedName=removed
host=ADS4      sourcetype=ActiveDirectory      source=ActiveDirectory
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Mar 2011 23:11:04 GMT</pubDate>
    <dc:creator>Jason_1</dc:creator>
    <dc:date>2011-03-18T23:11:04Z</dc:date>
    <item>
      <title>How do you assign host value for ActiveDirectory source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-assign-host-value-for-ActiveDirectory-source/m-p/62977#M12641</link>
      <description>&lt;P&gt;I have the 4.2 universal forwarder installed on an Active Directory DC, but have been unable to assign the fqdn as the host value for ActiveDirectory (splunk-admon) events. Setting host=fqdn in inputs.conf sets the correct host value for WinEventLog and WMI events, but not for ActiveDirectory. Tried setting host=fdqn in admon.conf but did not have any effect. Also tried the following transform but still had no effect...&lt;/P&gt;

&lt;P&gt;$splunkhome/etc/system/local/props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ActiveDirectory] 
TRANSFORMS-rowandc = rowandc-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;$splunkhome/etc/system/local/transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rowandc-host]
DEST_KEY = MetaData:Host
REGEX = dcName=(\w*\.rowanads\.rowan\.edu)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample data...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/18/2011 11:25:50.073
dcName=ads4.rowanads.rowan.edu
admonEventType=Deleted
objectGuid=removed
distinguishedName=removed
host=ADS4      sourcetype=ActiveDirectory      source=ActiveDirectory
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2011 23:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-assign-host-value-for-ActiveDirectory-source/m-p/62977#M12641</guid>
      <dc:creator>Jason_1</dc:creator>
      <dc:date>2011-03-18T23:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you assign host value for ActiveDirectory source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-assign-host-value-for-ActiveDirectory-source/m-p/62978#M12642</link>
      <description>&lt;P&gt;That should work but you will need to restart every Indexer first (which you probably did not do).  I would also use something like this instead of what you are using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = dcName=(.*)[\r\n]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2015 17:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-assign-host-value-for-ActiveDirectory-source/m-p/62978#M12642</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T17:10:34Z</dc:date>
    </item>
  </channel>
</rss>

