Ok first time poster - so please go easy on me - two questions.
I would like to be able to pull data with logstash from an API. The API is at an address that looks like the following;
http://domain.com/reports/1000000
http://domain.com/reports/1000001
http://domain.com/reports/1000002
....
http://domain.com/reports/9999999
Is there are way to make incremental http requests to pull this data into logstash so it can be pushed into elasticsearch? Or is there a recommended tool for this purpose?
Here is the data that will be returned by the API.
`
123456 2015-01-01 COKE FANTA `As I am sure you know logstash will convert this to the following JSON
For the first name.
"name" => [
[0] "COKE"
]
For the second name
"name" => [
[0] {
"type" => "M",
"content" => "FANTA"
}
]
And when I try to push this into elastic it will fail because the mapping will expect a string for the name field or expect an object - it cant't have both. How best to deal with this problem. I want to keep the party type and name details together - so xpathing just the name contents out does not meet my requirements.