# Filter \*.tmp

**URL:** <https://discuss.elastic.co/t/filter-tmp/138452>\
**Category:** Logstash\
**Created:** [July 3, 2018, 8:28pm UTC](https://discuss.elastic.co/t/filter-tmp/138452 "2018-07-03T20:28:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arlen\_Gomes](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Arlen\_Gomes](https://discuss.elastic.co/u/Arlen_Gomes)\
**Post date:** [July 3, 2018, 8:28pm UTC](https://discuss.elastic.co/t/filter-tmp/138452/1 "2018-07-03T20:28:09Z")

</div>

Dear,

I am sending the logs from my file server with winlogbeat.

I just send the log with event 4663, to track file deletion, however, the Kibana view shows several temporary file events (\* .tmp). Is it possible to do this filter in the Logstash input or some display filter in Kibana?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 3, 2018, 8:31pm UTC](https://discuss.elastic.co/t/filter-tmp/138452/2 "2018-07-03T20:31:07Z")

</div>

You can probably do it either way, but the exact implementation depends on what an example event looks like. Copy an example event from Kibana's JSON tab.

---

<div class="post-metadata">

**Author:** ![Arlen\_Gomes](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Arlen\_Gomes](https://discuss.elastic.co/u/Arlen_Gomes)\
**Post date:** [July 4, 2018, 10:35am UTC](https://discuss.elastic.co/t/filter-tmp/138452/3 "2018-07-04T10:35:51Z")

</div>

![kibana](https://us1.discourse-cdn.com/elastic/original/3X/1/1/11409a6001a59c016b94ad94b8bc07999f17cad7.jpg)

Sorry for the delay Magnus ....

Follow the print.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 5, 2018, 9:30am UTC](https://discuss.elastic.co/t/filter-tmp/138452/4 "2018-07-05T09:30:12Z")

</div>

Please don't post screenshots when regular copy/paste of the text works just as well (or better). It's also easier to obfuscate private data that way.

Okay, good, the filename is already in a discrete field. Just use a drop filter wrapped in a conditional that inspects the contents of the `[event_data][ObjectName]` field. See [https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#conditionals](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#conditionals) and the many examples that have been posted in the past.

---

<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 2, 2018, 9:30am UTC](https://discuss.elastic.co/t/filter-tmp/138452/5 "2018-08-02T09:30:13Z")

</div>

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