Skip to main content

Can I remove the time stamp from Raw events and keep only the remaining message for raw?

Just a quick example, let's assume you have a timestamp in_raw that you want to remove from the event since you see a second timestamp already in the event like this:

IN:

70_67d7f949e109476eb55bf4ff26c6b869.png

A simple Mask function can include a regular expression like this:

\w+\s+\d+\s+\d{2}:\d{2}:\d{2}\s, that matches the first date in the event, Jun 9 16:17:49

Add a Mask Function and to remove the matching timestamp, just use empty quotes in the Replace Expression.

70_731caec65cbe4af3afd714b009f59c97.png

OUT:

70_6fa4f111516541978b6ee4ed8368d5e7.png

Notice that the output is colored indicating the event was altered. One final note, is that you might want to add an AutoTimestamp function just in case the timestamp is not accurate, in this case notice the timestamp shows as 11:14:49.000 when it should be 11:17:49.438, including the milliseconds.

70_2ac86bfc39fd4cf7ab41555fd3409ed9.png

Updated Event with Corrected Timestamp

70_4f9e74d11cfe4a178f54b0fdfab4c2ce.png

Reply