# 无法get到索引

**URL:** <https://discuss.elastic.co/t/get/155664>\
**Category:** Elasticsearch\
**Created:** [November 7, 2018, 6:57am UTC](https://discuss.elastic.co/t/get/155664 "2018-11-07T06:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liutao](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@liutao](https://discuss.elastic.co/u/liutao)\
**Post date:** [November 7, 2018, 6:57am UTC](https://discuss.elastic.co/t/get/155664/1 "2018-11-07T06:57:34Z")

</div>

我的logstash配置文件如下:  
input {  
beats {  
port =\> 5044  
}  
}  
filter {  
grok {  
patterns\_dir =\> ["/elk/logstash/patterns"]  
match =\> {  
"message" =\> "%{TOMCAT\_SERVICE\_LOG}"  
}  
}  
date {  
match =\> ["Tstamp", "yyyy-MM-dd HH:mm:ss.SSS"]  
}

}  
output {  
if[type] == "tomcat"{  
elasticsearch {  
hosts =\> ["192.168.0.126:9200"]  
index =\> "tomcat\_error%{+YYYY.MM.dd}"  
}  
}  
}  
启动没有报错，一直无法get到tomcat\_error\*索引

---

<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:** [December 5, 2018, 6:57am UTC](https://discuss.elastic.co/t/get/155664/2 "2018-12-05T06:57:36Z")

</div>

Closed on December 5, 2018, 6:57am UTC

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