-
Notifications
You must be signed in to change notification settings - Fork 46
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
LOG-13046-agent-add-support-for-windows-event-logs #422
LOG-13046-agent-add-support-for-windows-event-logs #422
Conversation
dece967
to
13cffe4
Compare
13cffe4
to
ea44fa6
Compare
3c23c46
to
d7fded6
Compare
aeaa174
to
82bd144
Compare
812c224
to
f4a1301
Compare
349e761
to
5af9d6a
Compare
# Conflicts: # Cargo.lock # common/fs/src/cache/dir_path.rs
# Conflicts: # common/fs/src/cache/mod.rs
# Conflicts: # bin/src/main.rs # common/fs/src/cache/dir_path.rs
# Conflicts: # common/notify_stream/src/lib.rs
# Conflicts: # bin/src/main.rs
… errors go into agent log. any non-recoverable tailer process error is fatal - causes agent to exist.
7327405
to
b5fc31f
Compare
1261083
to
66e274f
Compare
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.
Mostly LGTM
- most of the issues I had were around understanding what was going on but those have been addressed -
my other ask I guess is this PR encompasses three seperate stories. I know they are related and two of them are really small but it did add a little confusion and overhead tracking down the three seperate stories. These could be split up.
@@ -326,6 +329,39 @@ pub async fn _main( | |||
false => None, | |||
}; | |||
|
|||
let tailer_source = match (config.log.tailer_cmd, config.log.tailer_args) { |
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.
So I got kind of turned around with how this is set up - and I feel it requires too much domain knowledge. This could just be a misunderstanding on my part.
Instead of this being wrapped around two configs that are set in a novel way that is new to the agent (by a brand new outside library) but if we wrapped it around if these tailers are defined for a given platform? This is all basically dead code for linux/macos but there is no indication as such. If possible I'm normally against over commenting but a comment around here explaining this I think would be welcome.
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.
the source will be None if these params are not configured. meaning - the source is optional. by default it is not enabled on non-windows platforms (as only windows installation package comes with bundled agent config file that has these options enabled).
It is standard approach in agent, see line 512.
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.
Gunna approve I guess my one ask would be a comment saying where these are set, but i'm not gunna hold up the PR for that.
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.
lgtm one nit
Testing:
Notes:
LOG-13046
LOG-14553
LOG-14644