This event you shared is before or after it runs through logstash?
The error you got means that the fields instance_name and instance_IP does not exist when the event arrives at the output level, this can happen if you are not parsing your original message.
What is your source? Please share your Logstash configuration.
Also, if possible adds a stdout or file output and share the event that logstash is sending to the outputs.
Caution: the dataset can not have - dashes in it ... dashes can only be used to separate the type, dataset and namespace
So, the above is invalid.
These three parts are combined by a “-” and result in data streams like logs-nginx.access-production . In all three parts, the “-” character is not allowed. This means all data streams are named in the following way:
But this limitation only exists if you want to use the data_stream settings in the Elasticsearch output I think since it will validate the value of the fields.
I'm using custom data streams names, so I can not use those data_stream settings and do not have this limitation.
Worked like a charm. Thanks @leandrojmp . Life saver.
yeah @stephenb i read the documentation, the hyphens are not allowed as DS will use hyphens to create the index names internally But it works without any issues even with hyphens. What i noticed is only in scenarios of creating dynamic names, during that interpolation its not allowing to use hyphens.
I think it is more than just using those settings...
To be clear, you can use custom names but more data stream functionality (free good stuff) is coming that will depend on the proper naming, like automatic routing, automatic custom pipelines based on the names, routing of mapping exceptions etc ... these are some of the things that I understand are on the future roadmap .. (I am playing with some of them now...)
They will not be interpreted correctly in downstream or dependent operations.
Yeah, while I disagree with some things, I understand that approach.
By custom data stream names I mean using something where the type is not logs, metrics, traces or synthetics.
If you want to use something like appname-prod as a data stream name, you cannot use the data_stream settings in Logstash and need to index it as a normal indice pointing to the data stream name.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.