# Logstash grok filter is having issue

**URL:** https://discuss.elastic.co/t/logstash-grok-filter-is-having-issue/163212
**Category:** Logstash
**Created:** [January 7, 2019, 1:01pm UTC](https://discuss.elastic.co/t/logstash-grok-filter-is-having-issue/163212 "2019-01-07T13:01:18Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![nitin.jangid](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nitin.jangid](https://discuss.elastic.co/u/nitin.jangid)
#### Post date: [January 8, 2019, 6:08am UTC](https://discuss.elastic.co/t/logstash-grok-filter-is-having-issue/163212/3 "2019-01-08T06:08:50Z")

</div>

Hi @A_B ,  
As you suggested  
"Anyhow, if you have Kibana available then I would suggest using `Kibana > Dev Tools > Grok Debugger` to work on your Grok pattern."

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/f/8ff4de615d2b9c7c4b7f86ff6390a03948b13d6a.png)  
Here i am getting correct json data.

As you suggested:  
" You can also test your Logstash config from STDIN to STDOUT. Here is an [example](https://discuss.elastic.co/t/import-21gb-csv-to-elasticsearch/162771/2)."

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

Here it is printing out correct data but not in json format. why?

For me most important is why it is not picking data from input path and writing in output file as i posted initially.

input {  
file {  
path =\> "C:/EVRY/evry/projects/workingProjects/ELK-searchEngine/tomcatlog.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
type =\> "logs"  
}  
}  
Please help. Thanks in advance.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-grok-filter-is-having-issue/163212)._
