# Problem with index created

**URL:** <https://discuss.elastic.co/t/problem-with-index-created/140115>\
**Category:** Logstash\
**Created:** [July 16, 2018, 9:20am UTC](https://discuss.elastic.co/t/problem-with-index-created/140115 "2018-07-16T09:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loudone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loudone/32/33365_2.png) [@Loudone](https://discuss.elastic.co/u/Loudone)\
**Post date:** [July 16, 2018, 9:20am UTC](https://discuss.elastic.co/t/problem-with-index-created/140115/1 "2018-07-16T09:20:20Z")

</div>

Hello,

I encounter some problems with Elk suite, and try to solve it.

For a project, we are tryring to parses with logstash this kind of log:

```
`2018-07-16T11:11:53 coll_bddf [3] [0] [11] [61] [9] [24]`

```

so, with logstash, I've created the following conf file:

`  
input {  
file {  
path =\> "/var/log/logstash/SOLR\_LOGS/Solr\_generate\_1.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}

filter {  
grok {  
match =\> { "message" =\> "%{TIMESTAMP\_ISO8601:solr\_timestamp} %{WORD:solr\_collection\_name} [%{NUMBER:solr\_global\_time}] [%{NUMBER:solr\_num\_docs}] [%{NUMBER:solr\_creation\_time}] [%{NUMBER:solr\_commit\_time}] [%{NUMBER:solr\_search\_time}] [%{NUMBER:solr\_delete\_time}]" }  
overwrite =\> ["message"]  
}  
}

output {  
elasticsearch{  
#hosts =\> ["192.168.186.120:9200"]  
hosts =\> ["192.168.1.119:9200"]  
index =\> "solrbddf-%{+YYYY.MM.dd}"  
}  
`

The next step, I've created the a template for my index like below:  
`PUT _template/solrcoll { "index_patterns":"solrbddf*", "version": 1, "settings": { "index.refresh_interval" : "5s" }, "mappings": { "doc": { "properties": { "solr_collection-name": { "type": "text" }, "solr_commit_time": { "type": "long" }, "solr_creation_time": { "type": "long" }, "solr_delete_time": { "type": "long" }, "solr_global_time": { "type": "long" }, "solr_num_docs": { "type": "long" }, "solr_search_time": { "type": "long" }, "solr_timestamp": { "type": "date", "format": "strict_date_hour_minute_second" } } } } }`

And, for a curious reason, I'm not able to use all index value through Kibana.. but I can request them properly!  
`{ "took": 3, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 2706, "max_score": 1, "hits": [{ "_index": "solrbddf-2018.07.16", "_type": "doc", "_id": "qggWomQBq8H4N0r_aVoh", "_score": 1, "_source": { "path": "/var/log/logstash/SOLR_LOGS/Solr_generate_1.log", "solr_global_time": "44", "solr_commit_time": "298", "solr_timestamp": "2018-07-13T10:20:55", "@version": "1", "host": "centos_solr_test", "@timestamp": "2018-07-16T07:55:33.890Z", "solr_delete_time": "137", "solr_creation_time": "138", "solr_collection_name": "coll_bddf", "solr_search_time": "54", "message": "2018-07-13T10:20:55 coll_bddf [44] [0] [138] [298] [54] [137]", "solr_num_docs": "0" } },`

Could you help me to solve this issue?  
Did I missed some things.?

Best Regards

---

<div class="post-metadata">

**Author:** ![Loudone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loudone/32/33365_2.png) [@Loudone](https://discuss.elastic.co/u/Loudone)\
**Post date:** [July 16, 2018, 11:11am UTC](https://discuss.elastic.co/t/problem-with-index-created/140115/2 "2018-07-16T11:11:42Z")

</div>

Ok, I found my Problem, the timestamp wasn't set properly

---

<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:** [August 13, 2018, 11:11am UTC](https://discuss.elastic.co/t/problem-with-index-created/140115/3 "2018-08-13T11:11:47Z")

</div>

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