logging - how to define log4j.properties for MongoDB -
i have been using wowza stream engine content streaming , used mysql storing logs coming wowza streaming of log4j mysql definitions. before using mysql, utilised instructions in official wowza web site. link below: https://www.wowza.com/forums/content.php?130-how-to-log-to-a-mysql-database
however, because of fact mysql became slower day day, (sometimes crashing) while wowza streaming logs coming , accumulating on db (millions) ; intended move db log system mongodb. in accordance this, used below log4j mongodb statements in order work in mysql db.
log4j.appender.mongodb=org.apache.log4j.jdbc.jdbcappender log4j.appender.mongodb= com.mongodb.jdbc.mongodriver log4j.appender.mongodb.hostname=localhost log4j.appender.mongodb.port= 27017 log4j.appender.mongodb.driver=org.mongodb.mongodb-driver log4j.appender.mongodb=org.log4mongo.mongodbappender log4j.appender.mongodb.databasename=primarydb log4j.appender.mongodb.collectionname=wowza_log log4j.appender.mongodb.layout=org.log4mongo.mongodbpatternlayout log4j.appender.mongodb=primarydb.wowza_log.insert({server_ip= {server_ip}, date= {date}, time= {time}, ...}
moreover, needed mongodb setup , service setup processes have been accomplished correctly.
consequently, have set robomongo see , observe collection ('wowza_log') created wowza streaming. however, after starting sample mp3 wowza, connection seems set, there no collection named wowza_log created, nothing happens in mongodb see robomongo. got stuck @ point , wondered if there people can me rid of problem.
Comments
Post a Comment