How can I see who sent commands to GPS devices from the Traccar platform?

GIS-FACTORY2 days ago

Hello everyone,

I would like to know if there is a way to view which user sent specific commands to GPS devices through the Traccar web platform.

For example, I want to track when a command (like engine stop, reboot device, etc.) was sent, and by which user account.
Is there a log, database table, or audit feature that records this information (e.g., command history with user details)?

Any guidance or SQL query examples to retrieve this information would be greatly appreciated.

Thank you!

Anton Tananaev2 days ago

There is audit report and table as well.

GIS-FACTORY2 days ago

Thank you for your reply.

I checked my Traccar web interface, but I don’t see any “Audit” option under the Reports menu — only Combined, Route, Events, Trips, Stops, Summary, Graph, Route Replay, Logs, Scheduled Reports, and Statistics.

Could you please confirm what I need to do to enable the Audit Report?

I found that some users mention adding this line to the configuration file traccar.xml:

<entry key='database.insertAudit'>true</entry>

Should I add this entry and restart the Traccar service so the Audit report appears automatically in the Reports list?
Also, once enabled, can I check the tc_audit table to see who sent commands (e.g., by filtering action = 'command')?

I just want to make sure this is the correct way to activate and use the audit feature.

Thanks again for your help!

I found that some users mention adding this line to the configuration file traccar.xml

Please provide a link.