Parse path with file input in logstash

I strongly suggest you don't use two GREEDYDATA patterns like that. It's inefficient and could match incorrectly. I suggest this instead:

/(?<monitor-hostname>[^/]+)\.json$
1 Like