Hello All,
I have been reading the documentation and various posts on elastic community, but still difficult to find solution to this problem. I have 2 csv files, I need to merge into single csv file and inject the data into elasticsearch. I have read through filter plugin , translate plugin but still i need help. I am stuck with same problem for 3 weeks. Below is my config file.
I need help on the filter part where i can use compare a particular column thats user_id if user_id matches in both csv files, then i need to put all data from both csv files into single csv file. Please help me out.
input {
file {
type => "transaction"
path => "C:\Users\Desktop\DATA\TRANSACTION_TIME.csv "
start_position => "beginning"
sincedb_path => "/dev/null"
}
file {
type => "subscriber"
path => "C:\Users\Desktop\DATA\SUBSCRIBER.csv "
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
####### FILTER ####################################################
filter {
csv {
separator => ","
}
}
####### OUTPUT ###################################################
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "data_insights"
document_type => "data"
}
stdout {}
}