Getting Data In

duplicate hostnames with different cases

sneuser
New Member

Hello,

How could we avoid duplicate reporting of the same host?

Hosts (≥ 3)
host Count Last Update
1 Testserver01 2,991,872 01/31/2012 15:23:06
2 TESTSERVER01 2,197,558 01/31/2012 15:23:09

cat /opt/splunk/lib/splunk/defaultdb/db/Hosts.data
0 3 5314043 1319567912 1328020085 1328020085
1 host::Testserver01 2991880 1319567912 1328020026 1328020026
2 host::TESTSERVER01 2197672 1322490713 1328020085 1328020085

Steffen

0 Karma

lpolo
Motivator

You can use the upper() function. This function takes one string argument and returns the uppercase version. The lower() function also exists for returning the lowercase version.

Example:

|eval host=upper(host)

More information:
http://docs.splunk.com/Documentation/Splunk/4.3/SearchReference/CommonEvalFunctions

Cheers,
Lp

sneuser
New Member

In which config file you need to write this statement to make this permanent?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...