# Using eql to query for custom log

**URL:** <https://discuss.elastic.co/t/using-eql-to-query-for-custom-log/297834>\
**Category:** Elasticsearch\
**Tags:** eql-elastic-query-language\
**Created:** [February 22, 2022, 4:53am UTC](https://discuss.elastic.co/t/using-eql-to-query-for-custom-log/297834 "2022-02-22T04:53:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [February 22, 2022, 4:53am UTC](https://discuss.elastic.co/t/using-eql-to-query-for-custom-log/297834/1 "2022-02-22T04:53:19Z")

</div>

Hi all,  
I have question on the ability to query data for eql,  
Can eql be used to query for any log source other than from elastic-agent or winlogbeat.  
For example: i use filebeat to collect log from iis server then put them thourgh logstash to process and then index them to elastic. I have indexed them in ecs format so it will be compatible to eql, but then how to i query that iis log using eql.  
All i can see from the document are how to query data from winlogbeat or elastic-agent. And not from different source.

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [February 23, 2022, 5:20pm UTC](https://discuss.elastic.co/t/using-eql-to-query-for-custom-log/297834/2 "2022-02-23T17:20:40Z")

</div>

It is the same as querying winlogbeat or the logs-\* indices.

You have to specify the index in which your logs live and build your query.  
EQL does have some requirements, for example an `event.category` must be present.  
However that one can be circumvented by using `any`.

---

<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:** [March 23, 2022, 5:21pm UTC](https://discuss.elastic.co/t/using-eql-to-query-for-custom-log/297834/3 "2022-03-23T17:21:21Z")

</div>

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