Splunk Dev

How to gather user bandwidth for specify url?

cmndata1
New Member

Hi all,

Thanks all for spending time to my case.

I would like to list out a table to show the user web browsing log.
For example, what url they will go when they are surfing splunk.com

Table would like to be like that.

Date | Time | User | hostname (this maybe splunk.com) | url | Total SentByte | Total Receive Byte (rcvdbyte)

Do you guys has any idea?

Tags (1)
0 Karma

renjith_nair
Legend

@cmndata1 ,
You might need to provide more details for us to help you better.
What's the source of data ? What kind of events do you have now? Do you have the specified fields in your events?

In general it would be

     index="your index" source="your firewall source" | stats sum(rcvdbyte) as rcvd,sum(sentbyte) as sent by url
     |eval bandwidth=rcvd + sent
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

cmndata1
New Member

@renjith.nair
Thank you so much.
I would like to give you some fields that is useful.

  1. Date (e.g Mar 7)
  2. Time (e.g 14:00:00)
  3. User (e.g Tom_Chan)
  4. hostname (e.g www.google.com)
  5. url
  6. sentbyte (could it transform to MB?)
  7. rcvdbyte (could it transform to MB?)
  8. srcip(user source IP)

index would be fgt_utm
The firewall is sending log to splunk.
For ideal case, i would like to list out how many bandwidth did the user spend on each url.

Thanks!

0 Karma

renjith_nair
Legend

Probably you can start with below and lets know what changes you need. If you may added additional group by clause (Date,srcip etc)

index=fgt_utm "your other filters for sourcetype"
|eval bandwidthMb=((sentByte/1000000)+(rcvdbyte /1000000))
|stats sum(bandwidthMb) as BandwidthUsed by User,url,host
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...