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
Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...