Hi @moep
Ok so here is a potential solution... see if you can follow along... this is not perfect but perhaps a start.
Note this is a possible solution not saying it is perfect....
Sample Data
DELETE discuss-test
GET discuss-test
PUT discuss-test
{
"mappings": {
"dynamic_templates": [
{
"strings": {
"match_mapping_type": "string",
"match": "exim*",
"mapping": {
"type": "keyword"
}
}
}
]
}
}
POST discuss-test/_doc
{
"exim_year": "2022",
"exim_month": "12",
"exim_day": "26",
"exim_time": "08:15:43",
"@timestamp": "2023-01-23T18:00:59.389Z",
"exim_flags": "**",
"exim_sender": [
"jane.doe@elasticsearch.com",
"jane.doe@elasticsearch.com"],
"exim_msg_id": "1pIlON-0006A7-iA"
}
POST discuss-test/_doc
{
"exim_time": "19:00:52",
"@timestamp": "2023-01-23T18:01:59.389Z",
"exim_day": "22",
"exim_flags": "==",
"exim_month": "01",
"exim_recipient": "input@mail.net",
"exim_msg_id": "1pIlON-0006A7-iA"
}
POST discuss-test/_doc
{
"exim_year": "2022",
"exim_month": "12",
"exim_day": "26",
"exim_time": "08:15:43",
"@timestamp": "2023-01-23T18:05:59.389Z",
"exim_flags": "**",
"exim_sender": "mr.doe@elasticsearch.com",
"exim_msg_id": "1pJdTc-0001AR-Ma"
}
POST discuss-test/_doc
{
"exim_time": "19:00:52",
"@timestamp": "2023-01-23T18:06:59.389Z",
"exim_day": "22",
"exim_flags": "==",
"exim_month": "01",
"exim_recipient": "recepient@mail.net",
"exim_msg_id": "1pJdTc-0001AR-Ma"
}
POST discuss-test/_doc
{
"exim_year": "2022",
"exim_month": "12",
"exim_day": "26",
"exim_time": "08:15:43",
"@timestamp": "2023-01-23T18:08:59.389Z",
"exim_flags": "**",
"exim_sender": ["another.doe@elasticsearch.com","another1.doe@elasticsearch.com"],
"exim_msg_id": "1pJdTc-0001AR-ZZ"
}
Then I created a Data View....
Then I created a Lens -> Table
Overview
Row -> Time
Max Time
Last Recipient
Last Sender