linux find命令搜索日志内容 查询服务器log日志 find /opt/logs/ -name "filename.log" | xargs grep -a "这里是要查询的字符" 加上-a 是为了不报查出 binary 的错 服务器会返回 包含所查字符的整行日志信息