[asterisk-bugs] [JIRA] (ASTERISK-30016) logger: rotate rotatestrategy replaces ${filename} with wrong name in exec_after_rotate

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Apr 12 07:24:57 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-30016:
---------------------------------------

    Description: 
if "rotatestrategy = rotate" is selected
"$\{filename}" in "exec_after_rotate" should be relaced
by original logfile name  (..../messages)
but is replaced by rotated logfile name (..../messages.0)
So example config for "exec_after_rotate=gzip -9 $\{filename}.2" dos not work.
(gzip -9 ..../messages.0.2) 



  was:
if "rotatestrategy = rotate" is selected
"${filename}" in "exec_after_rotate" should be relaced
by original logfile name  (..../messages)
but is replaced by rotated logfile name (..../messages.0)
So example config for "exec_after_rotate=gzip -9 ${filename}.2" dos not work.
(gzip -9 ..../messages.0.2) 




> logger: rotate rotatestrategy replaces ${filename} with wrong name in exec_after_rotate
> ---------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-30016
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30016
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 18.10.1
>         Environment: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE stable/12-n235083-1ba9c8c046a XENET  amd64
> Asterisk 18.10.1
>            Reporter: Matthias Meyser
>
> if "rotatestrategy = rotate" is selected
> "$\{filename}" in "exec_after_rotate" should be relaced
> by original logfile name  (..../messages)
> but is replaced by rotated logfile name (..../messages.0)
> So example config for "exec_after_rotate=gzip -9 $\{filename}.2" dos not work.
> (gzip -9 ..../messages.0.2) 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list