-
Notifications
You must be signed in to change notification settings - Fork 32
Syslog drain app error messages in app log stream #633
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,9 @@ templates: | |
| metrics.key.erb: config/certs/metrics.key | ||
| aggregate_drains.yml.erb: config/aggregate_drains.yml | ||
| prom_scraper_config.yml.erb: config/prom_scraper_config.yml | ||
| agent.crt.erb: config/certs/agent.crt | ||
| agent.key.erb: config/certs/agent.key | ||
| agent_ca.crt.erb: config/certs/agent_ca.crt | ||
|
|
||
| packages: | ||
| - binding-cache | ||
|
|
@@ -134,3 +137,31 @@ properties: | |
| logging.format.timestamp: | ||
| description: "Format for timestamp in component logs. Valid values are 'deprecated' and 'rfc3339'." | ||
| default: "deprecated" | ||
|
|
||
| agent.port: | ||
| description: "Port the agent is serving gRPC via mTLS" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MINOR: Also here. Agent is very generic as this repo contains multiple agents. I guess you mean the forwarder agent.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| default: 3458 | ||
| agent.ca_cert: | ||
| description: | | ||
| TLS loggregator root CA certificate. It is required for key/cert | ||
| verification. | ||
| agent.cert: | ||
| description: "TLS certificate for Syslog Binding Cache signed by the loggregator CA" | ||
| agent.key: | ||
| description: "TLS private key for Syslog Binding Cache signed by the loggregator CA" | ||
| agent.cipher_suites: | ||
| description: | | ||
| An ordered list of supported SSL cipher suites. Allowed cipher suites are | ||
| TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 and TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384. | ||
| default: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" | ||
|
|
||
| blacklisted_syslog_ranges: | ||
| description: | | ||
| A list of IP address ranges that are not allowed to be specified in | ||
| syslog drain binding URLs. | ||
| default: [] | ||
| example: [{start: 10.10.10.1, end: 10.10.10.10}] | ||
|
chombium marked this conversation as resolved.
|
||
|
|
||
| warn_on_invalid_drains: | ||
| description: "Whether to output log warnings on invalid drains" | ||
| default: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <%= p("agent.cert") %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <%= p("agent.key") %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <%= p("agent.ca_cert") %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,9 @@ | ||
| <% | ||
| blacklisted_ranges = p("blacklisted_syslog_ranges") | ||
| blacklisted_ips = blacklisted_ranges.map do |range| | ||
| "#{range['start']}-#{range['end']}" | ||
| end.join(",") | ||
|
|
||
| certs_dir = "/var/vcap/jobs/loggr-syslog-binding-cache/config/certs" | ||
| api_url = link("cloud_controller").address | ||
| if_p("api.override_url") { | ||
|
|
@@ -32,6 +37,16 @@ | |
| "DEBUG_METRICS" => "#{p("metrics.debug")}", | ||
| "PPROF_PORT" => "#{p("metrics.pprof_port")}", | ||
| "USE_RFC3339" => "#{p("logging.format.timestamp") == "rfc3339"}", | ||
|
|
||
| "AGENT_CA_FILE_PATH" => "#{certs_dir}/agent_ca.crt", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MINOR: It is kind of confusing to have a different name for files like
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jorbaum Read my comment above. There is only one agent which is called agent across all config files ;)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure we are talking about the same thing here. I am talking about the name of the file, not the name of the config var.
|
||
| "AGENT_CERT_FILE_PATH" => "#{certs_dir}/agent.crt", | ||
| "AGENT_KEY_FILE_PATH" => "#{certs_dir}/agent.key", | ||
| "AGENT_CIPHER_SUITES" => "#{p("agent.cipher_suites").split(":").join(",")}", | ||
| "AGENT_PORT" => "#{p("agent.port")}", | ||
| "AGENT_ADDR" => "localhost:#{p("agent.port")}", | ||
|
|
||
| "BLACKLISTED_SYSLOG_RANGES" => "#{blacklisted_ips}", | ||
| "WARN_ON_INVALID_DRAINS" => "#{p("warn_on_invalid_drains")}", | ||
| } | ||
| } | ||
| bpm = {"processes" => [process] } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.