Getting Data In

How to search to get list of URLs/domains in my logs in a particular period?

waJesu
Path Finder

I am new to Splunk and I need help to get a query that lists all the domains that are in my logs (that were accessed from my network or that accessed my network) at any given period or range

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @waJesu,

yes, it's an easy job, having some sample of your data.

Anyway supponing that you have these logs in an index called "your_index" and that the url field is already extracted by the TA you used (and it's called "uri", you should run something like this:

index=your_index
| stats count BY uri

If you don't have the uri field you have to extract it using the rex command, but, to help you I need a sample of your data.

Anyway, I hint to use the Splunk Search Tutorial 

https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/SearchTutorial/WelcometotheSearchTutorial

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @waJesu,

yes, it's an easy job, having some sample of your data.

Anyway supponing that you have these logs in an index called "your_index" and that the url field is already extracted by the TA you used (and it's called "uri", you should run something like this:

index=your_index
| stats count BY uri

If you don't have the uri field you have to extract it using the rex command, but, to help you I need a sample of your data.

Anyway, I hint to use the Splunk Search Tutorial 

https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/SearchTutorial/WelcometotheSearchTutorial

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @waJesu,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...