Dynamic Directory

Tags:

#1 jprouty

It is possible to create dynamic directories per host

I would like to separate all logs by host then year then month day

I can create dynamic file names base on hostname

  • $Hostname + "_" + month(now())

Thank you

#2 rafDeactivated Nxlog ✓
#1 jprouty
It is possible to create dynamic directories per host I would like to separate all logs by host then year then month day I can create dynamic file names base on hostname $Hostname + "_" + month(now()) Thank you

Hey,

Take a look at the Procedures list, in particular - dir_make() function. This may help you :)

Good luck, Raf