specify destination filename in message?
Howdy All! I am not sure if this is possible with syslog-ng alone, but I thought I would see if any clever minds could conceive a solution ;-). I would like to be able to specify a destination file by putting the filename in the message itself. My thought is that I could include the filename as the file thing in the message and then use some pattern matching/replacement macro in the configuration file to route the message to the proper file. Is this possible? AtDhVaAnNkCsE! -- ________________________ Robert Ulbrich Software Developer CAPSHER Technology, Inc. (979) 776-7520x150 rulbrich@capsher.com ________________________
Hi, Robert Ulbrich <rulbrich@capsher.com> [20080507 11:17:18 -0500]:
I am not sure if this is possible with syslog-ng alone, but I thought I would see if any clever minds could conceive a solution ;-).
I would like to be able to specify a destination file by putting the filename in the message itself. My thought is that I could include the filename as the file thing in the message and then use some pattern matching/replacement macro in the configuration file to route the message to the proper file.
Is this possible?
"Thats just all crazy talk!" :) What is the problem you are trying to solve? Cheers Alex
Hi,
Robert Ulbrich <rulbrich at capsher.com <https://lists.balabit.hu/mailman/listinfo/syslog-ng>> [20080507 11:17:18 -0500]:
/ />/ I am not sure if this is possible with syslog-ng alone, but I thought I />/ would see if any clever minds could conceive a solution ;-). />/ />/ I would like to be able to specify a destination file by putting the />/ filename in the message itself. My thought is that I could include the />/ filename as the file thing in the message and then use some pattern />/ matching/replacement macro in the configuration file to route the />/ message to the proper file. />/ />/ Is this possible? />/ /"Thats just all crazy talk!" :)
What is the problem you are trying to solve?
Cheers
Alex Sorry if I was unclear.
I would like to be able to configure syslog-ng to direct messages into the file specified by the filename contained within the message itself.
On Wed, May 7, 2008 at 12:53 PM, Robert Ulbrich <rulbrich@capsher.com> wrote:
I would like to be able to configure syslog-ng to direct messages into the file specified by the filename contained within the message itself.
That's the solution you've picked. What is the reasoning which lead you to pick this solution? If nothing else, there are significant security and denial of service issues inherent in this idea, especially when accepting UDP syslog messages, trivially spoofable. Kevin
participants (3)
-
Alexander Clouter
-
K K
-
Robert Ulbrich