Splunk Search

Linux Equivalent commmand in Splunk

Samiksha1008
Observer

I have below command in Linux -

grep "login?" access.log access.log.1 | grep https | cut -d, -f3 | sed 's/"wafip"://g' | sort -n | uniq -c | sort -nr | head -100

 

I need to find out equivalent Splunk command. 
I know the index and host. 

Can somebody please help me with this?

 

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

can you tell what you want to get from log and give examples with log and output of your onliner?

r. Ismo

0 Karma

Samiksha1008
Observer

Hi @isoutamo 

I want to fetch ip addresses from the logs and display on the splunk. 

Tags (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Source and destination addresses or any other what there could be?

Can you give example of your access.log (anonymised)?

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Explore the Latest Educational Offerings from Splunk [January 2025 Updates]

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...