Hi,
I have 2 terms X and Y. How can I create a third term Z that is X-Y in my logs through logstash?
Hi,
I have 2 terms X and Y. How can I create a third term Z that is X-Y in my logs through logstash?
Use a ruby filter with the following code:
event.set('Z', event.get('X') - event.get('Y'))
This assumes that the X
and Y
fields are numeric.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 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.