• Tryptaminev@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    6 months ago

    Please excuse my ignorance, but what is grep, what are the do’s and dont’s of logging and why are people here talking about having an entire team maintain some pipeline just to handle logs?

    • rodbiren@midwest.social
      link
      fedilink
      English
      arrow-up
      9
      ·
      6 months ago

      It’s a command line tool which filters for all lines containing the query. So something like

      cat log.txt | grep Error5

      Would output only lines containing Error5

        • biribiri11
          link
          fedilink
          arrow-up
          12
          ·
          6 months ago

          In the back of my mind I know this is there, but the cat | grep pattern is just muscle memory at this point

          • allywilson
            link
            fedilink
            arrow-up
            3
            ·
            6 months ago

            I’ve been ‘told off’ so many times by the internet for my cat and grep combos that I still do it, then I remove the cat, it still works, and I feel better. shrug