-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fixes issue #23 #26
base: master
Are you sure you want to change the base?
Fixes issue #23 #26
Conversation
Added a download-log command to download a log file from the server. The command requires a --serverHost and a --logfile parameter, and will stream the entire log to stdout. --start and --end can optionally be provided to limit the time to a specific period. Example usage (assuming scalyr_server and scalyr_readlog_token env vars are set):
|
@imron , I am assuming this PR is still valid ? Just a general comment, The real power of the feature seems to be the ability to support continuationToken. But I might be missing context |
It is still valid, but in my local version I've also added a delay option to avoid making too many continuation requests in a short period of time. For context, the main purpose of this feature for me was to help when doing remote profiling of the agent on a customer's network. The agent has an option to dynamically enable code profiling, which is output as a The The downloadLog command was really just a shortcut for myself so I didn't need to keep manually constructing a query. I'd like to see it hang around as a specific command (it simplifies my use case) but it's probably worth extending the |
Also, I've just realized that the original PR only included commit |
@imron , agreed, could you update the PR with the local changes and then update the README also? We can get this merged in :) |
Done and done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sry about the delay in approval .
No worries. It seems I don't have write access to this repository, so someone else will need to merge it in. |
Any update on this? It will soon be my last day at scalyr (31 July), and it might be a good idea to merge before then. |
This addresses issue #23