Wazuh dashboard login logs

1,688 views
Skip to first unread message

Nepolean

unread,
Oct 16, 2023, 12:12:30 AM10/16/23
to Wazuh | Mailing List
Dear all,

Is there a way I can see which user logged in and logged to the Wazuh web interface in the form of logs? I tried following this thread but in vain. Can some specify the steps in detail. That will be a great help.

Thanks
Nepolean

Md. Nazmur Sakib

unread,
Oct 16, 2023, 8:49:59 AM10/16/23
to Wazuh | Mailing List

Hi Nepolean,


Hope you are doing well. Thank you for using Wazuh.

If you are using OpenSearch, you will need to add the following line to /etc/wazuh-indexer/opensearch.yml :

       

  plugins.security.audit.type: internal_opensearch


Next, go to vi /etc/wazuh-indexer/opensearch-security/audit.yml

Remove the    - AUTHENTICATED from  exclude

    # Categories to exclude from REST API auditing

    disabled_rest_categories:

      - GRANTED_PRIVILEGES


    # Categories to exclude from Transport API auditing

    disabled_transport_categories:

      - GRANTED_PRIVILEGES

Save the configuration

AUTHENTICATED allows logs for A user successfully authenticated.

Restart wazuh-indexer and wazuh-manager


Next, from the web interface go to Security > Audit logs

Check if Enable audit logging is enabled 


Next, go to Index Management > Indices

And search audit


 you will be able the see new indices related to security auditing. Check the screenshot for reference.


To get the logs on dashboard

you need to add these indices to Wazuh. You can do this, by following next steps:

  • Click the upper-left menu icon to open the options, and go to Stack Management:

  • Then click on Index patterns:

  • Once here, click on Create index pattern:

In the Index pattern name, you need to use the auditlog indices that were created.

After this, it's important that you refresh this index, to properly show the fields' information.

You can then visualize the audit logs on the Discover tab on the dashboard.

For further information related to this topic, please refer to OpenSearch official documentation:


I hope this helps. Please let me know if you need further information.

Regards

Md. Nazmur Sakib

ismailctest C

unread,
May 2, 2024, 2:20:28 AM5/2/24
to Wazuh | Mailing List
Hi,
We can see only user name, how to get activities details like successfully logged in/logged out.failed etc.
Please let us know the configuration to get those details.
Reply all
Reply to author
Forward
0 new messages