Think of the log file as a flat database, each line/entry a "row". So, each
log line/entry would need to be added to Solr as a separate document.
Maybe you could do this using DIH and a LineEntityProcessor and
RegexTransformer, DateFormatTransformer, etc.
-- Jack Krupansky
-----Original Message-----
From: harshadmehta
Sent: Thursday, August 30, 2012 11:03 PM
To: solr-user@lucene.apache.org
Subject: need basic information
I am trying to use solr for processing logs and searching them.
But i dont see a clear sample anywhere for this type of scenario.
i need to index plain text files , example content -
yyyy-mm-dd : Account 123 created
yyyy-mm-dd : Account 123 updated
....
Account 123 being spread across multiple files.
How do i index this so that i can search Account 123 activity over a date
range.
Using default solr config search, i will get each log file in full that has
any entry for Account 123 plus all other Accounts in those files as well.
Thanks
--
View this message in context:
http://lucene.472066.n3.nabble.com/need-basic-information-tp4004588.html
Sent from the Solr - User mailing list archive at Nabble.com.