Unable to load csv into elastic through logstash


(Gokul Kathirvel) #1

input{
file{
start_position => "beginning"

path=>"C:\Users\Gokul\Desktop\tes.csv"
	}
}


output {
elasticsearch{
hosts=>localhost
index=>"test_prod"
	}	
	}

i have deleted the .null file in logstash think ie(since_db_path),,..


Logstash output not showing any data
(Gokul Kathirvel) #2

At first logstash waits for input but takes time,,now it shut down ..thinkk it happened after deleting .null file


(Magnus B├Ąck) #3

Logstash is probably tailing tes.csv. To ensure that Logstash really reads the input files from the beginning, add sincedb_path => "nul" to your file input.


(Gokul Kathirvel) #4

yeah it works...


(system) #5

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