<?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 I set hostname without syslog in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51327#M9844</link>
    <description>&lt;P&gt;Working on getting this implemented using a Deployment Server.  The regex needs some work as I have an AB: or CD: situation.  (That shouldn't be a big deal.)  The props.conf and transforms.conf go on the UF, huh, not on the indexer?    $SPLUNK_HOME/etc/apps/jeff/local/{props.conf|transforms.conf}&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2012 22:17:50 GMT</pubDate>
    <dc:creator>I_am_Jeff</dc:creator>
    <dc:date>2012-01-23T22:17:50Z</dc:date>
    <item>
      <title>How do I set hostname without syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51325#M9842</link>
      <description>&lt;P&gt;I have a UF sending logs to my indexer.  The UF receives logs, via syslog, from several other systems.  All my UFs, indexers, and search heads are Splunk 4.2.3 and running Red Hat Linux.  The logs go to a custom index, not main.&lt;/P&gt;

&lt;P&gt;I'd like to extract the &lt;I&gt;hostname&lt;/I&gt; from the events so I can search for host=hostname.  I know the hostname is between AB: and the next colon, and believe I have the regex to do that.  I believe I have to do this on the indexers.&lt;/P&gt;

&lt;PRE&gt; 2012-01-13 16:05:44,528 weblogic:[ExecuteThread: '20' for queue: 'webapp.queue']AB:hostname:1234567:autofoo&lt;/PRE&gt;

&lt;P&gt;I've done this on a standalone implementation where the log is written to a file by syslog, but how do I do it with forwarders, multiple indexers and search heads?  Right now host= the name of the UF box, not the "correct" hostnames.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 22:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51325#M9842</guid>
      <dc:creator>I_am_Jeff</dc:creator>
      <dc:date>2012-01-13T22:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set hostname without syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51326#M9843</link>
      <description>&lt;P&gt;You could perform an index time transform on the host field.&lt;BR /&gt;
Add entrys to props.conf and transforms.conf in the "local" directory for the app on the Universal Forwarder.My regex example is a bit generic, you might want to tighten it up a bit based on the actual patterns in your logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#props.conf
[my_sourcetype]
TRANSFORMS-host = my_sourcetype_host

#transforms.conf
[my_sourcetype_host]
DEST_KEY = MetaData:Host
REGEX = ^.+AB:(\w+):\d+:\w+
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Jan 2012 00:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51326#M9843</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-01-14T00:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set hostname without syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51327#M9844</link>
      <description>&lt;P&gt;Working on getting this implemented using a Deployment Server.  The regex needs some work as I have an AB: or CD: situation.  (That shouldn't be a big deal.)  The props.conf and transforms.conf go on the UF, huh, not on the indexer?    $SPLUNK_HOME/etc/apps/jeff/local/{props.conf|transforms.conf}&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 22:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51327#M9844</guid>
      <dc:creator>I_am_Jeff</dc:creator>
      <dc:date>2012-01-23T22:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set hostname without syslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51328#M9845</link>
      <description>&lt;P&gt;regex = ^.+(?:AB|CD):(\w+):\d+:\w+&lt;/P&gt;

&lt;P&gt;Yep , the files get deployed to the UF.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 22:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-hostname-without-syslog/m-p/51328#M9845</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-01-23T22:39:22Z</dc:date>
    </item>
  </channel>
</rss>

