Ad Widget

Collapse

JavaScript logging location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kdhawkins@sherwin.com
    Junior Member
    • Nov 2024
    • 4

    #1

    JavaScript logging location

    I am hoping someone can point me in the right direction. I have inherited a project that is using custom JavaScript for the ServiceNow media type. The code has many instances that are using the Zabbic.log function. In reviewing the Zabbix documentation it just states that this is how to interact with Zabbix logs. These messages do not appear to be going into the agent or server log on either the server or the host. Can anyone tell me where these logs are located? Help would be greatly appreciated.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    It should go to server.log. But it also depends on what level log messages there are..

    Comment

    • kdhawkins@sherwin.com
      Junior Member
      • Nov 2024
      • 4

      #3
      I really appreciate your response. Thank you.
      I am using Zabbix.Log(4, <msg>); in the JavaScript. None of these messages are showing in the server logs.
      Do you know if using a proxy changes the logging? Our Zabbix is configured to go through a proxy. Currently
      I don't have access to the proxy servers to review the logs.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Default logging level is 3. (DebugLevel parameter in server config). So having "4" there only log your messages if debug level is set to 4... Lower it to 3 and you will see it in normal log as well.

        Comment

        • kdhawkins@sherwin.com
          Junior Member
          • Nov 2024
          • 4

          #5
          I really appreciate your reply. I will give this a shot. Learning how the pieces parts of Zabbix works over the last couple of weeks has been fun.
          Thank you have have a great holiday.

          Comment

          • kdhawkins@sherwin.com
            Junior Member
            • Nov 2024
            • 4

            #6
            I wanted to thank you again. That is exactly what I needed. I see the info in the logs now!!

            Comment

            • mrnobody
              Member
              • Oct 2024
              • 61

              #7

              Comment

              Working...