Refine your search:

I am running Splunk Server and Universal Forwarder 4.2.1 98164. The config file "/opt/splunkforwarder/etc/system/local/server.conf" has the entry "serverName = nascpmpa1dr". This seems to work as the results of "/opt/splunkforwarder/bin/splunk show servername" give the proper result, "Server name: nascpmpa1dr". But my Indexer sees the server as "nascpmpa1", which in what my linux servers $HOSTNAME is set to. DNS resolves "nascpmpa1dr". I have this setup with several linux servers using Splunk Light Forwarder 4.1 and they all give the hostname with the DR appended. Why does the Indexer file the syslog and warn logs under host="nascpmpa1" and not "nascpmpa1dr"? Why act differently between SLF 4.1 and UF 4.2.1?

asked 05 May '11, 10:51

arthurhamm's gravatar image

arthurhamm
111
accept rate: 0%

edited 05 May '11, 13:47

ftk's gravatar image

ftk ♦
6.2k419


2 Answers:

The universal forwarder does behave differently in 4.2.0 and 4.2.1 than a Light/Heavy Forwarder did in 4.1.x (SPL-38141, check the Known Issues). Work is under way to resolve this issue.

link

answered 05 May '11, 13:47

ftk's gravatar image

ftk ♦
6.2k419
accept rate: 37%

All my hostnames are in lowercase. And the clipping of the "dr" off the names makes me think it not this bug.

(06 May '11, 09:59) arthurhamm

The title of the bug does not reflect every facet of the issue.

(06 May '11, 10:32) ftk ♦

Universal Forwarder 4.2.1 98164 release notes lists SPL-38141 as a resolved issue.

http://www.splunk.com/base/Documentation/4.2.1/ReleaseNotes/4.2.1

(09 May '11, 10:40) arthurhamm

That's funny as it is listed under the known issues (data inputs) as well. No idea which one is correct.

(09 May '11, 12:26) ftk ♦

The entry in server.conf is used only for identifying indexers when Splunk distributed searches is used. It has nothing to do with how data is marked with a host name when it is indexed. (It is used to populate the splunk_server field in results, but this is added at search time by the distributed indexer returning results.)

It has no relationship or effect on forwarding or indexing of data. For that you need to look at the host setting for an input in inputs.conf. If this is unspecified for an input, then 4.2.x uses the output of the hostname command. If unspecified, then 4.1.x and down uses the IP address, but 4.1.x sets a local default on first-time run to the results of the hostname command at the time of first-time run. You can use btool to see if host is set for a particular input.


Update: Additionally, the default value for serverName in server.conf (remember, it is not relevant except for distributed search internal to Splunk) uses the value of either $HOSTNAME or $HOSTNAME-$USER depending on version, which may not be the same as the results of hostname.

link

answered 05 May '11, 16:46

gkanapathy's gravatar image

gkanapathy ♦
26.3k1622
accept rate: 42%

edited 06 May '11, 10:30

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×38
×15
×10
×7

Asked: 05 May '11, 10:51

Seen: 727 times

Last updated: 09 May '11, 12:26

Copyright © 2005-2012 Splunk, Inc. All rights reserved.