I can see the JSON message instead of seeing data as
""org.elasticsearch.common.xcontent.XContentBuilder@32f4122e" . But for some
reason the data is not loaded as json but as a string. Do we have to set any
type to tell elastic search it is json data. I set some headers. But not
luck. Here is the data I am getting in KIbana.

{
  "_index": "test-2014-05-08",
  "_type": "parsed_logs",
  "_id": "7qSBgRx-Q_GLaCDWARs_Cg",
  "_score": null,
  "_source": {
    "@message": "{\"action\":{\"id\":\"00001\"}}",
    "@timestamp": "2014-05-08T16:48:44.180Z",
    "@type": "application/json",
    "@fields": {
      "_attachment_mimetype": "application/json",
      "timestamp": "1399567724180",
      "_type": "application/json",
      "type": "application/json"
    }
  },
  "sort": [
    1399567724180
  ]
}



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/Issue-with-posting-json-data-to-elastic-search-via-Flume-tp4054017p4055592.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1399570128948-4055592.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to