Hi,
I am trying to split an event to multiple events. I want to split after 12th character. The string contains space as well.
E.g,
aaaaa bbb aa aaaaa bcb aa accaa bbb aa.................................
I want to get aaaaa bbb aa
as one event. aaaaa bcb aa
as another event and so on
I tried with BREAK_ONLY_BEFORE and LINE_BREAKER parameters with different regular expressions, but not working. I gave SHOULD_LINEMERGE as false. Please help to create a way to achieve this.
Thanks,
Jyo
Does:
LINE_BREAKER = .{12}()
SHOULD_LINEMERGE=false
Work?
Or possibly:
TRUNCATE=12
What about this?
^.{12}\s(?P.{12})
I tried this , but not working
Sorry. Use this.
|rex field = _raw "^(?P<field1>.{12})\s(?P<field2>.{12})"
I'm sorry. I forgot the code sample setting.
|rex field = _raw "^.{12}\s(?P<newfield>.{12})"
Does:
LINE_BREAKER = .{12}()
SHOULD_LINEMERGE=false
Work?
Or possibly:
TRUNCATE=12
I tried the first option. It is working. But the truncate is giving only the first 12 characters as a single event