Score:0

configuring rsyslog to read from network interface, reformat it with template and output to redis

br flag

I have a interface log something like:

Apr 19 16:47:37 2022-04-19 16: 48:59 TE-GI-FW-01 %%something:IPVer=4    pt=udp  DPort=1701  SIP=2.2.2.2 SPort=41753                         

Now I what to output this to redis with key=SIP:DPort (SIP and DPort will get relative values from input message) and whole input string as value.

How I can extract SIP and DPort from input message with templates.

Thanks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.