# Looking for a way to correlate events

**URL:** https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381
**Category:** Kibana
**Created:** [July 10, 2018, 3:08pm UTC](https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381 "2018-07-10T15:08:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![w0rk3r](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@w0rk3r](https://discuss.elastic.co/u/w0rk3r)
#### Post date: [July 10, 2018, 3:08pm UTC](https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381/1 "2018-07-10T15:08:50Z")

</div>

I've tried a lot of methods, but i can't find a way to display events with specific values ACROSS logs... for example, i want something like the eval for splunk...so, i can make alerts when some circunstances occur, like an if condition...Anyone have done anything related?

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [July 10, 2018, 10:19pm UTC](https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381/2 "2018-07-10T22:19:43Z")

</div>

Hi @w0rk3r,

It sounds like you want to create an alert (aka a Watch), but I am not very familiar with Splunk. Can you give some example logs and the conditions on what would suffice it to be triggered? That should help some of us get a better idea exactly what you're asking.

Thanks,  
Chris

---

<div class="post-metadata">

### Author: ![w0rk3r](https://avatars.discourse-cdn.com/v4/letter/w/e495f1/32.png) [@w0rk3r](https://discuss.elastic.co/u/w0rk3r)
#### Post date: [July 11, 2018, 1:07am UTC](https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381/3 "2018-07-11T01:07:28Z")

</div>

Hey @pickypg,

I'm not using X-PACK, so not exactly a watch, neither splunk on this project... For example, an use case could be a simple detection of a known malicious tool like mimikatz...so i have the following:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b274e35388fcf1ad2d3c31fd4d3ed37b65787140.png)

I want to do a query and validate if there are these results together  
Something like: `module_loaded:"C:\Windows\System32\vaultcli.dll" AND module_loaded:"C:\Windows\System32\bcrypt.dll" AND module_loaded:"C:\Windows\System32\crypt32.dll" AND module_loaded:"C:\Windows\System32\wintrust.dll"`

The questions:  
1-) How can i do a query across these logs as a "MUST HAVE" (like on the query example) value, without use a OR (The OR will return results if there is one or one hundred of logs with one of the values)  
2-) OR there is a way to do that with OR?

Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 8, 2018, 1:07am UTC](https://discuss.elastic.co/t/looking-for-a-way-to-correlate-events/139381/4 "2018-08-08T01:07:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
