AnsweredAssumed Answered

How to make separate log files for each API by using syslog

Question asked by rajasekhar33 on Apr 21, 2017
Latest reply on Apr 26, 2017 by rajasekhar33

Hello All,

 

       I want to take the logs of specific APIs or Webservices separately. I have done the setup by creating syslog mechanism but every API log storing in /va/log/messages.

 

But i don't want to write the logs into messages, I want each API write the logs into separate log file which i mention Like

 

Service1 log has to write in /var/log/1.log

Service2 log has to write in /var/log/2.log

------------------

------------------ 

Service10 log has to write in /var/log/10.log        

 

Hope my requirement is clear. Please suggest me how to achieve this.

 

Regards

Rajasekhar

Outcomes