Score:0

log events are dumped in var/log/messages and var/log/mse/mediaquality.log file, but i want those events only in var/log/mse/mediaquality.log

td flag

to stop those events I used & ~ at the end of the script. This fixed my bug, but my functional tests are not able to capture these events. I am using Logstash for this. So my fix is to stop the Rsyslog to push the events to Logstash, And my tests use the events from the Logstash which are pushed by the Rsyslog. So I need to figure out how to enable Logstash to receive these events from the Rsyslog without sending those events to var/log/messages.

# Send mediaquality logs to separate file
#
# # create a channel for log rotation
$outchannel <path for the outchannel>
# 
# # create a template to output just the mse event json
$template rawMsgFormat,"%msg%\n"
#
local5.*                :omfile:$mediaquality;rawMsgFormat

& stop 

eDonkey avatar
sl flag
I'm guessing this isnt in `/etc/rsyslog.conf`. If you haven't edited that, there should be a line which sends logs to `/var/log/messages`
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.