How to split a string into several parts GROK


I have a cropped string: "20021416", format "yymmddhh". How to break it into a date ("yy-mm-dd") and an hour of time

Best regards


Why using grok in that case? Probably better to use a date processor, no?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.