Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 12.1.1
- Update documentation to state that that sprintf syntax is not supported for datastreams, and give a workaround [#1224](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1224)

## 12.1.0
- Add drop_error_types config option to not retry after certain error types [#1228](https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/1228)

Expand Down
16 changes: 16 additions & 0 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ output {
}
-----

NOTE: Dynamic variable substitution using sprintf syntax, such as %{foo}, is not supported in the `data_stream` options
at this time. If you want to dynamically route to data streams, you can add the appropriate fields to events in
the configuration and take advantage of the (on by default) auto routing facility:

[source,sh]
-----
filter {
mutate {
add_field => {
"[data_stream][type]" => "logs"
"[data_stream][dataset]" => "%{dataset_name}"
"[data_stream][namespace]" => "%{namespace_name}"
}
}
}
-----

==== Writing to different indices: best practices

Expand Down
2 changes: 1 addition & 1 deletion logstash-output-elasticsearch.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'logstash-output-elasticsearch'
s.version = '12.1.0'
s.version = '12.1.1'
s.licenses = ['apache-2.0']
s.summary = "Stores logs in Elasticsearch"
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
Expand Down