Good morning. So I have a search which generates a list of recipients for a particular message subject.
The search is as follows:
index="exchange*" message_subject="test message subject" | rex field=recipient_address "(?<my_recip>[a-zA-Z0-9._%+-]+)@(?<my_todomain>[a-zA-Z0-9.+]+[\.(a-zA-Z)+])" max_match=0| convert ctime(_time) as my_date timeformat=%m-%d-%y | convert ctime(_time) as my_hour timeformat=%H:%M | eval full_email=my_recip."@".my_todomain | table my_date, my_hour, message_subject, my_recip, my_todomain, full_email, sender_address | dedup sender_address, my_recip
In a given scenario, if user1 sends 3 messages:
Message 1: To:
[email protected]
Message 2: To:
[email protected]
Message 3: To:
[email protected],
[email protected],
[email protected]
The query returns the following results:
my_date | my_hour | message_subject | my_recip | my_todomain | full_email | sender_address
7-22-16 | 10:43 | test message | userA | this.org |
[email protected] |
[email protected]
7-22-16 | 10:44 | test message | userB | this.org |
[email protected] |
[email protected]
7-22-16 | 10:45 | test message | userC | this.org |
[email protected] |
[email protected]
userD
userE
What I’d like the query to return is:
my_date | my_hour | message_subject | my_recip | my_todomain | full_email | sender_address
7-22-16 | 10:43 | test message | userA | this.org |
[email protected] |
[email protected]
7-22-16 | 10:44 | test message | userB | this.org |
[email protected] |
[email protected]
7-22-16 | 10:45 | test message | userC | this.org |
[email protected] |
[email protected]
7-22-16 | 10:45 | test message | userD | this.org |
[email protected] |
[email protected]
7-22-16 | 10:45 | test message | userE | this.org |
[email protected] |
[email protected]
Is there an easy way to do this? Thanks in advance for any assistance.
... View more