Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.asciidoc #1094

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ output {
}
-----

**Example: Configuration for Winlogbeats to Output to Winlogbeat created Data Stream**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is being inserted between the code block and explanation text of the previous example. Please move it to after the "Customize data stream name" example.


[source,sh]
-----
output {
elasticsearch {
hosts => "hostname"
index => "winlogbeat-8.4.3"
pipeline => "winlogbeat-8.4.3-routing"
action => "create"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
action => "create"
action => "create"
data_stream => "false"

}
}
-----

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This example shows how to handle writing to data streams that don't conform to the "logs-generic-default" format.
For that purpose, you can disable datastreams, configure the name of the data stream to be written to in the "index =>" setting, and set "action" to "create" as it is the only action supported in data streams.


This example shows the minimal settings for processing data streams. Events
with `data_stream.*`` fields are routed to the appropriate data streams. If the
fields are missing, routing defaults to `logs-generic-logstash`.
Expand Down