Hi Team,
I am new to n8n . I have created the work flow and alarm to get an email for missing hosts.
Below is the flow which I made. Please correct me / help me on the issue.
I have attached the screenshot related to it.
I would like to create the n8n work flow where
- scheduler I would like to add the trigger and check every day in the morning.
- Get the list of hosts from last 1 year from the index , I have used the http request to get it.
{
“aggregations”: {
“hosts”: {
“composite”: {
“sources”: [
{
“hostname”: {
“terms”: {
“field”: “host.name”
}
}
}
]
}
}
},
“size”: 0
}
Please correct me I am taking right aggregation or not .
- Taking the index and pushing into item-lists. to get the indices
- Split them and store them with the doc count
- Created one http-request so It will get the list of indices which are available in last 24hrs .So I can compare using merge to check the indices between the last 1 year and last 24 hrs indices are having some count and getting the traffic from the data-source towards Elasticsearch.
- If any indices are missing then send the email notification to respective person saying that we are not receiving the traffic from this particular host .
Please help me on this work flow
Thanks