ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How can I find HAProxy log history with Fedora 26

    IT Discussion
    journald journalctl fedora haproxy
    2
    4
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by

      I know this issue is not specific to HAProxy. It is related to the change to using journald but I am not yet familiar enough with it to parse for historical information.

      Anyone out there able to give me some pointers?

      1 Reply Last reply Reply Quote 1
      • stacksofplatesS
        stacksofplates
        last edited by

        You should be able to search by unit with -u. So using sshd as an example:

        journalctl -u sshd
        

        0_1510848608298_ssh.png

        JaredBuschJ 1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch @stacksofplates
          last edited by

          @stacksofplates well that was a bust. it only shows errors related to the service itself.

          journalctl -u haproxy
          

          I need to find connection errors.
          Will hit the googles in an hour when I arrive on site.

          stacksofplatesS 1 Reply Last reply Reply Quote 1
          • stacksofplatesS
            stacksofplates @JaredBusch
            last edited by

            @jaredbusch said in How can I find HAProxy log history with Fedora 26:

            @stacksofplates well that was a bust. it only shows errors related to the service itself.

            journalctl -u haproxy
            

            I need to find connection errors.
            Will hit the googles in an hour when I arrive on site.

            Ah ok, I didn't realize it doesn't log that automatically ( I don't ever use HAProxy). This may help from https://serverfault.com/questions/647395/haproxy-not-logging-requests

            0_1510852566717_haproxy.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post