Skip to main content
jimmykcherian
New Member
September 22, 2015
Solved

Detailed report for all users per page

Dear All, this forum was helping me a lot, my question is previously our company was using ISA server and the reporting was pretty good and they need the same like report. Which is for each user they need to have site, category, hits, browsingtime, bandwidth. I tried preparing the report but the user will come on the left column and they need separate sheet for each user like in the attached report. This will be a great help if we can have it. Thank you for reading and helping me :)

    jimmykcherian
    New Member
    September 30, 2015

    Dear , I hope you got the result now, I did some more modification as follows.

    1) create dataset with the query "

    select (coalesce(nullifna(`user`), 'Unknown') || ' (IP : ' || coalesce(ipstr(srcip), 'Unknown') || ' * SI : ' || coalesce(nullifna(`srcname`),nullifna(`srcmac`)) || ')') as user_src, root_domain(hostname) as hostname, sum($browse_time) as browsetime, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log where $filter and logid_to_int(logid) not in (4, 7, 14) and hostname is not null group by user_src, root_domain(hostname) having sum($browse_time)>0 order by user_src, hostname

    "

    2) create a chart library as attached and create a report with the chart

    Let me know if you need more details.

     

     

     

    6 replies

    hzhao_FTNT
    Staff
    Staff
    September 22, 2015

    Hi there, if predefined "User Report" doesn't work for you, maybe you can create a custom report, insert a macro "User Details", and add a custom chart below it. Run this report with each user filter.

     

    Regards,

    hz

    jimmykcherian
    New Member
    September 27, 2015

    Dear Hz, Thank you so much for the prompt reply, I did a dataset as follows and on chart library I select drill down as I know I can have 3 columns but arranged it by the queries dummy data. I am posting the details here so u can rectify me and it can be helpful to others also.

     

    select distinct coalesce(nullifna(`user`)) as user_src, hostname, catdesc, '-' as seperator, 'hits' as comments, count(1) as hits, sum($browse_time2) as browsetime, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log where $filter and logid_to_int(logid) not in (4, 7, 14) and hostname is not null group by user_src, hostname, catdesc having sum($browse_time2)>0 order by user_src, hostname, catdesc

    pcraponi
    New Member
    September 29, 2015

    jimmykcherian wrote:

     

    select distinct coalesce(nullifna(`user`)) as user_src, hostname, catdesc, '-' as seperator, 'hits' as comments, count(1) as hits, sum($browse_time2) as browsetime, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log where $filter and logid_to_int(logid) not in (4, 7, 14) and hostname is not null group by user_src, hostname, catdesc having sum($browse_time2)>0 order by user_src, hostname, catdesc

    I'm using FortiAnalyzer 5.2.3 and your SQL give no results. I've created a dataset with Log Type TRAFFIC. What is you FAZ version?

    hzhao_FTNT
    Staff
    Staff
    September 29, 2015

    browse_time2 is based on webfilter logs. If webfilter profile on FGT is "Allow" instead of "Monitor", you won't see any data from this dataset. Please change $browse_time2 to $browse_time which is from traffic logs.

     

    regards,

    hz

    jimmykcherian
    jimmykcherianAuthorAnswer
    New Member
    September 30, 2015

    Dear , I hope you got the result now, I did some more modification as follows.

    1) create dataset with the query "

    select (coalesce(nullifna(`user`), 'Unknown') || ' (IP : ' || coalesce(ipstr(srcip), 'Unknown') || ' * SI : ' || coalesce(nullifna(`srcname`),nullifna(`srcmac`)) || ')') as user_src, root_domain(hostname) as hostname, sum($browse_time) as browsetime, sum(coalesce(sentbyte, 0)+coalesce(rcvdbyte, 0)) as bandwidth from $log where $filter and logid_to_int(logid) not in (4, 7, 14) and hostname is not null group by user_src, root_domain(hostname) having sum($browse_time)>0 order by user_src, hostname

    "

    2) create a chart library as attached and create a report with the chart

    Let me know if you need more details.

     

     

     

    pcraponi
    New Member
    October 1, 2015

    like a charm.... 

     

    Thank you

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT