GithubHelp home page GithubHelp logo

Comments (8)

superdump avatar superdump commented on July 29, 2024 9

A solution for 0.12.x could be:

<filter **>
  @type record_transformer
  enable_ruby
  <record>
    timestamp ${ require 'time'; Time.now.utc.iso8601(3) }
  </record>
</filter>

And then use time_key timestamp in the elasticsearch plugin config.

from fluent-plugin-elasticsearch.

cb372 avatar cb372 commented on July 29, 2024

I have exactly the same problem.

I have index templates set up for ES, so as a workaround I'll try adding a mapping for the @timestamp column with format dateTime and see if that fixes it.

from fluent-plugin-elasticsearch.

cb372 avatar cb372 commented on July 29, 2024

Follow-up: no, that didn't work at all. It looks like the timestamp that fluent-elasticsearch-plugin doesn't comply with the dateTime format, so the insert to ES fails.

from fluent-plugin-elasticsearch.

tmeinlschmidt avatar tmeinlschmidt commented on July 29, 2024

I've temporarily resolved adding another column with desider accuracy and using as a sorting point

from fluent-plugin-elasticsearch.

shivaken avatar shivaken commented on July 29, 2024

Hi, I tried to put timestamp with millisec.
if '@timestamp' is formatted by strftime("%Y-%m-%dT%H:%M:%S.%L%z") like '2014-11-14T15:37:04.731+0000', the timestamp is stored successfully and the date can be seen on Kibana.
Is it possible for fluent-plugin-elasticsearch to have a feature to combine the time valuable which is unixtime and additional millisecond data (if the record has) into this format?

from fluent-plugin-elasticsearch.

superdump avatar superdump commented on July 29, 2024

It seems that this has been overhauled in fluentd 0.14.0pre1 and timestamps with nanosecond accuracy are supported.

In any case, can someone provide exact information here about how to configure fluentd and fluent-plugin-elasticsearch with 0.12.x to write milliseconds into the @timestamp field?

from fluent-plugin-elasticsearch.

tobilarscheid avatar tobilarscheid commented on July 29, 2024

Hi @superdump and everyone else,

It seems that this has been overhauled in fluentd 0.14.0pre1 and timestamps with nanosecond accuracy are supported.

does this mean using fluentd 0.14 with this plugin would give me nano or at least millisecond precision? Are any changes in fluent-plugin-elasticsearch required?

from fluent-plugin-elasticsearch.

crackmac avatar crackmac commented on July 29, 2024

I believe #223 will handle the nano sec issue once it is merged in. It look like some failed testing is all that is holding it back.

from fluent-plugin-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.