# Indexing problem when using logstash

**URL:** <https://discuss.elastic.co/t/indexing-problem-when-using-logstash/19328>\
**Category:** Elasticsearch\
**Created:** [August 18, 2014, 4:59pm UTC](https://discuss.elastic.co/t/indexing-problem-when-using-logstash/19328 "2014-08-18T16:59:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitaly\_bulgakov](https://avatars.discourse-cdn.com/v4/letter/v/76d3ee/32.png) [@vitaly\_bulgakov](https://discuss.elastic.co/u/vitaly_bulgakov)\
**Post date:** [August 18, 2014, 4:59pm UTC](https://discuss.elastic.co/t/indexing-problem-when-using-logstash/19328/1 "2014-08-18T16:59:44Z")

</div>

I am using the foollowing config file  
filter{  
grok{  
match=\>[  
"message",

"(?:?|&)C=%{DATA:kw}&%{DATA}\sT\s%{DATA:town}\sS\s%{WORD:state}\s%{DATA}%{IP:ip}"  
]  
}  
grok{  
match=\>[  
"message",  
"(?:?|&)SRC=%{DATA:src}(?:&|$)"  
]  
}  
}  
output {  
elasticsearch {  
host =\> localhost  
}  
stdout { codec =\> rubydebug }  
}  
And I thought "kw", "town", "state", etc. will be fields in elastic search.  
But trying

[http://localhost:9200/\_search?q=](http://localhost:9200/_search?q=)"town:\* AND state:\*"  
I am getting

{"took":5,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"_total":0_,"max\_score":null,"hits":[]}}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b99b5f5a-9063-4970-8da2-106efc5de196%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b99b5f5a-9063-4970-8da2-106efc5de196%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:07am UTC](https://discuss.elastic.co/t/indexing-problem-when-using-logstash/19328/2 "2017-07-06T01:07:53Z")

</div>

Closed on July 6, 2017, 1:07am UTC


