Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21096

Provide additional logging for config audit log

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • trunk, 2.5.2, 2.4.4
    • ambari-server
    • None

    Description

      Improve logging of ambari-config-changes.log to include names, timestamps, and versions.

      Current log is of the form,

      2017-05-12 22:14:45,541  INFO - Cluster 'c1' changed by: 'admin'; service_name='ZOOKEEPER' config_group='Default' config_group_id='-1' version='1'
      2017-05-12 22:14:45,562  INFO - cluster 'c1' changed by: 'admin'; type='zookeeper-log4j' tag='version1'
      2017-05-12 22:14:45,562  INFO - cluster 'c1' changed by: 'admin'; type='zookeeper-logsearch-conf' tag='version1'
      2017-05-12 22:14:45,562  INFO - cluster 'c1' changed by: 'admin'; type='zookeeper-env' tag='version1'
      2017-05-12 22:14:45,562  INFO - cluster 'c1' changed by: 'admin'; type='zoo.cfg' tag='version1'
      
      # Changed default config
      
      2017-05-12 22:18:06,277  INFO - Cluster 'c1' changed by: 'admin'; service_name='ZOOKEEPER' config_group='Default' config_group_id='-1' version='2'
      2017-05-12 22:18:06,278  INFO - cluster 'c1' changed by: 'admin'; type='zoo.cfg' tag='version1494627510038'
      
      # Changed config in Custom_ZK_05
      
      2017-05-12 22:22:48,957  INFO - User admin is creating new configuration group Custom_ZK_05 for tag ZOOKEEPER in cluster c1
      2017-05-12 22:23:25,050  INFO - Cluster 'c1' changed by: 'admin'; service_name='ZOOKEEPER' config_group='Default' config_group_id='-1' version='3'
      2017-05-12 22:23:25,050  INFO - cluster 'c1' changed by: 'admin'; type='zoo.cfg' tag='version1494627828482'
      

      Will add the Note field, config group name (not just the id), config type, and perhaps number of hosts affected.

      Attachments

        1. AMBARI-21096.addendum.branch-2.5.patch
          2 kB
          Alejandro Fernandez
        2. AMBARI-21096.addendum.trunk.patch
          2 kB
          Alejandro Fernandez
        3. AMBARI-21096.branch-2.5.patch
          16 kB
          Alejandro Fernandez
        4. AMBARI-21096.trunk.patch
          16 kB
          Alejandro Fernandez

        Issue Links

          Activity

            People

              afernandez Alejandro Fernandez
              afernandez Alejandro Fernandez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: