HTTP POST with CSV

Hi ,

This is in connection with one of the issues here

I have a typical scenario where i am not able to find this thing working.
I could see the message at the other end (tested with localhost running : nc -l -k port) but i dont get a file created at the location given under header attribute as "Filename"

Here is my output header part for reference.

url => "https://IP?FQDN"
http_method => "post"
content_type => "application/octet-stream"
format => "form"
headers => [
"User-Agent" => "Model/ewdsaasa/Hardware/R1D Serial/123455 Application/1.1.21.3/66:77:88:99:00:A4"
"Connection" => "close"
"Authorization" => "Basic Y3VjdWx1czpjdWN1bHVz"
"Filename" => "123455_valuereport_%{device-identification}_3111.csv"
 "Product-Name" => " "
"Host" => "IPorFQDN"
"Accept" => "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
"Content-Length" => "597"
]

How do i pass these headers successfully in the HTTP output along with the CSV

have you tried curly brackets around your headers? i've seen it that way in a few examples:
headers => {
"User-Agent" => "Model/ewdsaasa/Hardware/R1D Serial/123455 Application/1.1.21.3/66:77:88:99:00:A4"
"Connection" => "close"
"Authorization" => "Basic Y3VjdWx1czpjdWN1bHVz"
"Filename" => "123455_valuereport_%{device-identification}_3111.csv"
"Product-Name" => " "
"Host" => "IPorFQDN"
"Accept" => "text/html, image/gif, image/jpeg, *; q=.2, /; q=.2"
"Content-Length" => "597"
}

Hi @stcdarrell,

I did tried that, same behavior

Any help on this?
Is there any simpler way to simply push a CSV using logstash HTTP Output?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.