From e48ccc831b47ac4c819d2807c6ec655c3c9747d0 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Tue, 2 Jul 2024 10:34:52 -0400 Subject: [PATCH 1/3] out_datadog: Document `dd_hostname` configuration option Added by https://github.com/fluent/fluent-bit/pull/8988 Signed-off-by: Jesse Szwedko --- pipeline/outputs/datadog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipeline/outputs/datadog.md b/pipeline/outputs/datadog.md index a89649a35..4bff2187d 100644 --- a/pipeline/outputs/datadog.md +++ b/pipeline/outputs/datadog.md @@ -24,7 +24,8 @@ Before you begin, you need a [Datadog account](https://app.datadoghq.com/signup) | dd_service | _Recommended_ - The human readable name for your service generating the logs (e.g. the name of your application or database). If unset, Datadog will look for the service using [Service Remapper](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=service#service-attribute)." | | | dd_source | _Recommended_ - A human readable name for the underlying technology of your service (e.g. `postgres` or `nginx`). If unset, Datadog will look for the source in the [`ddsource` attribute](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=source#source-attribute). | | | dd_tags | _Optional_ - The [tags](https://docs.datadoghq.com/tagging/) you want to assign to your logs in Datadog. If unset, Datadog will look for the tags in the [`ddtags' attribute](https://docs.datadoghq.com/api/latest/logs/#send-logs). | | -| dd_message_key | By default, the plugin searches for the key 'log' and remap the value to the key 'message'. If the property is set, the plugin will search the property name key. | | +| dd_message_key | By default, the plugin searches for the key 'log' and remap the value to the key 'message'. If the property is set, the plugin will search the property name key. | | +| dd_hostname | The host that emitted logs should be associated with. If unset, Datadog will expect the host to be set as `host`, `hostname`, or `syslog.hostname` attributes. See Datadog Logs preprocessor documentation for up-to-date recognized attributes. | | ### Configuration File @@ -41,6 +42,7 @@ Get started quickly with this configuration file: dd_service dd_source dd_tags team:logs,foo:bar + dd_hostname myhost ``` ## Troubleshooting From 29f54f242b40f2a8c3bee9101af1bf0cba8e0ced Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Tue, 2 Jul 2024 16:29:42 -0400 Subject: [PATCH 2/3] Update pipeline/outputs/datadog.md Co-authored-by: Craig Norris <112565517+cnorris-cs@users.noreply.github.com> Signed-off-by: Jesse Szwedko --- pipeline/outputs/datadog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/outputs/datadog.md b/pipeline/outputs/datadog.md index 4bff2187d..1ab34550d 100644 --- a/pipeline/outputs/datadog.md +++ b/pipeline/outputs/datadog.md @@ -24,8 +24,8 @@ Before you begin, you need a [Datadog account](https://app.datadoghq.com/signup) | dd_service | _Recommended_ - The human readable name for your service generating the logs (e.g. the name of your application or database). If unset, Datadog will look for the service using [Service Remapper](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=service#service-attribute)." | | | dd_source | _Recommended_ - A human readable name for the underlying technology of your service (e.g. `postgres` or `nginx`). If unset, Datadog will look for the source in the [`ddsource` attribute](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=source#source-attribute). | | | dd_tags | _Optional_ - The [tags](https://docs.datadoghq.com/tagging/) you want to assign to your logs in Datadog. If unset, Datadog will look for the tags in the [`ddtags' attribute](https://docs.datadoghq.com/api/latest/logs/#send-logs). | | -| dd_message_key | By default, the plugin searches for the key 'log' and remap the value to the key 'message'. If the property is set, the plugin will search the property name key. | | -| dd_hostname | The host that emitted logs should be associated with. If unset, Datadog will expect the host to be set as `host`, `hostname`, or `syslog.hostname` attributes. See Datadog Logs preprocessor documentation for up-to-date recognized attributes. | | +| dd_message_key | By default, the plugin searches for the key `log` and remaps the value to the key `message`. If the property is set, the plugin searches the property name key. | _none_ | +| dd_hostname | The host the emitted logs should be associated with. If unset, Datadog expects the host to be set with `host`, `hostname`, or `syslog.hostname` attributes. See Datadog Logs preprocessor documentation for recognized attributes. | _none_ | ### Configuration File From c4d9263d8836e599f7a186acf482b427de16a46a Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Tue, 2 Jul 2024 16:32:11 -0400 Subject: [PATCH 3/3] Added link Signed-off-by: Jesse Szwedko --- pipeline/outputs/datadog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/outputs/datadog.md b/pipeline/outputs/datadog.md index 1ab34550d..193ab558b 100644 --- a/pipeline/outputs/datadog.md +++ b/pipeline/outputs/datadog.md @@ -25,7 +25,7 @@ Before you begin, you need a [Datadog account](https://app.datadoghq.com/signup) | dd_source | _Recommended_ - A human readable name for the underlying technology of your service (e.g. `postgres` or `nginx`). If unset, Datadog will look for the source in the [`ddsource` attribute](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=source#source-attribute). | | | dd_tags | _Optional_ - The [tags](https://docs.datadoghq.com/tagging/) you want to assign to your logs in Datadog. If unset, Datadog will look for the tags in the [`ddtags' attribute](https://docs.datadoghq.com/api/latest/logs/#send-logs). | | | dd_message_key | By default, the plugin searches for the key `log` and remaps the value to the key `message`. If the property is set, the plugin searches the property name key. | _none_ | -| dd_hostname | The host the emitted logs should be associated with. If unset, Datadog expects the host to be set with `host`, `hostname`, or `syslog.hostname` attributes. See Datadog Logs preprocessor documentation for recognized attributes. | _none_ | +| dd_hostname | The host the emitted logs should be associated with. If unset, Datadog expects the host to be set with `host`, `hostname`, or `syslog.hostname` attributes. See [Datadog Logs preprocessor documentation](https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=host#preprocessing) for recognized attributes. | _none_ | ### Configuration File