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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...