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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...