update for stacktrace
This commit is contained in:
parent
acc041e1c3
commit
3b7dd58424
16
vector.yaml
16
vector.yaml
@ -5,7 +5,7 @@ data_dir: "/var/lib/vector"
|
|||||||
# Enable and try it out with the `vector top` command
|
# Enable and try it out with the `vector top` command
|
||||||
# NOTE: this is _enabled_ for helm chart deployments, see:.apps://github.com/vectordotdev/helm-charts/blob/develop/charts/vector/examples/datadog-values.yaml#L78-L81
|
# NOTE: this is _enabled_ for helm chart deployments, see:.apps://github.com/vectordotdev/helm-charts/blob/develop/charts/vector/examples/datadog-values.yaml#L78-L81
|
||||||
api:
|
api:
|
||||||
enabled: false
|
enabled: true
|
||||||
# address = "127.0.0.1:8686"
|
# address = "127.0.0.1:8686"
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
@ -18,7 +18,7 @@ transforms:
|
|||||||
inputs:
|
inputs:
|
||||||
- from_stdin
|
- from_stdin
|
||||||
source: >-
|
source: >-
|
||||||
l = .
|
#l = .
|
||||||
|
|
||||||
#log("!!! 1", level:"info", rate_limit_secs:0)
|
#log("!!! 1", level:"info", rate_limit_secs:0)
|
||||||
|
|
||||||
@ -160,12 +160,20 @@ transforms:
|
|||||||
} else {
|
} else {
|
||||||
"none"
|
"none"
|
||||||
}
|
}
|
||||||
|
|
||||||
#log("!!! 2.1.10: {{m}}", level:"info", rate_limit_secs:0)
|
#log("!!! 2.1.10: {{m}}", level:"info", rate_limit_secs:0)
|
||||||
|
|
||||||
|
.app.attributes.stack_trace = if (exists(msg.stack_trace)) {
|
||||||
|
msg.stack_trace
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
|
|
||||||
|
#log("!!! 2.1.11: {{m}}", level:"info", rate_limit_secs:0)
|
||||||
|
|
||||||
.app.attributes.hostname = "$HOSTNAME"
|
.app.attributes.hostname = "$HOSTNAME"
|
||||||
|
|
||||||
#log("!!! 2.1.11: {{m}}", level:"info", rate_limit_secs:0)
|
#log("!!! 2.1.12: {{m}}", level:"info", rate_limit_secs:0)
|
||||||
|
|
||||||
.app.attributes.app_name = "${APP_NAME?Specify env.APP_NAME}"
|
.app.attributes.app_name = "${APP_NAME?Specify env.APP_NAME}"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user