Does anybody know - is it possible to transform index name to lowercase in APM config file?
Started to getting warning after apm upgrade to latest version:
WARN [elasticsearch] elasticsearch/client.go:407 Cannot index event publisher.Event{Content:beat.Event ... n":"Invalid index name [apm-7.9.2-span-SomeNewIndex-2020.10.08], must be lowercase","index_
I am using this config for custom indexes and it was worked for me on 7.7.1:
You can manually configure the service name for every APM agent; therefore as @ylasri pointed out, you could ensure that your service names fulfill all ES index name requirements when using them as part of ES index names.
Interesing... Will double check, but today I had upgraded my ES and Kibana from 7.7 to 7.9 - and it is working as expected.
I have three APM Server instances with the same configs.
I stopped all apm server services and upgraded apm server on the first instance and run it. After that I saw this warning and I stopped getting any data in APM (there were no any data in Kibana/APM). I stopped apm server 7.9 and run apm in other 2 instances with APM 7.7 - and there is not any errors and I started getting data.
So, for now, I am trying to figure out - what is wrong with 7.9. All instances have the same configs.
Thanks for the details @TheVintik,
I was able to reproduce - the service.name ended up as a lower case index name in 7.7, but does not anymore since 7.8. I am going to look into that in more detail and will come back to you.
In the meantime, you could make use of configuring the service name in the agents (as suggested above) as a workaround.
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.