I am using a tool called Kapacitor to send alerts using httppost method to elasticsearch. However, in one list I am getting both time and value column with datatypes date and float respectively.
This is causing exception - Illegal argument exception; cannot change from type long to date. Then I tried converting the time and value both to string; However the error failed to parse field of type float.
This is the alert -
{"time":"2022-08-24T06:00:00Z","duration":0,"level":"OK","data":{"series":[{"name":"kpi","tags":{"BID":"1017","_field":"key-field","cid":"labec17-1017","version":"6.0"},"columns":["time","_value"],"values":[["2022-08-24T06:00:00Z","100"]]}]},"previousLevel":"CRITICAL","recoverable":true}
Which approach I can use. I am new into elasticsearch, so far I have came to know about logstash and ingestion pipeline. However, using kapacitor I can write to file; but again I had to handle the file size. Regarding, ingestion pipeline it will take some to time for me to learn it. Can, ingestion pipeline be used here or logstash is the only way.
I tried to format the alert using kapacitor; but its still showing.
Thanks