# Miliseconds are removed from time when data collected using fluentd

**URL:** https://discuss.elastic.co/t/miliseconds-are-removed-from-time-when-data-collected-using-fluentd/27391
**Category:** Elasticsearch
**Created:** [August 14, 2015, 12:03pm UTC](https://discuss.elastic.co/t/miliseconds-are-removed-from-time-when-data-collected-using-fluentd/27391 "2015-08-14T12:03:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)
#### Post date: [August 14, 2015, 12:03pm UTC](https://discuss.elastic.co/t/miliseconds-are-removed-from-time-when-data-collected-using-fluentd/27391/1 "2015-08-14T12:03:59Z")

</div>

Hello, I am using fluentd as data collector. But milliseconds from time is getting removed. Can you please suggest a solution to keep milliseconds in generated output.

Time is getting parsed only when I specify logstash\_format true. But because of this indices are getting created as 'Logstash\*\*' even if I specify index name. If I don't specify 'logstash\_format true ' then except time field everything is getting parsed.

Here is my fluentd configuration file,

 type tail tag json.nwdata path /etc/td-agent/access.log pos\_file /etc/td-agent/access.log.pos format json time\_format %Y/%m/%d %H:%M:%S read\_from\_head true time\_key time include\_time\_key true 

\<match json.\*\*\>  
type elasticsearch  
logstash\_format true  
time\_key time  
flush\_interval 10s # for testing  
index\_name jsonlog  
type\_name jsonlogtype

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [August 15, 2015, 9:37am UTC](https://discuss.elastic.co/t/miliseconds-are-removed-from-time-when-data-collected-using-fluentd/27391/2 "2015-08-15T09:37:01Z")

</div>

You'll probably have more luck on the Fliuentd forums/lists/etc 🙂

---

<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 5, 2017, 11:55pm UTC](https://discuss.elastic.co/t/miliseconds-are-removed-from-time-when-data-collected-using-fluentd/27391/3 "2017-07-05T23:55:40Z")

</div>


