Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date format not accepted by ES #66

Closed
Vineeth-Mohan opened this issue May 4, 2013 · 6 comments
Closed

Date format not accepted by ES #66

Vineeth-Mohan opened this issue May 4, 2013 · 6 comments
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@Vineeth-Mohan
Copy link

While using Kibana , i am facing this issue.
The request is going from Kibana as
{"range":{"TimeStamp":{"from":"2013-05-03T02:12:24.043Z","to":"2013-05-03T08:12:24.044Z"}}}

But timestamp in ES is in another format as told in index meta (dd-MM-yyyy HH:mm:ss)

Due to this am getting a

× Oops! TransportSerializationException[Failed to deserialize exception response from stream]

There should be some option to edit the timestamp format

@rashidkpc
Copy link
Contributor

Can you post your elasticsearch mapping? ISO8601 date ranges should work regardless of the stored format as long as you're storing the field as a date object:

curl -XGET 'http://localhost:9200/_mapping?pretty'

@Vineeth-Mohan
Copy link
Author

Mapping - https://gist.github.com/Vineeth-Mohan/5525521
Field in question -

"TimeStamp" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss"
},

@Vineeth-Mohan
Copy link
Author

Hello @rashidkpc
Thanks for taking time to look into my issue. Yes , i use standard date object to store all the date objects. I believe that is the right way to do it. Let me know if there is some unconventional method i have followed.

@rashidkpc
Copy link
Contributor

This should allow for you to store in one format, but query in the standard ISO8601 format.

"TimeStamp" : {
"type" : "date",
"format" : "dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
},

@Vineeth-Mohan
Copy link
Author

Hello @rashidkpc - This would mean i have to reindex the whole index just for sake of kibana. And i believe there would be more users who will use the date type. So would it be very hard to specify the date format , may be in config.js

@steveblackmon
Copy link

+1 there are many date types in common use and standard way of using is to map directly in the type or use dynamic which just applies the first match and then the standard types no longer understood

faxm0dem pushed a commit to ccin2p3/kibana that referenced this issue Feb 17, 2014
json: Added json-c as git submodule
spalger pushed a commit that referenced this issue Oct 6, 2014
…ed globalState which is used by the timefilter service. Each app's last path is automatically updated to use the current globalState.

Closes #67 and #66
spalger pushed a commit that referenced this issue Oct 6, 2014
…ed globalState which is used by the timefilter service. Each app's last path is automatically updated to use the current globalState.

Closes #67 and #66
spalger pushed a commit to spalger/kibana that referenced this issue Mar 3, 2016
spalger added a commit to spalger/kibana that referenced this issue Mar 3, 2016
harper-carroll referenced this issue in harper-carroll/kibana Jul 11, 2016
New fields for quick searches across intermediate flows
rashidkpc pushed a commit to rashidkpc/kibana that referenced this issue Aug 12, 2016
rashidkpc pushed a commit to rashidkpc/kibana that referenced this issue Aug 12, 2016
kqualters-elastic pushed a commit to kqualters-elastic/kibana that referenced this issue Mar 8, 2022
…ray, so the parameters ref wouldn't change when the array grew. also fixed isUserEntered calculation, and another inline function (elastic#66)

Co-authored-by: mitodrummer <karlgodard@elastic.co>
rockdaboot added a commit that referenced this issue Jul 4, 2022
… on the MVP cluster (#66)

* Remove aggregations from events query - 5x speedup on MVP

* Add compatibility wrappers

* Speed up aggs with execution_hint: 'map' and apply compat wrappers
rockdaboot added a commit that referenced this issue Jul 4, 2022
… on the MVP cluster (#66)

* Remove aggregations from events query - 5x speedup on MVP

* Add compatibility wrappers

* Speed up aggs with execution_hint: 'map' and apply compat wrappers
rockdaboot added a commit that referenced this issue Jul 5, 2022
… on the MVP cluster (#66)

* Remove aggregations from events query - 5x speedup on MVP

* Add compatibility wrappers

* Speed up aggs with execution_hint: 'map' and apply compat wrappers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

3 participants