Skip to main content
sreeram
New Member
March 19, 2018
Solved

create custom report for youtube

  • March 19, 2018
  • 13 replies
  • 20644 views

Please help me to get youtube URL report. Which i am getting attached image. Kindly help

    Best answer by RobertReynolds

    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.

    13 replies

    RobertReynolds
    New Member
    March 19, 2018

    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.

    ShawnZA
    New Member
    April 3, 2018

    What versions of firmware are you running these queries on?

    Also get "No Data" when running it, would love to use them

    Mine is on:

    Fortigate 300D 5.4.4

    FAZ 5.6.2

     

    sreeram
    sreeramAuthor
    New Member
    March 20, 2018

    Thanks to reply. I tried to apply this query. But not working.It's showing no data. Could you help me to enable ssl inspection in fortigate. i am using fortigate 300c

    RobertReynolds
    New Member
    March 20, 2018
    sreeram
    sreeramAuthor
    New Member
    March 20, 2018

    After enable the SSL/SSH Inspection, same page only came now (no data). 

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!