# IIS Event.Duration Doesn't seem Queryable?

**URL:** <https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363>\
**Category:** Kibana\
**Created:** [April 23, 2020, 12:03am UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363 "2020-04-23T00:03:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ELKNub](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@ELKNub](https://discuss.elastic.co/u/ELKNub)\
**Post date:** [April 23, 2020, 12:03am UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/1 "2020-04-23T00:03:10Z")

</div>

Hey Folks,

So I'm looking to pull EVENT.DURATION out of the Logstash IIS preloaded filter. That's all in place and pulling fine.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/645a1e8dfa6a35b40eccab6bfb012f444ab70b43.png)

However, you'll notice that it's pulling as an int, which is exactly what I want. The weird part is, I can't seem to pull ANYTHING when I ask to grab log entries below a certain level (remove the downtime pieces)

When I ask for event.duration \< 4000 I get exclusively 0.0's back. When I add "And event.duration \> 0.0" I get nothing back at all.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c1a94dd274759097b6f0a9654364f11f4415374c.png)

Any Idea's what's happening here?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 23, 2020, 7:34am UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/2 "2020-04-23T07:34:21Z")

</div>

Hi @ELKNub,

could you share the mapping for your index (specifically for the event.duration field)?

---

<div class="post-metadata">

**Author:** ![ELKNub](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@ELKNub](https://discuss.elastic.co/u/ELKNub)\
**Post date:** [April 25, 2020, 4:51am UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/3 "2020-04-25T04:51:40Z")

</div>

Uh.... Maybe? Not sure I know how to do that.... My username checks out.

wait yes!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5dcd446d8f5cfcd6fdd8c40e6bd89b9b692f2649.png)

---

<div class="post-metadata">

**Author:** ![ELKNub](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@ELKNub](https://discuss.elastic.co/u/ELKNub)\
**Post date:** [April 25, 2020, 5:23am UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/4 "2020-04-25T05:23:40Z")

</div>

Figured it out!

Thanks for pointing me in the right place.

When I hit the edit button next to the mapping, it has an "input" and "output" section. The "Input" was set to nanoseconds, while the "Output" was set to milliseconds. While I didn't want to change either of these for fear of breaking shit, I DID realize that if I want to see counts under 10,000 ms (as they are displaying) I ACTUALLY need to add 6 zero's for converting to nanosecnds. So the filter "event.duration \> 10000000000" works exactly how I need it. Thanks!

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [April 25, 2020, 6:10pm UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/5 "2020-04-25T18:10:06Z")

</div>

Glad you got it to work, good job on figuring it out! It’s a little confusing the table is applying the format while the query isn’t, definitely good feedback

---

<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:** [May 23, 2020, 6:10pm UTC](https://discuss.elastic.co/t/iis-event-duration-doesnt-seem-queryable/229363/6 "2020-05-23T18:10:12Z")

</div>

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