Hi guys,
I am trying to convert time: HH:mm:ss into seconds using ruby code inside the logstash configuration file and getting error message:
_ Ruby exception occurred: uninitialized constant LogStash::Time {:level=>:error}
_
Please help me to fix this error.
What does your code look like?
Thanks Mark. I got help from someone on this.
would be nice you post here your solution for everyone
Here is the solution
ruby { code => "event['event_time'] = event['hour']*3600 + event['minute']*60 + event['second']" }
© 2020. All Rights Reserved - Elasticsearch
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.