配置rsyslog以在日志文件名称更改时监视目录文件
我有一项服务,该服务每小时创建一个新的日志文件,文件名中的小时为小时,即ecs-agent.log.2019-03-26-08 每次文件更改时,rsyslog均无法识别更改。 conf文件中的以下设置将不起作用:
org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: java.io.IOException:
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:74)
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:268)
at org.springframework.data.redis.connection.lettuce.LettuceHashCommands.convertLettuceAccessException(LettuceHashCommands.java:471)
at org.springframework.data.redis.connection.lettuce.LettuceHashCommands.hVals(LettuceHashCommands.java:371)
at org.springframework.data.redis.connection.DefaultedRedisConnection.hVals(DefaultedRedisConnection.java:980)
at org.springframework.data.redis.core.DefaultHashOperations.lambda$values$11(DefaultHashOperations.java:219)
由于每次文件夹中只有一个日志文件处于活动状态-是否要配置rsyslog来监视该文件夹?