Splunk Search

How to create below scenario?

abhi04
Communicator

I have below parameter and their values over server_Name:

Parameters Server_Name1 Server_Name2

Now I want to add one more column i.e. Message which will show the message same or nit same based on the Parameter values comparison of different server with a server

Parameter Message Server_Name1 Server_Name2

Tags (1)
0 Karma

pradeepkumarg
Influencer

Append this to your search

| eval message = if(server1=server2,"same","not_same")
0 Karma

abhi04
Communicator

Hi gpradeepkumarreddy,

I have more than 20 servers. So I want to compare each parameter value for every server and if for every server the paramater value is equal then it should display same in the column "Message" beside that parameter.

0 Karma

pradeepkumarg
Influencer

It should work for every server in your table

0 Karma

abhi04
Communicator

Hi gpradeepkumarreddy,

Like this I have other servers as well and I have to display same or not same based on every parameter value i.e. a,b,c for every server.

0 Karma

abhi04
Communicator

Sorry,
I want the below table

Parameter server1 server 2
A
B
................. Same. Not same

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...