How to split a string into several parts GROK

Hello,

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

Welcome

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