when I define the grok pattern like this one
(?someoperation) is the string someoperation is case sensitive or case insensitive. In other words, would it match if a file contains something like someOPERATION ?
No, it would not. If you are not capturing the result then you could use
(?i:someoperation)