From 041fe58c838b572abe655abd99e4c2c8d4de8863 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Wed, 4 Dec 2024 12:11:55 -0500 Subject: [PATCH] Fix Elastic-Agent event logger documentation (#1520) (cherry picked from commit 1253e201a23639ff38ff31ee5ae93f88733fac69) --- .../elastic-agent-standalone-logging.asciidoc | 2 +- .../tab-widgets/event-logging-widget.asciidoc | 95 +++++++++++++++++++ .../tab-widgets/event-logging.asciidoc | 29 ++++++ 3 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 docs/en/ingest-management/tab-widgets/event-logging-widget.asciidoc create mode 100644 docs/en/ingest-management/tab-widgets/event-logging.asciidoc diff --git a/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc b/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc index fbfe68524..fbf5debd3 100644 --- a/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc +++ b/docs/en/ingest-management/elastic-agent/configuration/elastic-agent-standalone-logging.asciidoc @@ -141,7 +141,7 @@ Default: `true` | `agent.logging.event_data.path` | The directory that log files is written to. -include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/logging-widget.asciidoc[] +include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/event-logging-widget.asciidoc[] Logs file names end with a date and optional number: log-date.ndjson, log-date-1.ndjson, and so on as new files are created during rotation. diff --git a/docs/en/ingest-management/tab-widgets/event-logging-widget.asciidoc b/docs/en/ingest-management/tab-widgets/event-logging-widget.asciidoc new file mode 100644 index 000000000..3655aa465 --- /dev/null +++ b/docs/en/ingest-management/tab-widgets/event-logging-widget.asciidoc @@ -0,0 +1,95 @@ +++++ +
+
+ + + + + +
+
+++++ + +include::event-logging.asciidoc[tag=mac] + +++++ +
+ + + + +
+++++ \ No newline at end of file diff --git a/docs/en/ingest-management/tab-widgets/event-logging.asciidoc b/docs/en/ingest-management/tab-widgets/event-logging.asciidoc new file mode 100644 index 000000000..7ec2ddb09 --- /dev/null +++ b/docs/en/ingest-management/tab-widgets/event-logging.asciidoc @@ -0,0 +1,29 @@ +// tag::mac[] + +`/Library/Elastic/Agent/data/elastic-agent-*/logs/events/elastic-agent-event-log*.ndjson` + +// end::mac[] + +// tag::linux[] + +`/opt/Elastic/Agent/data/elastic-agent-*/logs/events/elastic-agent-event-log*.ndjson` + +// end::linux[] + +// tag::win[] + +`C:\Program Files\Elastic\Agent\data\elastic-agent-*\logs\events\elastic-agent-event-log*.ndjson` + +// end::win[] + +// tag::deb[] + +`/var/lib/elastic-agent/data/elastic-agent-*/logs/events/elastic-agent-event-log*.ndjson` + +// end::deb[] + +// tag::rpm[] + +`/var/lib/elastic-agent/data/elastic-agent-*/logs/events/elastic-agent-event-log*.ndjson` + +// end::rpm[]