You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2025-03-14 18:43:33

Sharoon
Member
Registered: 2025-03-14
Posts: 1

Get authentication logs with API calls

Hello all,

I am working on a script to get the authentication logs of GLPI. the script is supposed to be executed every 5mn.
What i managed to do so far is run this curl:
    apirest.php/search/User?criteria[0][field]=14&criteria[0][searchtype]=equals&criteria[0][value]=2025-03-14&range=0-10'

This curl checks the Last login value at field=14 and return the users that last logged in on 2025-03-14.
But the result is not really an authentication history, because i have to run this frequently so i dont miss any login. Plus i dont know if it catches failed login too hmm

And when I run this /apirest.php/listSearchOptions/Log => the output is {"common":{"name":"Characteristics"}}

Is there a better way to get the authentication logs?

Thank you smile

Last edited by Sharoon (2025-03-17 14:54:29)

Offline

Board footer

Powered by FluxBB