Skip to main content
Mattias
New Member
Oct 26, 2015 3:27 PM UTC
Question

Help needed for easy report needed (Report which users are hitting a policy)

Hi there,

 

I need a very simple report but I have no idea how to do it.

 

I have a policy (policyid 2) on a Fortigate and I want to see which users are hitting/using the policy. That's it. It should look like this:

 

Policy         User

2               user1

2               user2

2               user3

and so on.

 

A user should be only displayed once.

 

Could you please help me?

 

Thanks and best regards

Mattias

    1 reply

    hzhao_FTNT
    Staff
    Staff
    Oct 26, 2015 3:43 PM UTC

    Please try below dataset, log type traffic:

    select policyid, coalesce(nullifna(`user`), nullifna(`unauthuser`), ipstr(`srcip`)) as user_src from $log where $filter and policyid='2' group by policyid, user_src

     

    regards,

    hz

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    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