How to print all the events with line numbers, I tried with len(_raw) but it didnt work
@sathishk1585 is your raw event multiline event with newline as delimiter or is it going to be some other field/pattern (if so please provide example)? Do you see multiple lines when you run your raw event search(streaming command without any transforming command)? Can you add some sample data? Mock/Anonymize any sensitive information before posting.
This is a search sentence to add a serial number.
(your search) |streamstats count as line_number