Hi I am using rsyslogd 8.32.0 / Ubuntu 18.04 Bionic
I am trying to save logs to files with custom format and to specific directory with per day record. My Current Template Format is : *$template template_name, "Time: %$timestamp%, Hostname: %$hostname%, Message: %$msg%, /var/log/log_name_log/%$year%/%$month%/%$day%/%$hour%.log"* **.* ?log_name_log* *& ~* *I want like this in file : * *Time : 2020-05-04 13:00, Hostname: hostname, Message: message,* This is not working. Search net a lot but could not understand how to put in one line or another way. Thank you <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> _______________________________________________ rsyslog mailing list https://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

