You are not logged in.
Pages: 1
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
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
Last edited by Sharoon (2025-03-17 14:54:29)
Offline
Pages: 1