-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Question: Unable to get any datapoints from elasticsearch 2.2 #4321
Comments
you timestamp field is named "timestamp" , but in your data source config you have specified "@timestamp" (notice the at sign) |
Thanks!, I tried using just the timestamp before. This is the error i received {
"root_cause": [{
"type": "illegal_argument_exception",
"reason": "Expected numeric type on field [timestamp], but got [string]"
}],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [{
"shard": 0,
"index": "logs",
"node": "WjuujlQ_Qhu7ySDB5SN90g",
"reason": {
"type": "illegal_argument_exception",
"reason": "Expected numeric type on field [timestamp], but got [string]"
}
}]
} the timestamp is in millis. Looks like elasticsearch does not like the way the jsonobject is inserting the timestamp {
"timestamp": "1457590806299",
"text": "\"2016-03-10 11:50:06,298 INFO datanode.DataNode (FSDatasetAsyncDiskService.java:deleteAsync(143)) - Scheduling blk_ - 7567441152900287140 _6818 file / app / hadoop / tmp / dfs / data / current / subdir0 / blk_ - 7567441152900287140
for deletion\""
} |
You need to fix you elasticsearch document timestamp, either by passing it as a number but I also think you need a custom index mapping informing elasticsearch how to interpret the timestamp |
yup, works now after explicit indexing. Many thanks for the pointers :-) |
hi asitk, can you guide on how you did the explicit indexing. I am getting the same error where the value is correct from logstash as a numeric but throws numeric exception when trying to plot the value in grafana |
@asitk hi asitk, can you guide on how you did the explicit indexing. I am getting the same error where the value is correct from logstash as a numeric but throws numeric exception when trying to plot the value in grafana |
I have same problem too. SolutionTimestamp's type should be "date", format should be "epoch_millis".
|
Server: Graphana v2.6.0
Datasource :Elasticsearch: v2.2
Ubuntu 14.04
Noob issue. I created a dashboard with a Elasticsearch datasource. I set the version to 2.X. Here is my document
My query from Grafana is not returing any results. I am simply trying to plot a count all log records hence i just created a basic dashboard with no specific lucene query
POST + Response
I can see results when i query in elastic-search directly
TIA for any pointers!
The text was updated successfully, but these errors were encountered: