[
https://issues.apache.org/jira/browse/LOG4J2-3656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17704242#comment-17704242
]
Ralph Goers commented on LOG4J2-3656:
-------------------------------------
I see a few things in this configuration that don't look right:
# There are multiple appenders declared with
{code:java}
filePattern="/shared/logs/applogs/${env:OM_POD_NAME}/${env:OM_POD_NAME}.log.D%d{yyyyMMddHH}%i"
{code}
This will definitely create problems at rollover.
# The delete actions all seem to have
{code:java}
<IfFileName glob="*.log.D%d{yyyyMMddHH}%i"> {code}
I don't believe that is a valid glob. I see nothing in the code that will
resolve %d and %i.
To diagnose this further I would ask you to set status="Debug" on the
configuration or run with -Dlog4j2.debug=true and provide that output.
> Log4j2 Rolling Logs Throwing java.nio.file.AccessDeniedException
> ----------------------------------------------------------------
>
> Key: LOG4J2-3656
> URL: https://issues.apache.org/jira/browse/LOG4J2-3656
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.17.1
> Reporter: R.Hurley
> Priority: Major
> Labels: Log4j2, log4j2.xml, log4jappender
> Fix For: 2.17.1
>
> Attachments: log4jextrasnippet.txt
>
>
> Log4j2 Rolling Log Appender setup is failing, getting
> java.nio.file.NoSuchFileException After the logs reach the file count
> mentioned in the Log4j2 xml file, we are seeing the above mentioned issue
> when the logs are rolling over
> [All the files and folders in the location are having 777 permissions.]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)