Interestingly we see the '|' delimiter being used quite a lot, especially when people are formatting their own log based event data. I guess it looks a bit like a column ;)
As you rightly say you could use a synthetic groovy script like option1 below however its not going to be as fast as option 2:
Option 2: split,\|,1 (set the source field to be message)
Why? Option 1 is going to execute a groovy-script (which can be pretty fast), then the groovy script will use a pattern match to do the split. Option 2 just scans the line and returns the correct item. In terms of performance its going to be about 10x faster.
I Hope that helps,
Cheers N.
-- Edited by neilson9 on Monday 15th of October 2012 02:00:20 PM