Skip to main content
Keta1969
New Member
Jan 4, 2017 3:44 PM UTC
Question

Help Customizing a dataset

Hi,

 

Using the web-Detailed-Website-Browsing-Log filter I can look for devices accessing Pornographic sites. However it does not list the source device's IP so I can only see it is happening.

 

Can somebody please amend the code so I can added it to the report.

 

Regards

 

Keith

    2 replies

    hzhao_FTNT
    Staff
    Staff
    Jan 4, 2017 6:08 PM UTC

    Hi, you can just add srcip into dataset:

    select from_dtime(dtime) as timestamp, srcip, catdesc, hostname as website, status, sum(bandwidth) as bandwidth from ###(select dtime, srcip, catdesc, hostname, cast(utmaction as text) as status, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log-traffic where $filter and hostname is not null and logid_to_int(logid) not in (4, 7, 14) and (countweb>0 or ((logver is null or logver<52) and (hostname is not null or utmevent in ('webfilter', 'banned-word', 'web-content', 'command-block', 'script-filter')))) group by dtime, srcip, catdesc, hostname, utmaction order by dtime desc)### t group by dtime, srcip, catdesc, website, status order by dtime desc

     

    regards,

    hz

    Translate
    Keta1969
    Keta1969Author
    New Member
    Jan 6, 2017 2:27 PM UTC

    Hi hz,

     

    Thank you very much for your help. It was a great help. I know have the report I needed.

     

    Regards

    Keith

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024