Search in Logfiles

Hi everybody :wink:

I wrote a little script that does the following:

  • Asks for a searchstring

  • Opens the log.nsf of a server

  • Opens every log-document of the db, reads the “Events” - field

  • All lines in the log which contains the searchstring were sended by email to me (by instring-method)

Because on big logfiles this can took up to 20 min. (opening all docs etc…) I am looking for a way to do this faster.

I thougt about a way to reduce the document-collection in the first step to only this document which contain a hit. Maybe by the search-method combined with @matches-formula.

But i never used this formula and i dont know how you could do this…

or have you any further ideas?!?

Thx a lot!