Splunk Search

How to find changing serial numbers?

splunk_enjoyer
Explorer

Hello Splunk Enjoyers! I have problem

Information about routers arrives every minute, so 

What I have:  name_of_router and serial_number of client on index = routers

What i want: i want to make alert, if serial_number has changed. 

How should i do this?

@splunk 

 

 

Labels (2)
Tags (3)
0 Karma

splunk_enjoyer
Explorer

@ITWhisperer thanks! its work!

and how can i result serial number and serial_number where serial_number >1? not count

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If you want to keep the events, use eventstats

| eventstats dc(serial_number) as count by name
| where count > 1
0 Karma

splunk_enjoyer
Explorer

@ITWhisperer  its works! 

so how can i result events where serial number had changed, not count

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share some depersonalised events in a code block </>

0 Karma

splunk_enjoyer
Explorer

for example: 

| table name serial_number

result:

name            | serial_number 

cisco1          |   ABC123456

cisco1          |  cdf95959595

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| stats dc(serial_number) as count by name
| where count > 1
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...