如何过滤包含特定字符串的日志文件中的行?

how to filter lines in log file containing particular string?

我通过输入和输出中的文件插件将日志文件作为输入 我需要的是包含特定字符串的行吗?那么我需要在过滤器插件中做些什么来只过滤那些包含字符串的行,例如 "volume"?

听起来像 conditional application of the drop{} 过滤器。