# Filter out lines with only a TAB

**URL:** https://discuss.elastic.co/t/filter-out-lines-with-only-a-tab/150589
**Category:** Logstash
**Created:** [October 1, 2018, 5:25pm UTC](https://discuss.elastic.co/t/filter-out-lines-with-only-a-tab/150589 "2018-10-01T17:25:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hangstl](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@hangstl](https://discuss.elastic.co/u/hangstl)
#### Post date: [October 1, 2018, 5:25pm UTC](https://discuss.elastic.co/t/filter-out-lines-with-only-a-tab/150589/1 "2018-10-01T17:25:31Z")

</div>

I have to ingest logfiles that contain lines with only a TAB in it. Is it possible to get rid of those lines using the drop() filter? Something like this:

```auto
filter {
...
if [message] =~ /^\s*$/ {
  drop { }
}
...
}

```

How does the drop {} actually work? Does it prevent messages from getting to the output {...} section of the Logstash config? Are they completely _skipped_ after the drop {}?

---

<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: [October 29, 2018, 5:25pm UTC](https://discuss.elastic.co/t/filter-out-lines-with-only-a-tab/150589/2 "2018-10-29T17:25:33Z")

</div>

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