# Logstash Data Filter

**URL:** <https://discuss.elastic.co/t/logstash-data-filter/120317>\
**Category:** Logstash\
**Created:** [February 17, 2018, 4:31pm UTC](https://discuss.elastic.co/t/logstash-data-filter/120317 "2018-02-17T16:31:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bheeshma](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@Bheeshma](https://discuss.elastic.co/u/Bheeshma)\
**Post date:** [February 17, 2018, 4:31pm UTC](https://discuss.elastic.co/t/logstash-data-filter/120317/1 "2018-02-17T16:31:11Z")

</div>

Hi,

I have application log file with user log in and logout details , number of users logged in to the application and the status of the application in the below format recorded in App.log file.

[Tue Oct 17 12:15:01 2017]Local/App0///14296/Info(1051187)

Logging in user [admin@Native Directory] from [::ffff:10.77.2.1

I tried filter the data using below statement, it is never showing anything onto Kibana... Can you please guide how to filter if the logs recorded in the above format

input {  
file {  
path =\> "/var/lib/logstash/APP.LOG"  
start\_position =\> "beginning"  
}  
}

filter {  
grok {  
match =\> { "message" =\> "%{TIMESTAMP:dd MM YY HH:MM:SS} %{WORD:message}" }  
}  
}

output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
stdout { codec =\> rubydebug }  
}

Thanks  
Bheeshma

---

<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:** [February 18, 2018, 2:28pm UTC](https://discuss.elastic.co/t/logstash-data-filter/120317/2 "2018-02-18T14:28:46Z")

</div>

You've misunderstood how the grok filter works. You have also conflated it with the date filter. Try using the grok constructor web site to get help building your grok expression.

---

<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 18, 2018, 2:28pm UTC](https://discuss.elastic.co/t/logstash-data-filter/120317/3 "2018-03-18T14:28:47Z")

</div>

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