Hi folks,
I am new to the ELK stack and have a question in regards to an Elastic query rule and e-mail alert that I've created.
Currently, I am including the log @timestamp field in the e-mail alert using this variable:
{{context.hits.0._source.@timestamp}}
The @timestamp field in the alert is coming through in UTC and I need it formatted in EST. Is there any way to modify/convert the timestamp at the query level and output the results to an alert?
Here is the Elasticsearch query that I'm currently using:
{
"query": {
"bool": {
"must": [],
"filter": [
{
"match_phrase": {
"message": "Caused by: java.net.ConnectException"
}
},
{
"match_phrase": {
"path": "C:\\Path\\To\\Error.log"
}
},
{
"match_phrase": {
"level": "ERROR"
}
}
]
}
}
}