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
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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...