I've got this log message:
Jul 23 09:24:16 mmr mmr-core[5147]: Aweg3AOMTs_1563866656876839.mt GetProvider_v4
which I ship to the elasticsearch.
I'd like to parse it in logstash filter and make id field from Aweg3AOMTs_1563866656876839.mt except I don't want to involve either letter or other characters and have in the id only the number!
I've done so far:
%{SYSLOGTIMESTAMP:logtimestamp} %{HOSTNAME:hostname} %{DATA:type} %{USERNAME:id} %{GREEDYDATA:rest}
"logtimestamp": "Jul 23 09:24:16",
"hostname": "mmr",
"id": "Aweg3AOMTs_1563866656876839.mt",
"type": "mmr-core[5147]:"
How can I skip the letters and characters in the id field?
Thank you for any help!