Re: How to Index IP address

2009-03-24 Thread Alexandre Rafalovitch
Well, A log file is theoretically structured. Every log record is a - very - flat set of fields. So, every log file line would be a Lucene document. Then, one could use Solr to search, filter and facet records. Of course, this requires parsing log file back into record components. Most log files

Re: How to Index IP address

2009-03-24 Thread Matthew Runo
Well, I think you'll have the same problem. Lucene, and Solr (since it's built on Lucene) are both going to expect a structured document as input. Once you send in a bunch of documents, you can then query them for whatever you want to find. A quick search of the internets found me this Apac

Re: How to Index IP address

2009-03-24 Thread nga pham
Do you think luence is better to filter out a particular IP address from a txt file? Thank you Runo, Nga On Tue, Mar 24, 2009 at 10:21 AM, Matthew Runo wrote: > I don't think that Solr is the best thing to use for searching a text file. > I'd use grep myself, if you're on a unix-like system. >

Re: How to Index IP address

2009-03-24 Thread Matthew Runo
I don't think that Solr is the best thing to use for searching a text file. I'd use grep myself, if you're on a unix-like system. To use solr, you'd need to throw each network 'event' (GET, POST, etc etc) into an XML document, and post those into Solr so it could generate the index. You cou