From 5e64d4e577e874653085409caeb205df0cf0c072 Mon Sep 17 00:00:00 2001 From: Thomas Labarussias Date: Wed, 24 Apr 2024 19:43:27 +0200 Subject: [PATCH] change the method to set the custom headers in the client.go, it allows now to override the content-type add warning for smtp and office365 improve notes and warning format Signed-off-by: Thomas Labarussias --- README.md | 6 +++--- docs/outputs/EXAMPLE.md | 2 +- docs/outputs/alertmanager.md | 2 +- docs/outputs/aws_cloudwatch_logs.md | 4 ++-- docs/outputs/aws_kinesis.md | 4 ++-- docs/outputs/aws_lambda.md | 4 ++-- docs/outputs/aws_s3.md | 4 ++-- docs/outputs/aws_security_lake.md | 4 ++-- docs/outputs/aws_sns.md | 4 ++-- docs/outputs/aws_sqs.md | 4 ++-- docs/outputs/azure_event_hub.md | 2 +- docs/outputs/cliq.md | 2 +- docs/outputs/cloudevents.md | 4 ++-- docs/outputs/datadog.md | 2 +- docs/outputs/discord.md | 2 +- docs/outputs/dogstatsd.md | 2 +- docs/outputs/dynatrace.md | 2 +- docs/outputs/elasticsearch.md | 2 +- docs/outputs/falcosidekick-ui.md | 2 +- docs/outputs/fission.md | 2 +- docs/outputs/gcp_cloud_functions.md | 2 +- docs/outputs/gcp_cloud_run.md | 2 +- docs/outputs/gcp_pub_sub.md | 2 +- docs/outputs/gcp_storage.md | 2 +- docs/outputs/googlechat.md | 2 +- docs/outputs/gotify.md | 2 +- docs/outputs/grafana.md | 4 ++-- docs/outputs/grafana_oncall.md | 2 +- docs/outputs/influxdb.md | 2 +- docs/outputs/kafka.md | 2 +- docs/outputs/kafkarest.md | 2 +- docs/outputs/kubeless.md | 4 ++-- docs/outputs/loki.md | 2 +- docs/outputs/mattermost.md | 2 +- docs/outputs/mqtt.md | 2 +- docs/outputs/n8n.md | 2 +- docs/outputs/nats.md | 2 +- docs/outputs/nodered.md | 2 +- docs/outputs/openfaas.md | 2 +- docs/outputs/openobserve.md | 2 +- docs/outputs/opsgenie.md | 2 +- docs/outputs/otlp_traces.md | 4 ++-- docs/outputs/pagerduty.md | 2 +- docs/outputs/policy_report.md | 4 ++-- docs/outputs/prometheus.md | 4 ++-- docs/outputs/quickwit.md | 2 +- docs/outputs/rabbitmq.md | 2 +- docs/outputs/redis.md | 2 +- docs/outputs/rocketchat.md | 2 +- docs/outputs/slack.md | 2 +- docs/outputs/smtp.md | 5 ++++- docs/outputs/spyderbat.md | 2 +- docs/outputs/stan.md | 2 +- docs/outputs/statsd.md | 4 ++-- docs/outputs/sumologic.md | 2 +- docs/outputs/syslog.md | 2 +- docs/outputs/teams.md | 2 +- docs/outputs/tekton.md | 2 +- docs/outputs/telegram.md | 2 +- docs/outputs/timescaledb.md | 2 +- docs/outputs/wavefront.md | 2 +- docs/outputs/webhook.md | 2 +- docs/outputs/yandex_datastreams.md | 2 +- docs/outputs/yandex_s3.md | 2 +- docs/outputs/zincsearch.md | 2 +- outputs/client.go | 2 +- 66 files changed, 85 insertions(+), 82 deletions(-) diff --git a/README.md b/README.md index aa7580c6a..710bb3ea6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ It works as a single endpoint for as many as you want `Falco` instances : `Falcosidekick` manages a large variety of outputs with different purposes. -> **Note** +> [!NOTE] Follow the links to get the configuration of each output. ### Chat @@ -250,7 +250,7 @@ helm repo update helm install falcosidekick --set config.debug=true falcosecurity/falcosidekick ``` -> **Note** +> [!NOTE] You can also deploy `falcosidekick` as a dependency of the `falco` chart, the settings for the communication between falco and `falcosidekick` are automatically set. Just prefix all `falcosidekick` settings with `falcosidekick.`: ```bash helm repo add falcosecurity https://falcosecurity.github.io/charts @@ -346,7 +346,7 @@ tlsserver: # - "/healthz" ``` -> **Note** +> [!NOTE] For the confiuration of the outputs, see the [docs](https://github.com/falcosecurity/falcosidekick/blob/master/docs/outputs/). ## Usage diff --git a/docs/outputs/EXAMPLE.md b/docs/outputs/EXAMPLE.md index 62ab2f081..68abe23cb 100644 --- a/docs/outputs/EXAMPLE.md +++ b/docs/outputs/EXAMPLE.md @@ -20,7 +20,7 @@ | | | | | | | | | | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/alertmanager.md b/docs/outputs/alertmanager.md index d178430b0..f517cfb2c 100644 --- a/docs/outputs/alertmanager.md +++ b/docs/outputs/alertmanager.md @@ -28,7 +28,7 @@ | `alertmanager.minimumpriority` | `ALERTMANAGER_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | | `alertmanager.customheaders` | `ALERTMANAGER_CUSTOMHEADERS` | | Custom headers for the POST request | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/aws_cloudwatch_logs.md b/docs/outputs/aws_cloudwatch_logs.md index 49b714755..15254601b 100644 --- a/docs/outputs/aws_cloudwatch_logs.md +++ b/docs/outputs/aws_cloudwatch_logs.md @@ -28,7 +28,7 @@ | `aws.cloudwatchlogs.minimumpriority` | `AWS_CLOUDWATCHLOGS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -49,7 +49,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ### CloudWatch Logs Sample IAM Policy diff --git a/docs/outputs/aws_kinesis.md b/docs/outputs/aws_kinesis.md index 146ec7b26..616f0fa21 100644 --- a/docs/outputs/aws_kinesis.md +++ b/docs/outputs/aws_kinesis.md @@ -25,7 +25,7 @@ | `aws.kinesis.streamname` | `AWS_KINESIS_STREAMNAME` | | AWS Kinesis Stream Name, if not empty, Kinesis output is **enabled** | | `aws.kinesis.minimumpriority` | `AWS_KINESIS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -45,7 +45,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ## Screenshots diff --git a/docs/outputs/aws_lambda.md b/docs/outputs/aws_lambda.md index 6bc018f12..0213ee1e3 100644 --- a/docs/outputs/aws_lambda.md +++ b/docs/outputs/aws_lambda.md @@ -26,7 +26,7 @@ | `aws.lambda.functionname` | `AWS_LAMBDA_FUNCTIONNAME` | | Lambda function name, if not empty, AWS Lambda output is **enabled** | | `aws.lambda.minimumpriority` | `AWS_LAMBDA_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -46,7 +46,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ### Lambda Sample IAM Policy diff --git a/docs/outputs/aws_s3.md b/docs/outputs/aws_s3.md index 4bed791ae..ffd6d5c97 100644 --- a/docs/outputs/aws_s3.md +++ b/docs/outputs/aws_s3.md @@ -28,7 +28,7 @@ | `aws.s3.endpoint` | `AWS_S3_ENDPOINT` | | Endpoint URL that overrides the default generated endpoint, use this for S3 compatible APIs | | `aws.s3.objectcannedacl` | `AWS_S3_OBJECTCANNEDACL` | `bucket-owner-full-control` | Canned ACL (`x-amz-acl`) to use when creating the object | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -51,7 +51,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ## Screenshots diff --git a/docs/outputs/aws_security_lake.md b/docs/outputs/aws_security_lake.md index f4fb35af6..1b000c32a 100644 --- a/docs/outputs/aws_security_lake.md +++ b/docs/outputs/aws_security_lake.md @@ -30,7 +30,7 @@ | `aws.securitylake.batchsize` | `AWS_SECURITYLAKE_BATCHSIZE` | `1000` | Max number of events by parquet file | | `aws.securitylake.minimumpriority` | `AWS_SECURITYLAKE_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -55,7 +55,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ## Screenshots diff --git a/docs/outputs/aws_sns.md b/docs/outputs/aws_sns.md index b42b2a169..afeb68cee 100644 --- a/docs/outputs/aws_sns.md +++ b/docs/outputs/aws_sns.md @@ -27,7 +27,7 @@ | `aws.sns.rawjson` | `AWS_SNS_RAWJSON` | `false` | end Raw JSON or parse it | | `aws.sns.minimumpriority` | `AWS_SNS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -48,7 +48,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ### SNS Sample Policy diff --git a/docs/outputs/aws_sqs.md b/docs/outputs/aws_sqs.md index db63e056f..80d99fc88 100644 --- a/docs/outputs/aws_sqs.md +++ b/docs/outputs/aws_sqs.md @@ -26,7 +26,7 @@ | `aws.sqs.url` | `AWS_SQS_URL` | | SQS Queue URL, if not empty, AWS SQS output is **enabled** | | `aws.sqs.minimumpriority` | `AWS_SQS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -46,7 +46,7 @@ aws: ## Additional info -> **Note** +> [!NOTE] When using this AWS output you will need to set the AWS keys or role with some permissions. ### SQS Sample IAM Policy diff --git a/docs/outputs/azure_event_hub.md b/docs/outputs/azure_event_hub.md index 3150c28d8..a25f7820e 100644 --- a/docs/outputs/azure_event_hub.md +++ b/docs/outputs/azure_event_hub.md @@ -19,7 +19,7 @@ | `azure.eventhub.namespace` | `AZURE_EVENTHUB_NAMESPACE` | | Name of the space the Hub is in | | `azure.eventhub.minimumpriority` | `AZURE_EVENTHUB_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/cliq.md b/docs/outputs/cliq.md index 3c30b2cfe..91004e930 100644 --- a/docs/outputs/cliq.md +++ b/docs/outputs/cliq.md @@ -24,7 +24,7 @@ | `cliq.messageformat` | `CLIQ_MESSAGEFORMAT` | | A Go template to format Cliq Text above Attachment, displayed in addition to the output from `CLIQ_OUTPUTFORMAT`, see [Message Formatting](#message-formatting) in the README for details. If empty, no Text is displayed before Attachment. | | `cliq.minimumpriority` | `CLIQ_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/cloudevents.md b/docs/outputs/cloudevents.md index 4dc615365..6a4d58965 100644 --- a/docs/outputs/cloudevents.md +++ b/docs/outputs/cloudevents.md @@ -22,7 +22,7 @@ | `cloudevents.checkcert` | `CLOUDEVENTS_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `cloudevents.minimumpriority` | `CLOUDEVENTS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -40,7 +40,7 @@ cloudevents: ## Additional info -> **Note** +> [!NOTE] This output works with [`KNative`](https://knative.dev/). ## Screenshots diff --git a/docs/outputs/datadog.md b/docs/outputs/datadog.md index f264985ee..794d9b764 100644 --- a/docs/outputs/datadog.md +++ b/docs/outputs/datadog.md @@ -20,7 +20,7 @@ | `datadog.host` | `DATADOG_HOST` | `https://api.datadoghq.com` | Datadog host. Override if you are on the Datadog EU site | | `datadog.minimumpriority` | `DATADOG_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/discord.md b/docs/outputs/discord.md index bc33367c5..9f503c90b 100644 --- a/docs/outputs/discord.md +++ b/docs/outputs/discord.md @@ -20,7 +20,7 @@ | `discord.ICON` | `DISCORD_ICON` | | Discord icon (avatar) | | `discord.minimumpriority` | `DISCORD_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/dogstatsd.md b/docs/outputs/dogstatsd.md index ebfde77f9..d01a98790 100644 --- a/docs/outputs/dogstatsd.md +++ b/docs/outputs/dogstatsd.md @@ -20,7 +20,7 @@ | `dogstastd.namespace` | `DOGSTASTD_NAMESPACE` | `falcosidekick.` | A prefix for all metrics | | `dogstastd.tags` | `DOGSTASTD_TAGS` | | Comma separeted list of key:value to add as tags to the metrics | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/dynatrace.md b/docs/outputs/dynatrace.md index 826806e43..fec0dc319 100644 --- a/docs/outputs/dynatrace.md +++ b/docs/outputs/dynatrace.md @@ -20,7 +20,7 @@ | | | | | | `dynatrace.minimumpriority` | `DYNATRACE_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/elasticsearch.md b/docs/outputs/elasticsearch.md index de4e31dcc..b00bf6915 100644 --- a/docs/outputs/elasticsearch.md +++ b/docs/outputs/elasticsearch.md @@ -26,7 +26,7 @@ | `elasticsearch.checkcert` | `ELASTICSEARCH_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `elasticsearch.minimumpriority` | `ELASTICSEARCH_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/falcosidekick-ui.md b/docs/outputs/falcosidekick-ui.md index a119e6439..c2bdb28cc 100644 --- a/docs/outputs/falcosidekick-ui.md +++ b/docs/outputs/falcosidekick-ui.md @@ -18,7 +18,7 @@ | ----------- | ----------- | ------------- | ---------------------------------------------------- | | `webui.url` | `WEBUI_URL` | | WebUI URL, if not empty, WebUI output is **enabled** | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/fission.md b/docs/outputs/fission.md index d0968e5c9..bc6cea3d2 100644 --- a/docs/outputs/fission.md +++ b/docs/outputs/fission.md @@ -24,7 +24,7 @@ | `fission.checkcert` | `FISSION_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `fission.minimumpriority` | `FISSION_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/gcp_cloud_functions.md b/docs/outputs/gcp_cloud_functions.md index d84363e3f..7a63186b3 100644 --- a/docs/outputs/gcp_cloud_functions.md +++ b/docs/outputs/gcp_cloud_functions.md @@ -20,7 +20,7 @@ | `gcp.cloudfunctions.name` | `GCP_CLOUDFUNCTIONS_NAME` | | The name of the Cloud Function, if not empty, Google Cloud Functions is **enabled** | | `gcp.cloudfunctions.minimumpriority` | `GCP_CLOUDFUNCTIONS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/gcp_cloud_run.md b/docs/outputs/gcp_cloud_run.md index 0e54e5bc3..73fa79b07 100644 --- a/docs/outputs/gcp_cloud_run.md +++ b/docs/outputs/gcp_cloud_run.md @@ -21,7 +21,7 @@ | `gcp.cloudrun.jwt` | `GCP_CLOUDRUN_JWT` | | Appropriate JWT to invoke the Cloud Function | | `gcp.cloudrun.minimumpriority` | `GCP_CLOUDRUN_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/gcp_pub_sub.md b/docs/outputs/gcp_pub_sub.md index 533647047..89294ee00 100644 --- a/docs/outputs/gcp_pub_sub.md +++ b/docs/outputs/gcp_pub_sub.md @@ -22,7 +22,7 @@ | `gcp.pubsub.customattributes` | `GCP_PUBSUB_CUSTOMATTRIBUTES` | | Custom attributes to add to the Pub/Sub messages | | `gcp.pubsub.minimumpriority` | `GCP_PUBSUB_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/gcp_storage.md b/docs/outputs/gcp_storage.md index d0419312d..9ac951b6c 100644 --- a/docs/outputs/gcp_storage.md +++ b/docs/outputs/gcp_storage.md @@ -21,7 +21,7 @@ | `gcp.storage.prefix` | `GCP_STORAGE_PREFIX` | | Prefix, keys will have format: gs:////YYYY-MM-DD/YYYY-MM-DDTHH:mm:ss.s+01:00.json | | `gcp.storage.minimumpriority` | `GCP_STORAGE_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/googlechat.md b/docs/outputs/googlechat.md index 9fe80cb7f..42d30f84a 100644 --- a/docs/outputs/googlechat.md +++ b/docs/outputs/googlechat.md @@ -22,7 +22,7 @@ | `googlechat.messageformat` | `GOOGLECHAT_MESSAGEFORMAT` | | A Go template to format Googlechat Text above Attachment, displayed in addition to the output from `GOOGLECHAT_OUTPUTFORMAT`, see [Message Formatting](#message-formatting) in the README for details. If empty, no Text is displayed before Attachment. | | `googlechat.minimumpriority` | `GOOGLECHAT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/gotify.md b/docs/outputs/gotify.md index 7de5e4119..c96a3d9ba 100644 --- a/docs/outputs/gotify.md +++ b/docs/outputs/gotify.md @@ -22,7 +22,7 @@ | `gotify.checkcert` | `GOTIFY_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `gotify.minimumpriority` | `GOTIFY_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/grafana.md b/docs/outputs/grafana.md index bc196af25..5c89c264b 100644 --- a/docs/outputs/grafana.md +++ b/docs/outputs/grafana.md @@ -25,7 +25,7 @@ | `grafana.checkcert` | `GRAFANA_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `grafana.minimumpriority` | `GRAFANA_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -46,7 +46,7 @@ grafana: ## Additional info -> **Note** +> [!NOTE] This output creates annotations. ## Screenshots diff --git a/docs/outputs/grafana_oncall.md b/docs/outputs/grafana_oncall.md index 0e9aecf1a..408d4709b 100644 --- a/docs/outputs/grafana_oncall.md +++ b/docs/outputs/grafana_oncall.md @@ -22,7 +22,7 @@ | `grafanaoncall.checkcert` | `GRAFANAONCALL_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `grafanaoncall.minimumpriority` | `GRAFANAONCALL_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/influxdb.md b/docs/outputs/influxdb.md index 55a724fa3..7a6c1a7cd 100644 --- a/docs/outputs/influxdb.md +++ b/docs/outputs/influxdb.md @@ -28,7 +28,7 @@ | `influxdb.checkcert` | `INFLUXDB_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | `mattermost.minimumpriority` | `MATTERMOST_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | `influxdb.minimumpriority` | `INFLUXDB_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/kafka.md b/docs/outputs/kafka.md index 7ce7332e3..33f85e835 100644 --- a/docs/outputs/kafka.md +++ b/docs/outputs/kafka.md @@ -30,7 +30,7 @@ | `kafka.clientid` | `KAFKA_CLIENTID` | | Specify a client.id when communicating with the broker for tracing | | `kafka.minimumpriority` | `KAFKA_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/kafkarest.md b/docs/outputs/kafkarest.md index d09f7fc3b..76662223d 100644 --- a/docs/outputs/kafkarest.md +++ b/docs/outputs/kafkarest.md @@ -22,7 +22,7 @@ | `kafkarest.checkcert` | `KAFKAREST_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `kafkarest.minimumpriority` | `KAFKAREST_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/kubeless.md b/docs/outputs/kubeless.md index 90cb9edc7..9b8b64f87 100644 --- a/docs/outputs/kubeless.md +++ b/docs/outputs/kubeless.md @@ -23,7 +23,7 @@ | `kubeless.kubeconfig` | `KUBELESS_KUBECONFIG` | `true` | Kubeconfig file to use (only if falcosidekick is running outside the cluster) | | `kubeless.minimumpriority` | `KUBELESS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -40,7 +40,7 @@ kubeless: ## Additional info -> **Warning** +> [!WARNING] `Kubeless` is no more maintained, consider to use a different output. ## Screenshots diff --git a/docs/outputs/loki.md b/docs/outputs/loki.md index d4f1ef413..3e6a8c0ef 100644 --- a/docs/outputs/loki.md +++ b/docs/outputs/loki.md @@ -28,7 +28,7 @@ | `loki.minimumpriority` | `LOKI_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/mattermost.md b/docs/outputs/mattermost.md index 701bb4c42..5b353ccc3 100644 --- a/docs/outputs/mattermost.md +++ b/docs/outputs/mattermost.md @@ -29,7 +29,7 @@ | `mattermost.minimumpriority` | `MATTERMOST_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/mqtt.md b/docs/outputs/mqtt.md index a9b4406a6..6a054ec2d 100644 --- a/docs/outputs/mqtt.md +++ b/docs/outputs/mqtt.md @@ -25,7 +25,7 @@ | `mqtt.checkcert` | `MQTT_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `mqtt.minimumpriority` | `MQTT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/n8n.md b/docs/outputs/n8n.md index df7e0cc0d..afae0be24 100644 --- a/docs/outputs/n8n.md +++ b/docs/outputs/n8n.md @@ -24,7 +24,7 @@ | `n8n.checkcert` | `N8N_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `n8n.minimumpriority` | `N8N_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/nats.md b/docs/outputs/nats.md index ca9e358e6..d91369193 100644 --- a/docs/outputs/nats.md +++ b/docs/outputs/nats.md @@ -21,7 +21,7 @@ | `nats.checkcert` | `NATS_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `nats.minimumpriority` | `NATS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/nodered.md b/docs/outputs/nodered.md index 2fdeb334e..a01aa42ed 100644 --- a/docs/outputs/nodered.md +++ b/docs/outputs/nodered.md @@ -23,7 +23,7 @@ | `nodered.checkcert` | `NODERED_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `nodered.minimumpriority` | `NODERED_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/openfaas.md b/docs/outputs/openfaas.md index 1965f31c7..c979aacff 100644 --- a/docs/outputs/openfaas.md +++ b/docs/outputs/openfaas.md @@ -25,7 +25,7 @@ | `openfaas.checkcert` | `OPENFAAS_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `openfaas.minimumpriority` | `OPENFAAS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/openobserve.md b/docs/outputs/openobserve.md index 04b963259..f65cc72e7 100644 --- a/docs/outputs/openobserve.md +++ b/docs/outputs/openobserve.md @@ -26,7 +26,7 @@ | `openobserve.checkcert` | `OPENOBSERVE_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `openobserve.minimumpriority` | `OPENOBSERVE_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/opsgenie.md b/docs/outputs/opsgenie.md index 5d7dc0a82..bd9d5588c 100644 --- a/docs/outputs/opsgenie.md +++ b/docs/outputs/opsgenie.md @@ -20,7 +20,7 @@ | `opsgenie.region` | `OPSGENIE_REGION` | `us` | Region of your domain (`us`, `eu`) | | `opsgenie.minimumpriority` | `OPSGENIE_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/otlp_traces.md b/docs/outputs/otlp_traces.md index a69a7e197..7b188b266 100644 --- a/docs/outputs/otlp_traces.md +++ b/docs/outputs/otlp_traces.md @@ -26,7 +26,7 @@ | `otlp.traces.duration` | `OTLP_TRACES_DURATION` | `1000` | Artificial span duration in milliseconds (as Falco doesn't provide an ending timestamp) | | `otlp.traces.extraenvvars` | `OTLP_TRACES_EXTRAENVVARS` | | Extra env vars (override the other settings) | -> **Note** +> [!NOTE] For the extra Env Vars values see [standard `OTEL_*` environment variables](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/): ## Example of config.yaml @@ -49,7 +49,7 @@ otlp: ## Additional info -> **Note** +> [!NOTE] The OTLP Traces are only available for the source: `syscalls`. ## Running a whole stack with docker-compose diff --git a/docs/outputs/pagerduty.md b/docs/outputs/pagerduty.md index e93294221..379b51ac5 100644 --- a/docs/outputs/pagerduty.md +++ b/docs/outputs/pagerduty.md @@ -20,7 +20,7 @@ | `pagerduty.region` | `PAGERDUTY_REGION` | `us` | Pagerduty Region (`us`, `eu`) | | `pagerduty.minimumpriority` | `PAGERDUTY_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/policy_report.md b/docs/outputs/policy_report.md index a0c9c656a..fc78c99bc 100644 --- a/docs/outputs/policy_report.md +++ b/docs/outputs/policy_report.md @@ -23,7 +23,7 @@ | `policyreport.prunebypriority` | `POLICYREPORT_PRUNEBYPRIORITY` | `false` | If true; the events with lowest severity are pruned first, in FIFO order | | `policyreport.minimumpriority` | `POLICYREPORT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -41,7 +41,7 @@ policyreport: ### Installing Policy Report Custom Resource Definition (CRD) -> **Warning** +> [!WARNING] Installation of the Policy Report Custom Resource Definition (CRD) is a prerequisite for using the Policy Report output. Information about how to find and install the CRD for the reports can be found [here](https://github.com/kubernetes-sigs/wg-policy-prototypes/tree/master/policy-report#installing). diff --git a/docs/outputs/prometheus.md b/docs/outputs/prometheus.md index 85d9b09f3..aaadf971e 100644 --- a/docs/outputs/prometheus.md +++ b/docs/outputs/prometheus.md @@ -18,7 +18,7 @@ | ------------------------ | ------------------------ | ------------- | -------------------------------------------------------------------------------------------------------------- | | `prometheus.extralabels` | `PROMETHEUS_EXTRALABELS` | | Comma separated list of fields to use as labels additionally to rule, source, priority, tags and custom_fields | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -30,7 +30,7 @@ prometheus: ## Additional info -> **Note** +> [!NOTE] This output is used to collect metrics about Falco events and Falcosidekick outputs in prometheus format, scrape the endpoint `/metrics` to collect them. ## Screenshots diff --git a/docs/outputs/quickwit.md b/docs/outputs/quickwit.md index 475bea7d6..480332698 100644 --- a/docs/outputs/quickwit.md +++ b/docs/outputs/quickwit.md @@ -25,7 +25,7 @@ | `quickwit.checkcert` | `QUICKWIT_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `quickwit.minimumpriority` | `QUICKWIT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/rabbitmq.md b/docs/outputs/rabbitmq.md index 4da1c0983..d3e5e8278 100644 --- a/docs/outputs/rabbitmq.md +++ b/docs/outputs/rabbitmq.md @@ -20,7 +20,7 @@ | `rabbitmq.queue` | `RABBITMQ_QUEUE` | | Rabbitmq Queue name | | `rabbitmq.minimumpriority` | `RABBITMQ_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/redis.md b/docs/outputs/redis.md index 47468504c..e3d9f55f9 100644 --- a/docs/outputs/redis.md +++ b/docs/outputs/redis.md @@ -23,7 +23,7 @@ | `redis.password` | `REDIS_PASSWORD` | | Password to authenticate with Redis | | `redis.minimumpriority` | `REDIS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/rocketchat.md b/docs/outputs/rocketchat.md index d54f07dc0..fc5e065c3 100644 --- a/docs/outputs/rocketchat.md +++ b/docs/outputs/rocketchat.md @@ -28,7 +28,7 @@ | `rocketchat.minimumpriority` | `ROCKETCHAT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/slack.md b/docs/outputs/slack.md index 7c1528648..6b317c10f 100644 --- a/docs/outputs/slack.md +++ b/docs/outputs/slack.md @@ -28,7 +28,7 @@ | `slack.messageformat` | `SLACK_MESSAGEFORMAT` | | A Go template to format Slack Text above Attachment, displayed in addition to the output from `SLACK_OUTPUTFORMAT`, see [Message Formatting](#message-formatting) in the README for details. If empty, no Text is displayed before Attachment. | | `slack.minimumpriority` | `SLACK_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/smtp.md b/docs/outputs/smtp.md index cd0eaa2b8..6be1e8e69 100644 --- a/docs/outputs/smtp.md +++ b/docs/outputs/smtp.md @@ -30,9 +30,12 @@ | `smtp.minimumpriority` | `SMTP_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. +> [!WARNING] +The `smtp` can't work with the Office365 domains because of the authentication method used by the platform, it includes outlook.com, office365.com, hotmail.com, ... + ## Example of config.yaml ```yaml diff --git a/docs/outputs/spyderbat.md b/docs/outputs/spyderbat.md index f23ea946f..e74295dd6 100644 --- a/docs/outputs/spyderbat.md +++ b/docs/outputs/spyderbat.md @@ -23,7 +23,7 @@ | `spyperbat.sourcedescription` | `SPYPERBAT_SOURCEDESCRIPTION` | | Spyderbat source description and display name if not empty, max 256 characters | | `spyperbat.minimumpriority` | `SPYPERBAT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/stan.md b/docs/outputs/stan.md index b6c830836..21a0ea423 100644 --- a/docs/outputs/stan.md +++ b/docs/outputs/stan.md @@ -22,7 +22,7 @@ | `stan.checkcert` | `STAN_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `stan.minimumpriority` | `STAN_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/statsd.md b/docs/outputs/statsd.md index b0da97a10..1adefdb89 100644 --- a/docs/outputs/statsd.md +++ b/docs/outputs/statsd.md @@ -19,7 +19,7 @@ | `statsd.forwarder` | `STATSD_FORWARDER` | | The address for the StatsD forwarder, in the form "host:port", if not empty StatsD is **enabled** | | `statsd.namespace` | `STATSD_NAMESPACE` | `falcosidekick.` | A prefix for all metrics | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml @@ -32,7 +32,7 @@ statsd: ## Additional info -> **Note** +> [!NOTE] This output is used to collect metrics about Falco events and Falcosidekick outputs. ## Screenshots diff --git a/docs/outputs/sumologic.md b/docs/outputs/sumologic.md index 5948efdfc..98f05f4ce 100644 --- a/docs/outputs/sumologic.md +++ b/docs/outputs/sumologic.md @@ -24,7 +24,7 @@ | `sumologic.minimumpriority` | `SUMOLOGIC_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/syslog.md b/docs/outputs/syslog.md index f724e2ee4..bd60260ed 100644 --- a/docs/outputs/syslog.md +++ b/docs/outputs/syslog.md @@ -22,7 +22,7 @@ | `syslog.format` | `SYSLOG_FORMAT` | `json` | Syslog payload format. It can be either `json` or `cef` | | `syslog.minimumpriority` | `SYSLOG_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/teams.md b/docs/outputs/teams.md index 9b785819c..175ef9a81 100644 --- a/docs/outputs/teams.md +++ b/docs/outputs/teams.md @@ -22,7 +22,7 @@ | `teams.minimumpriority` | `TEAMS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/tekton.md b/docs/outputs/tekton.md index 34967c1ef..38da239da 100644 --- a/docs/outputs/tekton.md +++ b/docs/outputs/tekton.md @@ -21,7 +21,7 @@ | `tekton.checkcert` | `TEKTON_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `tekton.minimumpriority` | `TEKTON_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/telegram.md b/docs/outputs/telegram.md index 0707f4cdc..2c272be04 100644 --- a/docs/outputs/telegram.md +++ b/docs/outputs/telegram.md @@ -20,7 +20,7 @@ | `telegram.token` | `TELEGRAM_TOKEN` | | Telegram bot authentication token | | `telegram.minimumpriority` | `TELEGRAM_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/timescaledb.md b/docs/outputs/timescaledb.md index c18801062..38cd92e00 100644 --- a/docs/outputs/timescaledb.md +++ b/docs/outputs/timescaledb.md @@ -25,7 +25,7 @@ | `timescaledb.password` | `TIMESCALEDB_PASSWORD` | `postgres` | Password to authenticate with TimescaleDB | | `timescaledb.minimumpriority` | `TIMESCALEDB_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/wavefront.md b/docs/outputs/wavefront.md index 3b76c72f4..3ca74f690 100644 --- a/docs/outputs/wavefront.md +++ b/docs/outputs/wavefront.md @@ -25,7 +25,7 @@ | `wavefront.flushintervalseconds` | `WAVEFRONT_FLUSHINTERVALSECONDS` | `1` | Time in seconds between flushing metrics to Wavefront | | `wavefront.minimumpriority` | `WAVEFRONT_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/webhook.md b/docs/outputs/webhook.md index 8fa398090..41f1ee744 100644 --- a/docs/outputs/webhook.md +++ b/docs/outputs/webhook.md @@ -23,7 +23,7 @@ | `webhook.checkcert` | `WEBHOOK_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `webhook.minimumpriority` | `WEBHOOK_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/yandex_datastreams.md b/docs/outputs/yandex_datastreams.md index 742bd249f..81fbb46b2 100644 --- a/docs/outputs/yandex_datastreams.md +++ b/docs/outputs/yandex_datastreams.md @@ -23,7 +23,7 @@ | `yandex.datastreams.streamname` | `YANDEX_DATASTREAMS_STREAMNAME` | | Stream name in format `/${region}/${folder_id}/${ydb_id}/${stream_name}`, if not empty, Yandex Datastreams is **enabled** | | `yandex.datastreams.minimumpriority` | `YANDEX_DATASTREAMS_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/yandex_s3.md b/docs/outputs/yandex_s3.md index 77333a7cc..2e68f59e1 100644 --- a/docs/outputs/yandex_s3.md +++ b/docs/outputs/yandex_s3.md @@ -24,7 +24,7 @@ | `yandex.s3.prefix` | `YANDEX_S3_PREFIX` | | Prefix, keys will have format: s3:////YYYY-MM-DD/YYYY-MM-DDTHH:mm:ss.s+01:00.json | | `yandex.s3.minimumpriority` | `YANDEX_S3_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/docs/outputs/zincsearch.md b/docs/outputs/zincsearch.md index 956d910f6..638c4b3c8 100644 --- a/docs/outputs/zincsearch.md +++ b/docs/outputs/zincsearch.md @@ -23,7 +23,7 @@ | `zincsearch.checkcert` | `ZINCSEARCH_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | `zincsearch.minimumpriority` | `ZINCSEARCH_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | -> **Note** +> [!NOTE] The Env var values override the settings from yaml file. ## Example of config.yaml diff --git a/outputs/client.go b/outputs/client.go index de6cc81d4..ad951eb89 100644 --- a/outputs/client.go +++ b/outputs/client.go @@ -301,7 +301,7 @@ func (c *Client) sendRequest(method string, payload interface{}) error { req.Header.Add(UserAgentHeaderKey, UserAgentHeaderValue) for _, headerObj := range c.HeaderList { - req.Header.Add(headerObj.Key, headerObj.Value) + req.Header.Set(headerObj.Key, headerObj.Value) } resp, err := client.Do(req)