Skip to content

Commit

Permalink
Fix Elastic-Agent event logger documentation (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr authored Dec 4, 2024
1 parent b5ea761 commit 1253e20
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
++++
<div class="tabs" data-tab-group="os">
<div role="tablist" aria-label="Logging">
<button role="tab"
aria-selected="true"
aria-controls="mac-events-tab-logging"
id="mac-events-logging">
macOS
</button>
<button role="tab"
aria-selected="false"
aria-controls="linux-events-tab-logging"
id="linux-events-logging"
tabindex="-1">
Linux
</button>
<button role="tab"
aria-selected="false"
aria-controls="win-events-tab-logging"
id="win-events-logging"
tabindex="-1">
Windows
</button>
<button role="tab"
aria-selected="false"
aria-controls="deb-events-tab-logging"
id="deb-events-logging"
tabindex="-1">
DEB
</button>
<button role="tab"
aria-selected="false"
aria-controls="rpm-events-tab-logging"
id="rpm-events-logging"
tabindex="-1">
RPM
</button>
</div>
<div tabindex="0"
role="tabpanel"
id="mac-events-tab-logging"
aria-labelledby="mac-events-logging">
++++

include::event-logging.asciidoc[tag=mac]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="linux-events-tab-logging"
aria-labelledby="linux-events-logging"
hidden="">
++++

include::event-logging.asciidoc[tag=linux]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="win-events-tab-logging"
aria-labelledby="win-events-logging"
hidden="">
++++

include::event-logging.asciidoc[tag=win]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="deb-events-tab-logging"
aria-labelledby="deb-events-logging"
hidden="">
++++

include::event-logging.asciidoc[tag=deb]

++++
</div>
<div tabindex="0"
role="tabpanel"
id="rpm-events-tab-logging"
aria-labelledby="rpm-events-logging"
hidden="">
++++

include::event-logging.asciidoc[tag=rpm]

++++
</div>
</div>
++++
29 changes: 29 additions & 0 deletions docs/en/ingest-management/tab-widgets/event-logging.asciidoc
Original file line number Diff line number Diff line change
@@ -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[]

0 comments on commit 1253e20

Please sign in to comment.