Hi.
How do I combine these two fields, since the username is similar?
The result of my query is the following:
user EventID count
----------------------------------------------------------------- |------------|------------ |
dsanchez.ext3 | 4740 | 3 |
----------------------------------------------------------------- |------------|------------ |
dsanchez.ext3 | 4767 | 3 |
----------------------------------------------------------------- |------------|------------ |
dsanchez.ext3@domain.com | 4625 | 10 |
----------------------------------------------------------------- |------------|-------------|
I would like the following:
user EventID count
-----------------------------------------------------|------------------- |--------------|
dsanchez.ext3 | 4740 | 3 |
dsanchez.ext3 | 4767 | 3 |
dsanchez.ext3@domain.com | 4625 | 10 |
-----------------------------------------------------------------------------------------
My query is:
index=oswinsec user=dsanchez* EventID=4625 OR EventID=4740 OR EventID=4767
|stats count by user, EventID
| eval u=mvindex(split(user,"@"),0)
| stats list(*) as * by u
| fields - u
@ITWhisperer Thanks! 🙂 🤓
| eval u=mvindex(split(user,"@"),0)
| stats list(*) as * by u
| fields - u