when this message is coming, does it take more cpu ?
I'm not sure exactly what you're asking, but loading grok patterns from a file comes at a (very small) cost when Logstash starts up but the use of custom grok patterns while matching strings doesn't require any additional CPU.
thanks