I Have a csv file which have 3 fields
field1 : ID
field2 : Company Name
field3 : Array of contacts (separator : | )
Theis field can be :
null (no contact)
one or more contacts
But each contact is also an array with :
firstname
lastname
email
Exemple :
11111;Company 1;
22222:Company 2;MARC,SMITH,marcsmith@company1.com
33333:Company 3;JOHN,LENNON,johnlennon@company2.com|RINGO,STARR,rstarr@company2.com
How can I load this csv file with logstash ?
If I put this in my load.conf :
mutate {
split => { "contacts" => "|" }
}
But I want the firstname, lastname, and email in separate fields ...
Thanks for your help
I have another question with this example :
For each company, I can have 0, 1 or many contacts
How can I find the total contacts on my index, wich is different of the total of companies ?
Thanks for your reply
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.