Skip to content

Commit bf9f93a

Browse files
authored
Flatten data stream in agent config (#3229)
1 parent ff45b6f commit bf9f93a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/en/observability/logs-stream.asciidoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ inputs:
7676
type: filestream
7777
streams:
7878
- id: your-log-stream-id
79-
data_stream:
80-
dataset: generic
79+
data_stream.dataset: generic
8180
paths:
8281
- /var/log/your-logs.log
8382
----
@@ -258,7 +257,7 @@ In the following command, the dissect processor extracts the timestamp from the
258257
----
259258
PUT _ingest/pipeline/logs-example-default
260259
{
261-
"description": "Extracts the timestamp from log",
260+
"description": "Extracts the timestamp",
262261
"processors": [
263262
{
264263
"dissect": {
@@ -453,7 +452,7 @@ Add the `%{log.level}` option to the dissect processor pattern in the ingest pip
453452
----
454453
PUT _ingest/pipeline/logs-example-default
455454
{
456-
"description": "Extracts the timestamp from log",
455+
"description": "Extracts the timestamp and log level",
457456
"processors": [
458457
{
459458
"dissect": {
@@ -606,7 +605,7 @@ You should see the following results showing only your high-severity logs:
606605
[[logs-stream-extract-host-ip]]
607606
== Extract the `host.ip` field
608607

609-
Extracting the `host.ip` field lets you filter logs by host IP addresses allowing you to focus on specific hosts that youre having issues with or find disparities between hosts.
608+
Extracting the `host.ip` field lets you filter logs by host IP addresses allowing you to focus on specific hosts that you're having issues with or find disparities between hosts.
610609

611610
The `host.ip` field is part of the {ecs-ref}/ecs-reference.html[Elastic Common Schema (ECS)]. Through the ECS, the `host.ip` field is mapped as an {ref}/ip.html[`ip` field type]. `ip` field types allow range queries so you can find logs with IP addresses in a specific range. You can also query `ip` field types using CIDR notation to find logs from a particular network or subnet.
612611

@@ -636,7 +635,7 @@ Add the `%{host.ip}` option to the dissect processor pattern in the ingest pipel
636635
----
637636
PUT _ingest/pipeline/logs-example-default
638637
{
639-
"description": "Extracts the timestamp from log",
638+
"description": "Extracts the timestamp log level and host ip",
640639
"processors": [
641640
{
642641
"dissect": {

0 commit comments

Comments
 (0)