Splunk Search

Multiple (same) Keyword search

jameslitt
New Member

Hi

I'm currently trying to use splunk to identify when a log is produced with the same line twice (eg below)

Wed 20 12:06:15 ( 3313) E1: [9] Login: "xx" from 127.0.0.1/james
Wed 20 12:06:15 ( 3313) E1: [9] Login: "xx" from 127.0.0.1/james

However much of the same data is found in thosands of other logs that I'm not interested in.

Is there anyway to search for this particularly? The xx would stay the same however the user at the end would change depending on who it was who logged in.

Thanks!

0 Karma

jameslitt
New Member

Hi

Thanks for your help but it didn't work sadly. I am searching for the username as the search before the pipe, however its bringing everything up as a count of 1.

0 Karma

jameslitt
New Member

Hi

Thanks for your help but it didn't work sadly. I am searching for the username as the search before the pipe, however its bringing everything up as a count of 1.

0 Karma

somesoni2
Revered Legend

Give this a try

your base search to find above type of logs | stats count by _raw | where count > 1
0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...