This is not related to logstash template but to your documents.
responseElements is first and object
Then you try to insert a String:
"responseElements": ""
It could not work.
I created a gist here https://gist.github.com/dadoonet/8052994
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 19 décembre 2013 at 21:21:40, Geoff Owen (geoffreyowen@gmail.com) a écrit:
David,
Sorry for not making things more clear. I am really new to using elasticsearch directly. I updated the gist with what I think is a use case, as well as two records that if first succeed, and if second fail everytime. This may be a misunderstanding on my part as the records I am trying to put into elasticsearch are completely different lengths using the same index(?).
https://gist.github.com/oweng/8011953
Thanks again for your help and time.
Geoff
On Tuesday, December 17, 2013 2:37:20 PM UTC-6, David Pilato wrote:
I can't see how to reproduce your concern.
"logstash-*" is the template and you add a document in french index.
You talked about a concern with response field or object but I don't see it in your sample doc.
Could you gist a full curl recreation? Something we just have to run using in a shell and which fails at the end.
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 17 décembre 2013 at 21:26:41, Geoff Owen (geoffr...@gmail.com) a écrit:
Sure thing David! Thank you for the link! Here is what I am trying to do, I have the full record as well as the mappings I am currently using.
https://gist.github.com/oweng/8011953
Thanks again,
Geoff
On Tuesday, December 17, 2013 2:07:52 PM UTC-6, David Pilato wrote:
Could you gist a curl recreation to understand what you are doing?
See http://www.elasticsearch.org/help
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 17 déc. 2013 à 20:53, Geoff Owen geoffr...@gmail.com a écrit :
Hi,
I am pretty new to elasticsearch, and I seem to be having an issue with a JSON record that I am trying to add to elasticsearch but I keep getting a mapping error:
org.elasticsearch.index.mapper.MapperParsingException: failed to parse [response]
but the true cause looks to be:
Caused by: org.elasticsearch.ElasticSearchIllegalArgumentException: unknown property [NameSet].
Could someone help me with how I would setup a mapping for this? Here is an example of the JSON.
"response": {
"NameSet": {
"items": [
{
"name_data": "some text",
"currentState": {
"code": 1,
"name": "name1"
},
"previousState": {
"code": 0,
"name": "name2"
}
}
]
}
}
Any help would be greatly appreciated..
Thank you.
Geoff
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e4068953-38f9-4000-935e-07e23991b105%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.52b41c0e.4f4ef005.111%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.