All Apps and Add-ons

How to monitor proxy uploaded data split by users, greater than say 1GB Splunk for Blue Coat ProxySG?

SGun
Explorer

Monitoring proxy uploaded data split by users, greater than say 1GB in the last 24hrs and then Alert.

Not sure how to do this.

index="proxy_logs" time="*"  filter_results=OBSERVED protocol="*" url="*"  upload="*" user="*" | 
0 Karma
1 Solution

renjith_nair
Legend

Hi @SGun,

Try this,

index="proxy_logs"  <rest of your search> | stats sum(your data size  field/1073741824 ) as total_gb by user | where total_gb > "your threshold value"

Please provide your field name of data size and also unit if the above does not work

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

SGun
Explorer

| stats sum(upload) as total by user | where total > 10000000

Works great.

So if I wanted to add this output to a table, with other information such as date, time, user, url, upload?

0 Karma

renjith_nair
Legend

If you would like to split by other fields , then you can add them to the by clause e.g. | stats sum(upload) as total by user,upload . However its not an aggregation over user but all other fields in by clause

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

renjith_nair
Legend

Hi @SGun,

Try this,

index="proxy_logs"  <rest of your search> | stats sum(your data size  field/1073741824 ) as total_gb by user | where total_gb > "your threshold value"

Please provide your field name of data size and also unit if the above does not work

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

SGun
Explorer

| stats sum(upload) as total by userID | where total > 10000000

Works great.

So if I wanted to add this output to a table, with other information such as date, time, user, url, upload?

0 Karma

renjith_nair
Legend

If you would like to split by other fields , then you can add them to the by clause e.g. | stats sum(upload) as total by user,upload . However its not an aggregation over user but all other fields in by clause

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

SGun
Explorer

index="proxy_logs" filter_results=OBSERVED | stats sum(upload) as total by date,time,userID,url | where total > 10000000

Thanks again for your help.

0 Karma

SGun
Explorer

index="proxy_logs" filter_results=OBSERVED | eval MB=upload/(1024*1024) | stats sum(upload) as total by date,userID,url,MB upload | where total > 10000000

does the conversion to MB - still need to aggregate the user upload

0 Karma

SGun
Explorer

I also need to figure out how to aggregate the data or just show the highest upload by the user

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...