1. Describe your incident:
I have the following log message:
1ABC2D34e5f6gHI: to=<user@domain.tld>, relay=mail.domain.tld[1.2.3.4]:25, delay=18453, delays=18450/0.01/1.8/0.86, dsn=4.7.500, status=deferred (host mail.domain.tld[1.2.3.4] said: 451 4.7.500 Server busy. Please try again later from [5.6.7.8]. (S77719) [mail.domain.tld] (in reply to end of DATA command))
I created an extractor using a Grok Pattern, using https://github.com/whyscream/postfix-grok-patterns/blob/master/postfix.grok:
%{POSTFIX_QUEUEID:queue_id}: to=<%{EMAILADDRESS:rcpt}>, relay=%{POSTFIX_RELAY_INFO}, delay=%{NUMBER:total_delay;float}, delays=%{POSTFIX_DELAYS}, dsn=%{POSTFIX_STATUS_CODE_ENHANCED:dsn}
The field total_delay
is being stored as a string, and I can not do functions like AVERAGE on it.
While retrieving data for this widget, the following error(s) occurred:
Elasticsearch exception [type=illegal_argument_exception, reason=Field [total_delay] of type [keyword] is not supported for aggregation [avg]].
2. Describe your environment:
-
OS Information: Ubuntu 20.04
-
Package Version:4.2.9
-
Service logs, configurations, and environment variables: N/A
3. What steps have you already taken to try and solve the problem?
Re-read instructions on Extractors multiple times. Attempted to delete and re-create extractor.
4. How can the community help?
I would like to know what I am doing incorrectly. How can I turn these extracted fields into numbers?