Splunk Enterprise

How to count the number of file transferred within one month by an user id using particular file and display?

supriyagaw08
Explorer

how to count the number of file transferred within one month by an user id using particular file and display events in below manner:
username filename count_of_files_tras_in1day count_of_files_trasferred_in_1week count_of_files_trasferred_in_1mon

Labels (2)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

What data do you have in your events?

0 Karma

supriyagaw08
Explorer

I have file transfers events , I have got the first part of code but filtering it and displaying it based upon the count of file transfers in one day, one week and one month is where i am facing issue.

 

|bucket span=1mon _time
| eval day=strftime(_time,"%Y-%m-%d")
| eval week=strftime(_time, "%V")
| eval w_month=strftime(_time, "%d/%m")
|stats count(BASE_filename) as oneday by day | stats count(BASE_filename) as oneweek by week|stats count(BASE_filename) as onemonth by w_month

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...