Logstash problem for loading data

hello
i need help for loading data to elasticsearch with logstash on windows 10
when i try to load data to logstash with these config file
input{
file{
path => "C:\Users\pc intervalle\Downloads\Compressed\logstash-7.2.0\config\Credit_card.csv"
start_position => "beginning"
sincedb_path => "NUL"
}

filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]


		}	
}

}
output{
elasticsearch{
hosts => "localhost:9200"
index => "Credit_Card"
document_type => "sold_cars"

}
sdout{}

}

i figure these problem
image
if there other configuration in logstash or elasticsearch for loading these data
eny one know about these problem please
thank's

You are missing a } to close the input section. It should come immediately before 'filter'.

Also, do not use backslash in the path option of a file input. Use forward slash.

i tryed with what are you say but the same problem
input{
file{
path => "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit_card.csv"
start_position => "beginning"
sincedb_path => "NUL"
}
}

filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]


		}
		
}

}
output{
elasticsearch{
hosts => "localhost:9200"
index => "Credit_Card"
document_type => "sold_cars"

}
sdout{}

}
the problem

Now you have an extra } that needs to be removed at the end of the filter {} section.

input{
file{
path => "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit_card.csv"
start_position => "beginning"
sincedb_path => "NUL"
}
}

filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]


		}
		
}

output{
elasticsearch{
hosts => "localhost:9200"
index => "Credit_Card"
document_type => "sold_cars"

}
sdout{}

}
i remove it but the same resultat

Did you read the error message? It's not the same result, it is completely different!

yeah you are whrite it not the same error
but these error showed to me i see it before but i dont get it a solution
had you an idea .
thank you so match

There is no sdout plugin.

please,
how can i add it i'm new in elasticsearch

I would guess you meant

stdout {}

yeah
stdout{}

i'm add it but there a lot a error's dont understand it
input{
file{
path => "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit_card.csv"
start_position => "beginning"
sincedb_path => "NUL"
}
}

filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]


		}
		
}

output{
elasticsearch{
hosts => "localhost:9200"
index => "Credit_Card"
document_type => "card_number"

}
sdout{
id => "01021994"
}

}

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