I am a system administrator at a school.
To know the frequency of use of the deployed PCs, I created a package that reports the durations of user sessions (based on Windows session connections/disconnections/locks/unlocks).
However, for ease of querying, I would like to store this information in the Audit Data section.
To do this, I used the WAPT.write_audit_data_if_changed function, passing the results of my packet in JSON format as a parameter. The data is correctly stored in the audit data, but it is not interpreted correctly. That is to say, I do have something resembling JSON in the "value" line, but it is incorrectly formatted.
example:
Code: Select all
users connexions stats.pc-test =
"{\"report_date\":\"2024-09-18T13:57:46Z\",\"hostname\":\"PC-Test\",\"session_data\":[{\"history_days\":-1,\"total_minutes\":\"52\",\"start_date\":\"2024-09-17T13:57:31Z\",\"total_days\":\"0\",\"total_hours\":\"4\",\"total_seconds\":\"54\",\"date_history\":\"-1\"},{\"history_days\":-7,\"total_minutes\":\"56\",\"start_date\":\"2024-09-11T13:57:35Z\",\"total_days\":\"0\",\"total_hours\":\"20\",\"total_seconds\":\"3\",\"date_history\":\"-7\"},{\"history_days\":-15,\"total_minutes\":\"57\",\"start_date\":\"2024-09-03T13:57:38Z\",\"total_days\":\"1\",\"total_hours\":\"21\",\"total_seconds\":\"36\",\"date_history\":\"-15\"},{\"history_days\":-30,\"total_minutes\":\"50\",\"start_date\":\"2024-08-19T13:57:42Z\",\"total_days\":\"3\",\"total_hours\":\"20\",\"total_seconds\":\"13\",\"date_history\":\"-30\"}]}\r\n"
Date: 2024-09-18T11:57:46.985788Sincerely
