Skip to content
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

Automate --skip= in the command #350

Open
ignace72 opened this issue Apr 16, 2023 · 0 comments
Open

Automate --skip= in the command #350

ignace72 opened this issue Apr 16, 2023 · 0 comments

Comments

@ignace72
Copy link

I often get the following error:

Fatal error: HTTP Error 500 Internal Server Error, response: {"status": "error", "tracked":2, "invalid":0, "invalid_indices":[]}
You can restart the import of "/var/log/nginx/access.log" from the point it failed by specifying --skip=1674 on the command line.

Here is my question:
Is there any way to tell import_logs.py to automatically jump on every error?
I ask this because I put the command in my crontab to automate adding the last accesses to the web server.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant