-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mintime errors #36
Comments
Same here |
I have seen instances in the past where certain conditions can cause the translation of an |
My offset is set to 1, because i only pull 1 day of logs in at a time. It looks to be a change in the API |
Nothing has changed in the API. The version 2 log endpoints require timestamps in milliseconds. This is a departure from the original version 1 log endpoints expecting a timestamp in seconds. The Duo Log Sync program takes this into account based upon the |
Please give an example on what to set, because its not working. |
The configuration above (after having the |
Literally what I have, still same error.
|
Each log endpoint has individual argument requirements that have never changed since they were published. My point was that DLS takes into account which arguments are required for each endpoint automatically. What exactly is the error you receive when you run DLS with your configuration? |
The exact error at the top of this issue. |
We have exactly this same issue. I had installed DLS 2.0 in Sep. 2022, and just updated to the latest version of 2.2.0, but issue persists. I'm running on a Windows server 2012 with python 3.8, and use a scheduled task to restart the script every 30 min. in case it fails. The problem seems to be with the Trustmonitor endpoint. Eventually I end up with a checkpoint file that just contains the word "null". A temporary fix is to delete that file and let the program try again. But now that does not even seem to work. Even though the log file indicates that some logs are added to queue, these are not making it to my Graylog. -------- Partial log results ---------- ------------ Result when manually running from command line ----------- ------------- Relevant settings in config.yml ----------------- version: '1.0.0' dls_settings: api: checkpointing: servers:
account: endpoint_server_mappings: ----------- Also, I could not get the upgrade script to work when moving to version 2.2.0 -------------------- |
Update1: Today I tried removing all the checkpoint files and setting the offset value to "1" in the config.yml file. Since I had already retrieved log entries up through yesterday afternoon, a setting of 1 day would minimize duplicates in my logging system. Somehow the system seemed to like this combination of settings, and started retrieving data for all endpoints. However, after a while of running, and I re-enabled my scheduled task, eventually it bombed out. But this time it was the telephony endpoint with an issue: Shutting down due to [telephony producer: [Received 400 Invalid request parameters ('maxtime' must be strictly greater than 'mintime')]] I have copied a relevant portion of our logs below. I am wondering if an endpoint generates an issue when it previously has gathered some data, but then on a particular round it has no data to gather, then the next round it has an issue with an offset of "None" or "Null": telephony producer: fetching logs from offset None ============= Log Excerpt from 6-27-23 ================ |
@JBHilke Are you still having the periodic shutdown issue with Duo Log Sync? |
Sorry @MarkTripod-Duo I did not see your reply until recently. Yes, we are still having the periodic shutdown issues. I can send a fresh log if you like. For today, it shutdown 11 times between midnight and 4am, but seems to be OK after that. We have our Task that runs the script restart every 30 min anyway, so it catches up upon restart. So I haven't spent any time troubleshooting it since last summer. |
Hello - just updated from 2.0 to 2.2 and I'm having the exact same issue as everyone else. I originally had However after a few runs, I keep getting an error for the telephony logs and only deleting the checkpoint resolves it. 2024-02-15 16:17:02 WARNING DuoLogSync: Shutting down due to [telephony producer: [Received 400 Invalid request parameters ('maxtime' must be strictly greater than 'mintime')]] Is any progress being made on this bug, or should I roll back to 2.0? It seems this issue has been around for nearly a year. Thanks! |
Hello @MarkTripod-Duo, I can reproduce such issue after every service restart. Only Per the check, the checkpoint file for telephony will not be converted into local time, but using UTC time instead after a service restart. It will try to use local time again for checking the timestamp but it is saved at UTC time.
For example, at UTC -8, if I restart the service at 11am (UTC -8) now, then the checkpoint in
Do you know if the duo_log_sync script can be updated for |
Hi Im receiving errors with the trustmonitor, auth and activity logs.
2023-04-22 20:59:55 WARNING DuoLogSync: Shutting down due to [trustmonitor producer: [Received 400 Invalid request parameters (mintime must be within the past 180 days)]]
2023-04-22 20:59:55 WARNING DuoLogSync: Shutting down due to [activity producer: [Received 400 Invalid request parameters ('mintime' must be a timestamp in milliseconds)]]
2023-04-22 20:59:54 WARNING DuoLogSync: Shutting down due to [auth producer: [Received 400 Invalid request parameters ('mintime' must be a timestamp in milliseconds)]]
Am receiving queued logs admin action and telephony. Was receiving logs successfully until i updated the the code to the recently updated ones.
2023-04-22 20:59:55 ERROR DuoLogSync: check that the duoclient ikey and skey in the config file are correct
Have tried converting past 180 days to milliseconds to set mintime, with no success.
The text was updated successfully, but these errors were encountered: