Welcome! Log In Create A New Profile

Advanced

Re: Rotating Access Logs with $date_local

Igal @ getRailo.org
October 28, 2014 01:20PM
On 10/28/2014 10:12 AM, Francis Daly wrote:
> The thread starting at http://forum.nginx.org/read.php?2,254210 is not
> entirely dissimilar to this one. You may find useful answers there.
> The most useful is probably "don't do that"; but since you want to do
> that, you can probably use one "if" or multiple "map"s. f
Thank you for your reply.

You mentioned multiple maps but why can't it be done with a single one?

I managed to extract the year via

map $time_local $date {
~(?P<year>\d\d\d\d) $year;
}

so this is much progress, but shouldn't I be able to do something like

~(?P<day>\d\d\d)/(?P<month>\w\w\w)/(?P<year>\d\d\d\d)"
$year$month$day;

?

unfortunately that throws an error: unknown "year$month" variable

Thanks

--
Igal Sapir
Railo Core Developer
http://getRailo.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rotating Access Logs with $date_local

Igal @ getRailo.org October 28, 2014 11:40AM

Re: Rotating Access Logs with $date_local

Maxim Dounin October 28, 2014 11:56AM

Re: Rotating Access Logs with $date_local

Igal @ getRailo.org October 28, 2014 12:50PM

Re: Rotating Access Logs with $date_local

Francis Daly October 28, 2014 01:14PM

Re: Rotating Access Logs with $date_local

Igal @ getRailo.org October 28, 2014 01:20PM

Re: Rotating Access Logs with $date_local

Igal @ getRailo.org October 28, 2014 02:08PM

Re: Rotating Access Logs with $date_local

itpp2012 October 28, 2014 03:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready