Im trying to get a way to have SED (via search) append a string to the raw log in the results window if a condition is met anywhere in the raw log file - in the example below if i find any series of six numbers index=* | rex mode=sed "s/(?<myTest>[0-9]{1,6})/\2<myTestFound>/g
What i would like is the following -and note the "<myTestFound>" at the end <MyData>"This is my raw log with 123456 present and 987654 also present</MyData><myTestFound> But all i have been able to do so far is <MyData>"This is my raw log with 123456<myTestFound> present and 987654<myTestFound> also present</MyData> Can anyone give me some assistance in getting the first option going? thanks
... View more