Comments (2)
It because JSON/MessagePack doesn't have timestamp format.
How about using 3 arguments version of log method to specify timestamp?
Do you want to store Fluentd's event time and timestamp separately?
from fluent-plugin-mongo.
em, thanks. I just found that it's actually my mistake.
I make a HashMap<String, String>
to store log data, use Gson to convert it to JSON format, post it to server from mobile client, then restore the Map from this JSON String and use this map in fluentd logger.
The problem is the original Map's type is <String, String>
instead of <String, Object>
so that the number is presented as String when it is converted to JSON string.
The code I post in the question actually works correctly.
from fluent-plugin-mongo.
Related Issues (20)
- How to transfer data to Amazon DocumentDB HOT 6
- Plugin does not authenticate with mongo server with ssl_verify=true HOT 1
- Error: Failed to build gem native extension HOT 7
- Fluentd can send data to sharded cluster ?
- new release?
- connecting to mongo replicaset and using SSL as well HOT 8
- Specify values types in a MongoDB collection HOT 2
- Mongo::Auth::Unauthorized
- Linux fluend mogon "\xE7" to UTF-8 in conversion from ASCII-8BIT,Mongodb cannot be written in Chinese
- Error: init is specified, but there're parameters without default values:@type (ArgumentError)
- Release new version? HOT 1
- RPC gracefulReload fails for mongo_replset plugin
- Error installing fluent-plugin-mongo
- Dynamic collection name with date from record field error HOT 1
- Logs not forwarding to Atlas HOT 1
- Connection error with MongoDB 6 and authentication HOT 2
- Please provide option to specify ordered-true/false while inserting to Mongo DB - For performance improvements
- Fluentd not able to find fluent-plugin-mongo as input plugin
- MaxBSONSize error from Mongo DB - Marking as Unrecoverable error to stop retry
- Order of strings matters when using object_id_keys 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-mongo.