Custom Grok Patterns in Docker Logstash

I'm using Logstash as a Docker container, and I know I can add a line like the following inside a grok block

patterns_dir => ["/opt/logstash/patterns", "/opt/logstash/extra_patterns"]

However, since I am using this as Docker, I want to be able to add these permanently, so I don't have to create this new directory every time I restart my container. Is this possible?

Update: I found out about the pattern_definitions for grok. This is probably what I want.

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