Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to Extract Configuration Changes from Ambari

avatar

Hi,

I am looking to pull all configuration changes (The who, what and when for every change) made in Ambari (e.g. John Smith changed the Yarn min container size to 4gb on June 9th at 6:09am). The reason is that our compliance team want a report of all changes made to production systems.

My assumption would be using Ambari's Rest API - I just wasn't sure if someone had some examples on how best to do this.

Thanks,

Andrew

1 ACCEPTED SOLUTION

avatar
Rising Star

@Andrew Watson

Ambari APIs seem like the right way to go about this. As for getting started, you could explore the output of:

http://<ambari_server>:8080/api/v1/clusters/<cluster_name>/configurations/service_config_versions

Some of the fields in the output of above call that could fit with your requirement:

"service_name" - Name of each service

"service_config_version_note" - List the comments made against each config change

"tag" - Version# associated with the service config changes

"user" - context under which config change was done

"stack_id" - stack version against which change was done (esp. useful if you want to track against upgrades too)

This link has some information -https://cwiki.apache.org/confluence/display/AMBARI/Service+Config+Versions+API+usage

Thanks,

Vivek

View solution in original post

1 REPLY 1

avatar
Rising Star

@Andrew Watson

Ambari APIs seem like the right way to go about this. As for getting started, you could explore the output of:

http://<ambari_server>:8080/api/v1/clusters/<cluster_name>/configurations/service_config_versions

Some of the fields in the output of above call that could fit with your requirement:

"service_name" - Name of each service

"service_config_version_note" - List the comments made against each config change

"tag" - Version# associated with the service config changes

"user" - context under which config change was done

"stack_id" - stack version against which change was done (esp. useful if you want to track against upgrades too)

This link has some information -https://cwiki.apache.org/confluence/display/AMBARI/Service+Config+Versions+API+usage

Thanks,

Vivek