I have Server with 280 Tera of logs
I want to index the .txt ,.DB ,*.pcap or *.log file.
I try to index the txt file after download plugin mapper-documment with
this command:
curl -XPUT 'http://localhost:9200/test/diag_auto/1' -d '{ "user" :
"diag_auto", "post_date" : "2013-5-5", "my_attachment" : { "_attachement" :
"/extra/log/level.txt" } }
this is not work
After I want to do simply and advanced search:
a) Search word or line in the log
I want to receive back in wiche file is displayed and also the line in the
file.
b) Search series of word example: i have this,
Line 0 = B
Line 1 = A
Line 2 = S
Line 3 = C
Line 4 = B
Line 5 = C
I send command to search the first A and only after B and C so i will have
back this : Line 1 = A, Line 4 = B, Line 5 = C
a) ok.
b) with attachment plugin, everything will be flatten. So your lines will be indexed as "B A S C B C". Note that A is a stop word and won't be indexed.
BTW, have a look at logstash and Kibana project. It should help you here.
HTH
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
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.