Hi Magnus,
I have created one logstash conf file where I am loading CSV file and it's working properly, the moment when i have changed the condition like type=="xyz", in input and filter block I am getting issues.
below is the conf snippet.
input
{
file
{
type => "SDR"
path => "/tmp/AdSelectorSDR.csv"
}
file
{
type => "UA"
path => "/tmp/UA.txt"
}
}
filter {
if [type] == "SDR"
{
csv
{
columns => ["Date","Context ID","Opportunity ID","Injector Context Id","Action","Channel","Allowed Ad Types","Sender","Receiver","URL","Keywords","Success","Message","Number of Ads","Ad Server","Audiences","Services","Site Groups","Preferences","Gender","Age In Years","Ad ID 1","Ad type 1","Opportunity data 1","Ad ID 2","Ad type 2","Opportunity data 2","Ad ID 3","Ad type 3","Opportunity data 3","STL ID","STL origin","Is Subscribed","Position Name","Application Name","CampaignID","Device","DeviceGroup","Requestor ID","Service Names","Site Group Names","Area","Campaign Name","Creative Name","Overall Duration","Fetch Adit Sub Dur","Persist Adit Sub Dur","MSISDN","Ad IT CouponID","CouponSentDate","ExternalCouponId","CouponSentStatus"]
remove_field => ["Context ID","Opportunity ID","Injector Context Id","Action","Sender","Receiver","Keywords","Number of Ads","Ad Server","Audiences","Services","Site Groups","Preferences","Gender","Age In Years","Ad ID 1","Ad type 1","Opportunity data 1","Ad ID 2","Ad type 2","Opportunity data 2","Ad ID 3","Ad type 3","Opportunity data 3","STL ID","STL origin","Is Subscribed","Position Name","Application Name","Requestor ID","Service Names","Site Group Names","Area","Overall Duration","Fetch Adit Sub Dur","Persist Adit Sub Dur","Ad IT CouponID","CouponSentDate","ExternalCouponId","CouponSentStatus"]
}
}
if [type] == "UA"
{
grok { match => { "message" => "%{COMBINEDAPACHELOG}" } }
date { match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ] }
geoip { source => "clientip" }
useragent {
source => "agent"
target => "useragent"
}
}
}
below is the Exception..
===============================
May 07, 2015 2:38:35 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->http://awse-2100401872.us-west-2.elb.amazonaws.com:9200: The target server failed to respond
May 07, 2015 2:38:35 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://awse-2100401872.us-west-2.elb.amazonaws.com:9200
May 07, 2015 7:49:52 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {}->http://awse-2100401872.us-west-2.elb.amazonaws.com:9200: The target server failed to respond
May 07, 2015 7:49:52 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://awse-2100401872.us-west-2.elb.amazonaws.com:9200
{:timestamp=>"2015-05-08T06:36:53.731000-0400", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Stdin >\n Error: Unknown error - Bad file descriptor", :level=>:error}
can you please suggest me