Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6107

Have some log messages designed for machine parsing, either real-time or post-mortem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.21.0
    • None
    • None
    • None

    Description

      Many programs take the log output of bits of Hadoop, and try and parse it. Some may also put their own back end behind commons-logging, to capture the input without going via Log4J, so as to keep the output more machine-readable.

      These programs need log messages that

      1. are easy to parse by a regexp or other simple string parse (consider quoting values, etc)
      2. push out the full exception chain rather than stringify() bits of it
      3. stay stable across versions
      4. log the things the tools need to analyse: events, data volumes, errors

      For these logging tools, ease of parsing, retention of data and stability over time take the edge over readability. In HADOOP-5073, Jiaqi Tan proposed marking some of the existing log events as evolving towards stability. As someone who regulary patches log messages to improve diagnostics, this creates a conflict of interest. For me, good logs are ones that help people debug their problems without anyone else helping, and if that means improving the text, so be it. Tools like Chukwa have a different need.

      What to do? Some options

      1. Have some messages that are designed purely for other programs to handle
      2. Have some logs specifically for machines, to which we log alongside the human-centric messages
      3. Fix many of the common messages, then leave them alone.
      4. Mark log messages to be left alone (somehow)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: