Comments (8)
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.
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.
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.
I've temporarily resolved adding another column with desider accuracy and using as a sorting point
from fluent-plugin-elasticsearch.
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.
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.
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.
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)
- Not able to send syslogs to Elasticsearch using fluent-plugin-elasticsearch HOT 1
- Could not communicate to OpenSearch, resetting connection and trying again. no address for <OpenSearch host> HOT 2
- installed un-desired version of elasticsearch client HOT 1
- Installed un-desired version of elasticsearch client HOT 3
- How to get rid of debug log "Detected ES 8.x or above: document type will not be used" HOT 5
- Problems routing to dynamically named data streams HOT 2
- uninitialized constant Elasticsearch::Transport (NameError) HOT 1
- `template_file` and `customize_template` ignored for Data Streams HOT 3
- Getting 400 status in fluentd - request body is required HOT 3
- Load Balancer behaviour clarification HOT 1
- How does load balancing work with multiple replicas
- ILM policy creation failed HOT 5
- in_elasticsearch client.clear_scroll does not work when elastic return extremely long scroll_id HOT 1
- Rejected by Elasticsearch [error type]: document_parsing_exception [reason]: '[1:660] failed to parse field [kubernetes.labels.app] of type [text] in document with id HOT 21
- failed to flush the buffer (use https, but elasticsearch received http traffic) HOT 1
- Question: id_key in @type elasticsearch_data_stream doesn't function as expected ... HOT 3
- Pipeline not executed with datastreams
- Buffer Overflow produce queue increases exponential.
- Detected ES 8.x or above: document type will not be used in latest version of ES HOT 1
- Detected ES 8.x or above: document type will not be used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-plugin-elasticsearch.