This statement will capitalize all the characters. I want title case . for example:
"i want a title case conversion of sentence."
to
"I Want A Title Case Conversion Of Sentence."
Because, Kibana country names for region map is required in such format.
It won't accept "united kingdom" OR "UNITED KINGDOM".
So, I need to convert it as "United Kingdom".
We can do this with Kibana scripted fields. But that is not working with Region Map.
Ruby's capitalize surely does not make uppercase all characters (example) . I also tested it in Logstash 5.6.5 and it works as intended. What version of Logstash are you using?
Anyhow, if you want to capitalize each word in a sentence and not a single word, use this.
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.