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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...