-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add modify_fields
processor and use it to set logName
#474
Conversation
c3fb21d
to
cc99f52
Compare
2ade241
to
3c9748a
Compare
f03f58a
to
8ae8016
Compare
...generator/testdata/invalid/linux/logging-processor_exclude_logs_invalid_path_cr/golden_error
Outdated
Show resolved
Hide resolved
confgenerator/testdata/invalid/linux/logging-processor_exclude_logs_invalid_source/input.yaml
Outdated
Show resolved
Hide resolved
confgenerator/testdata/invalid/linux/logging-processor_exclude_logs_multiple_sources/input.yaml
Outdated
Show resolved
Hide resolved
confgenerator/testdata/valid/linux/logging-processor_exclude_logs/input.yaml
Show resolved
Hide resolved
…mes with different escaping
// Cloud Logging's filter syntax has extremely weird rules around quoting/escaping | ||
// | ||
// A "text" is a literal that is not surrounded by double quotes. A | ||
// test may contain a small number of special characters, must start |
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.
// test may contain a small number of special characters, must start | |
// text may contain a small number of special characters, must start |
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.
Did another pass and resolved some open threads. The only remaining things:
- Two minor suggested edits https://github.com/GoogleCloudPlatform/ops-agent/pull/474#pullrequestreview-941033924[](https://github.com/GoogleCloudPlatform/ops-agent/pull/474#pullrequestreview-941033924)
instrumentation_source
related naming conversation: We can splitinstrumentation_source
to a separate PR to get this one unblocked first.
LGTM modulo the two things above are addressed.
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
logName
and instrumentation_source
modify_fields
processor and use it to set logName
Major changes in this branch:
exclude_logs
and filter parsing to be more consistent with Cloud Logging syntaxexclude_logs
andmodify_fields
conditionsmodify_fields
processormove_from
,copy_from
,static_value
default_value
if source value is unsetmap_values
,type
to transform the valuesomit_if
to conditionally remove a fieldlogName
using the new processor