Please help me to get youtube URL report. Which i am getting attached image. Kindly help
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Here are a couple of Youtube queries I have created
This one lists all YouTube Videos played and embeds a hyperlink to take you straight to the video:
select `user` AS "Username", filename as "Name of Video", concat( '<a href="' , '[link]https://', [/link] hostname, url, '">', concat(hostname, substring(url from 1 for 20), '</a>')) AS "YouTube URL"
from $log
where app = 'YouTube_Video.Access'
and filename is not null
This one shows the top watched Youtube videos by play count:
select filename AS "YouTube Video", count (filename) as "Number of Times Watched"
from $log
where app = 'YouTube_Video.Access'
and filename is not null
group by filename
order by "Number of Times Watched" desc;
As Youtube is https now, you need SSL Inspection enabled to be able to log the video name.
v5.2.11,build754 (GA) / v5.4.3-build1187 170518 (GA)
v5.2.11,build754 (GA) / v5.4.3-build1187 170518 (GA)
In order to check correct url info, we have to query webfilter log
1. enable webfilter profile on FGT, change "Allow" to "Monitor"
2. log type: webfilter
select coalesce(nullifna(`user`), nullifna(`unauthuser`), ipstr(`srcip`)) as user_src, group, (lower(service) || '://' || hostname || url) as website, count(*) as total_num, from_dtime(max(dtime)) as last_seen from $log where $filter and lower(hostname) like '%youtube%' group by user_src, group, website order by total_num desc
regards,
hz
Hello Huai,
Thanks for the dataset,
let me fix a small typo to avoid error message:
hzhao_FTNT wrote:select coalesce(nullifna(`user`), nullifna(`unauthuser`), ipstr(`srcip`)) as user_src, group, (lower(service) || '://' || hostname || url) as website, count(*) as total_num, from_dtime(max(dtime)) as last_seen from $log where $filter and lower(hostname) like '%youtube%' group by user_src, group, website order by total_num desc
As group does exist in the table, I'm replacing
select coalesce(nullifna(`user`), nullifna(`unauthuser`), ipstr(`srcip`)) as user_src, nullifna(`group`) as usergroup, (lower(service) || '://' || hostname || url) as website, count(*) as total_num, from_dtime(max(dtime)) as last_seen from $log where $filter and lower(hostname) like '%youtube%' group by user_src, usergroup, website order by total_num desc
Thanks for your help
regards
/ Abel
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1517 | |
1013 | |
749 | |
443 | |
209 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.