Hey all,
I have multiple text files i am trying to import what i currently have imports the text files but ideally i need to split each line.
the lines of the text files i am importing look like
aXsdA|http://someurl
What i would like to do is import the text file have the bit before the |
named as tag and the second part named as url
I tried as a CVS with the delimiter as | but no joy kept erroring out.
input {
file {
type => "app"
path => ["/home/u/archives/urlteam_2021-02-27-21-17-02/goo-gl/______.txt"]
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
output {
stdout {
codec => dots
}
elasticsearch {
hosts => ["192.168.1.210:9200"]
index => "urlhunter"
}
}