Ad Widget

Collapse

Read logs in windows server application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohit1993
    Junior Member
    • Feb 2018
    • 21

    #1

    Read logs in windows server application

    Hi guys,

    I want to read logs from my application so i uses below item for that.

    Code:
    logrt[D:\Bin\Service\Server-Logs\appLog_1_21Feb2018-093016.log,,,,,,]
    Its works great.

    logs format like this appLog_1_ddMMMyyyy-hhmmss.log so each day its generate new log file and every time service restart its create new log file.

    so my question is that how do i monitor logs for services.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Hi,

    what do you mean by logs for services ? Some Windows event logs ?

    Regards,
    Kaspars

    Comment

    • mohit1993
      Junior Member
      • Feb 2018
      • 21

      #3
      Originally posted by kaspars.mednis
      Hi,

      what do you mean by logs for services ? Some Windows event logs ?

      Regards,
      Kaspars
      No, Its a custom application logs which i have fetch from server

      Comment

      • kaspars.mednis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2017
        • 349

        #4
        Then where is the difference between your example
        logrt[D:\Bin\Service\Server-Logs\appLog_1_21Feb2018-093016.log,,,,,,]
        and other service logs ? you just define by the regexp, in which lines in your log file you are interested



        Regards,
        Kaspars

        Comment

        Working...