You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/02/19 10:15:18 UTC

[ambari] branch branch-feature-AMBARI-22842 updated (10d3d39 -> 4df8e38)

This is an automated email from the ASF dual-hosted git repository.

oleewere pushed a change to branch branch-feature-AMBARI-22842
in repository https://gitbox.apache.org/repos/asf/ambari.git.


    omit 10d3d39  AMBARI-22825 Add different options of field name display
    omit 22d4c7e  AMBARI-22814 Add different options of component name display
    omit 465c1a7  AMBARI-22842. Provide field / component UI metadata from backend
     add 1cc31ff  AMBARI-22491. Moving Metrics Collector Forces ZooKeeper Server Install on Target Host (alexantonenko)
     add c511109  AMBARI-22918 Decommission RegionServer fails when kerberos is enabled
     add 91e4286  Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ambari into trunk
     add d117ce8  AMBARI-23001. HA, Move wizard shows error modal on selection (alexantonenko)
     add 4cf5be3  Merge pull request #373 from hiveww/AMBARI-23001-trunk
     add 6c3d925  [AMBARI-22955] Bulk operation to turn on Maintanance Mode on hosts does not work. (#317)
     add 8ac7440  AMBARI-22993. Get rid of overriding solr start script during infra solr build (#364)
     add 236ca47  Adding namenode clusterId to amabari API (#377)
     add c13b5798 [AMBARI-22998] Wrong user used to execute the Spark/Livy Server service check
     add 61b6106  [AMBARI-22998] Wrong user used to execute the Spark/Livy Server service check
     add 903a3de  AMBARI-23003. NN Federation Wizard: implement step1  (akovalenko)
     add 447485d  AMBARI-20559. Create a base class for caching in ambari-agent. (aonishuk)
     add b69d52e  AMBARI-20542 Fixed configuration type validation in case of blueprint deployments (unit tests added, removed unnecessary NP checks).
     add faf09cd  AMBARI-20577. Not all config groups are shown in the config history table (onechiporenko)
     add 901a39e  AMBARI-20584. Pig view doesn't load in older version of firefox (Venkata Sairam via pallavkul)
     add 0adacbf  Revert "AMBARI-20584. Pig view doesn't load in older version of firefox (Venkata Sairam via pallavkul)"
     add 08523c6  AMBARI-20584. Pig view doesn't load in older version of firefox (Venkata Sairam via pallavkul)
     add daf6071  AMBARI-20585. Hive view(1.5) doesn't load in older version of firefox (Venkata Sairam via pallavkul)
     add 3b27cf1  AMBARI-20525. Unlimited Key JCE policy is enabled or not on each host (Attila Magyar via adoroszlai)
     add 5e84dc7  AMBARI-20484. Custom properties of Alert Target are not reset after last Alert Target being created (alexantonenko)
     add ad08d0a  AMBARI-20582 Single process executor possibly can cause deadlock.
     add 8526f86  AMBARI-20499. Move Log Search web content to a new module (ambari-logsearch-web) (oleewere)
     add f7abfb2  AMBARI-20588 Remove deprecated code of status filter on Hosts page. (atkach)
     add 7f7938d  AMBARI-20536: Alerts Which Fallback To A Port In Absence of a URI Fail (Madhuvanthi Radhakrishnan via jluniya)
     add 1219c61  AMBARI-20528. Rename Log Search Portal module to Log Search Server (oleewere)
     add dc9cd35  AMBARI-20541. Rename ambari-logsearch-solr-client module to ambari-infra-solr-client (oleewere)
     add bc01e50  AMBARI-20400 Yarn should not copy Tez and Slider tar ball if Tez and Sliders are not installed on the cluster (dili)
     add b1c8852  AMBARI-20589 Ambari Admin Web: optimize string constants definition. (ababiichuk)
     add 7bb3d8e  AMBARI-20550. Test and fix new Accordions styles on Ambari.(xiwang)
     add 82e31c1  AMBARI-20597 - Pig exectype default value seems to be not changing after upgrade (jonathanhurley)
     add fcb9d22  AMBARI-20547. Update pxf-profiles.xml config file comments for all Hive-related profiles in PXF.
     add 494c26a  AMBARI-20587. Hive2: Enable LDAP support for Hive2.0. (dipayanb)
     add f14ede8  AMBARI-20599. HDP 3.0: stack advisor validation fails for Hive.(vbrodetskyi)
     add 61a884c  AMBARI-20598 : added support for stats of partitioned table for hive server version 2.1 and above (nitirajrathore)
     add 3cf12c9  AMBARI-20602. Comparison for configs with list of hostNames doesn't show all hosts correctly (onechiporenko)
     add b65cc47  AMBARI-20604. Infinite spinner near config property (akovalenko)
     add f48f5de  AMBARI-20594 Added hive service validator impelemtation to signal invalid blueprint / cluster template
     add 61deee9  AMBARI-20566. Create ambari-infra module in Ambari (move solr modules from ambari-logsearch) (oleewere)
     add e751030  AMBARI-20583. Allow for larger Ephemeral DH Keys in Ambari server running on JVM versions 1.8 and above (Attila Magyar via sandor_magyari)
     add 7766742  AMBARI-20593. EU/RU Auto-Retry does not reschedule task when host is not heartbeating before task is scheduled and doesn't have a start time (alejandro)
     add f6078ea3 AMBARI-20601. Prune files contained in zkmigrator.jar to a minimal set (Attila Magyar via magyari_sandor)
     add 64b132b  AMBARI-20461 override_uid should set to false when upgrading Ambari 2.1 to 2.2 or newer with custom stacks (dili)
     add 3e559d7  Revert "AMBARI-20400 Yarn should not copy Tez and Slider tar ball if Tez and Sliders are not installed on the cluster (dili)"
     add c34f768  AMBARI-20607. Provide helper for adding data-qa attributes (akovalenko)
     add b56eb95  AMBARI-20613 - Host Filtering interaction is confusing and cumbersome to perform simple filtering (rzang)
     add 210b70d  Updated team page. (yusaku)
     add be9df63  AMBARI-20565. Ambari Agent Alert to detect when 'hdp-select versions' reports an error (alejandro)
     add 1246ee2  AMBARI-20612. Fetching running application logs results in java.io.IOException (Madhuvanthi Radhakrishnan via smohanty)
     add 3bcf2ad  AMBARI-20611. Add disable security option to infra-solr-client (oleewere)
     add df752f8  AMBARI-20620. Add hashing support into agent for caches ; add topology and metadata cache (aonishuk)
     add 13423dc  AMBARI-20619. JS error on Step6 installer when click "all/none" (onechiporenko)
     add e808035  AMBARI-19149. Code cleanup: redundant type arguments
     add 27af648  AMBARI-20609. Fix Install Wizard data attribute (onechiporenko)
     add 455870b  AMBARI-20621 Implement handling of conditional expressions for data attributes helper. (ababiichuk)
     add 102dcde  AMBARI-20553 : Ambari script error for ams-hbase while writing to Amazon s3 on a cluster with no HDFS. (avijayan)
     add 179b356  AMBARI-20600 : AMS grafana restart fails with ssl error after upgrading from 2.4.2.0. (avijayan)
     add 5b71200  AMBARI-20622. yarn resource manager failed to start after upgrade with unable to construct queue exception (ncole)
     add 16b158c  AMBARI-20610. Unable to scroll down collapsed navigation bar if it's higher that viewport.(xiwang)
     add 8d35583  AMBARI-20614. Auto-Start Services Switch button broken.(xiwang)
     add 02e38ad  AMBARI-18716. Move HDFS, HBASE YARN, GANGLIA, OOZIE RCO from stack to service level (aonishuk)
     add 441aaa4  AMBARI-18715. Move ZOOKEEPER, KAFKA, STORM, RANGER, RANGER_KMS, AMS, KERBEROS role command orders from stack to service definition (aonishuk)
     add 47a9421  AMBARI-18714. Move HIVE, PIG, SPARK, SPARK2, SLIDER, SQOOP, ACCUMULO, FALCON, KNOX,, MAHOUT, TEZ role command orders from stack to service definitions (aonishuk)
     add 623c12c  AMBARI-20603. Hadoop QA compiles trunk twice
     add 0ef14f5  AMBARI-20617. Display log level, method name from stack_advisor in ambari-server.log (dlysnichenko)
     add 192a30f  AMBARI-20544. Prune files contained in jcepolicyinfo.jar to a minimal set (rlevas)
     add f6917a9  AMBARI-20635. Implement XML processing best practices in Hive View. (dipayanb)
     add c614fb7  AMBARI-20609. Fix Install Wizard data attribute (alexantonenko)
     add 77fab90  AMBARI-20400 Yarn should not copy Tez and Slider tar ball if Tez and Sliders are not installed on the cluster (dili)
     add 841e5b8  AMBARI-20631. Hadoop QA link to RAT warnings is wrong
     add 9433038  AMBARI-20546 EU/RU service check should skip services that do not have config types (dili)
     add 14c2b80  AMBARI-20623. Cleanup swagger rest api doc for Log Search (oleewere)
     add 44ceae6  Doc changes for Ambari-2.5.0 (avijayan)
     add d477af5  Updated team page. (yusaku)
     add fc6ab24  AMBARI-20543. In case of IBM Power, test_CompressionTool[lzo] fails with lzo.GPLNativeCodeLoader: Could not load native gpl library (Andrew Onishuk via smohanty)
     add 72b7842  AMBARI-20630. Integrate stomp client library into agent code (aonishuk)
     add daad28f  AMBARI-20609. Fix Install Wizard data attribute (onechiporenko)
     add ae647a2  AMBARI-20609 Fix Install Wizard data attribute. (ababiichuk)
     add ebfc848  AMBARI-20628. Ambari doesn't set properties correctly (magyari_sandor)
     add 89feb0a  AMBARI-20637 Cover service views with unit tests. (atkach)
     add 34c428b  AMBARI-20643: Remove configuring JDBC dependencies that are getting configured for Zeppelin interpreter as it causes more confusion than the resolution. (Prabhjyot Singh via r-kamath)
     add b9d9612  AMBARI-20609. Fix Install Wizard data attribute. Step 10 (alexantonenko)
     add d13e6fa  AMBARI-20609 Fix Install Wizard data attribute. (akovalenko)
     add dc05119  AMBARI-20540. Referenced Kerberos identity definitions should be created and distributed only if the referenced service or component is installed
     add 00f269b  AMBARI-20609 Fix Install Wizard data attribute. (ababiichuk)
     add c17979c  AMBARI-20586. Add (optional) master_kdcs to kerberos-env and generated krb5.conf file (Balazs Bence Sari via adoroszlai)
     add 51143f3  AMBARI-20644. Ambari Log Search Web - fix some build npm errors (oleewere)
     add 55992e5  AMBARI-20647. Druid Superset Password gets printed in installation logs. (Nishant Bangarwa via Swapan Shridhar).
     add 805af82  AMBARI-20649. Add public repo URLs for HDP-2.6 repo (smohanty)
     add aba473e  AMBARI-20646 - Large Long Running Requests Can Slow Down the ActionScheduler (jonathanhurley)
     add b4e15b7  AMBARI-20641. Pig view fails to load when using ambari thru KNOX. (gauravn7)
     add c7612bc  AMBARI-20645. Integrate coilmq stomp server as a mock server for ambari-agent unittests.  (aonishuk)
     add 4195135  AMBARI-20636 Allow users to add custom configs for Ranger service in all plugins (mugdha)
     add a022ea9  AMBARI-20596. Cleanup temporary files needed for downloading client configurations response (Attila Magyar via adoroszlai)
     add 8bef3b4  AMBARI-20661. Create json files with stomp events payload for ambari-agent unittests (aonishuk)
     add e0412e8  AMBARI-20596. Cleanup temporary files needed for downloading client configurations response -- fix checkstyle error (Attila Magyar via adoroszlai)
     add 27da4c8  AMBARI-20652. HDP 3.0 TP - add Pig client: configs, metainfo, descriptors, service advisor and etc.(vbrodetskyi)
     add 5c91e40  AMBARI-20654.Workflow should retain job.properties in submission modal window.(M Madhan Mohan Reddy via padmapriyanitt)
     add 9733808  AMBARI-20571. Remove property atlas.cluster.name from hive-site during HDP stack upgrades (aonishuk)
     add 4f5ac09  AMBARI-19149. Code cleanup: StringBuffer
     add ccf9edb  AMBARI-20632. With multi-process StatusCommandsExecutor, Status commands are taking too long to report back (echekanskiy)
     add d972592  AMBARI-20640. Upgrade server-side actions should be performed only one time per group (ncole)
     add 314e41e  AMBARI-20579. Ambari-server failed to stop (aonishuk)
     add 88b82fe  AMBARI-20652. Test fix.HDP 3.0 TP - add Pig client: configs, metainfo, descriptors, service advisor and etc.(vbrodetskyi)
     add 1352fa9  AMBARI-20665 Merge duplicated logic of Persist. (atkach)
     add 50a41a8  AMBARI-20625. Hadoop QA javac warnings increase check is broken -- fix for ambari-server
     add 1b663da  AMBARI-20663. During finalize of HDP upgrade, Ambari should provide a message regarding HBase snapshots (dlysnichenko)
     add 038f637  AMBARI-19149. Code cleanup: String concatenation in StringBuilder.append()
     add 6e5c12f  AMBARI-20648. Ambari Agent Distro/Conf Select Versions alert is not functioning correctly since missing format index when using Python 2.6 (alejandro)
     add 632ba71  AMBARI-20655.Need to improve the grouping of the nodes available in transition section of WFM(M Madhan Mohan Reddy via padmapriyanitt)
     add 13729ed  AMBARI-20653.Bad user experience in workflow credential creation.(M Madhan Mohan Reddy via padmapriyanitt)
     add caf6a25  AMBARI-20656.Coordinator and bundle should retain job.properties in submission modal window(M Madhan Mohan Reddy via padmapriyanitt)
     add aeb6707  AMBARI-20658.Click of 'NEW JOB' button doesn't create new worksheet tab. (Venkata Sairam via padmapriyanitt)
     add 8c10a07  AMBARI-20558. HiveView does not work on WASB ACLs cluster (Gaurav Nagar via nitirajrathore)
     add 7d4df5b  AMBARI-20573. Hive view 2.0 fails on LLAP (Gaurav Nagar via nitirajrathore)
     add 27105de  AMBARI-20664. Remove hardcoding of /usr/hdp by AMBARI-20543 needed for IBM Power (aonishuk)
     add 0472e5f  AMBARI-20659.Notification widgets position have been fixed and size have been reduced.(Venkata Sairam via padmapriyanitt)
     add cc88312  AMBARI-20662.Need to auto populate the workflow parameters if its already defined in the global space.(M Madhan Mohan Reddy via padmapriyanitt)
     add be23039  AMBARI-20413.The Zoom feature in WFM, hides the WF completely either with Maximum and Min(M Madhan Nohan Reddy via padmapriyanitt)
     add 112f7d4  AMBARI-20629 Take Ambari Cluster Name as a property in Ranger plugin configs (mugdha)
     add 14d2581  AMBARI-20668 Component identities is not updated in Add Service Wizard (akovalenko)
     add b38ba22  AMBARI-20669 Enable values binding for data attribute helper. (ababiichuk)
     add 01e0c69  AMBARI-20671 Host checks: incorrect message for single host warnings. (ababiichuk)
     add 45d8baf  AMBARI-20592 ServicePresences check should also check for services dropped from a release (dili)
     add 64447e5  AMBARI-20672 - Cluster Merge At End Of Upgrade Creation Cascades Unnecessarily (jonathanhurley)
     add 259dc90  AMBARI-20672 - Cluster Merge At End Of Upgrade Creation Cascades Unnecessarily (part2) (jonathanhurley)
     add 8a2dfa4  AMBARI-20651 - When in Upgrade paused state, links should be disabled for less privileged user (rzang)
     add f6fbe4b  AMBARI-20657. Usability: screen jumps when you scroll down (pallavkul)
     add c3361d9  AMBARI-20660. HiveView2.0 scrolling in query tab does not work properly for a longer query (pallavkul)
     add 5f99b1a  AMBARI-20681 Select Version step of installer: repo URL validation message issues. (ababiichuk)
     add 426e895  AMBARI-20683 Reduce size of persisted configurations in wizards. (atkach)
     add c7021a6  AMBARI-20548. Grafana dashboard changes for some new llap daemon metrics (vivekratnavel)
     add 8c58e67  AMBARI-20676.User should be able to visualize inherited properties while submitting the workflow .(M Madhan Mohan Reddy via padmapriyanitt)
     add fb4637b  AMBARI-20677.Centering workflows for zoom breaks when multiple tabs exists(M Madhan Mohan Reddy via padmapriyanitt)
     add 8de3961  AMBARI-20684. Implement a websocket adapter for stomp.py (aonishuk)
     add b2bcc38  AMBARI-20591 In case of HA-enabled cluster on shutting down Active Master, Ambari rest api call and HBase quick links show two Active Masters (dsen)
     add ecc3fdf  AMBARI-20670 Node manager start extremely slow when YARN NM local dirs are very large (dgrinenko via dsen)
     add 9fecba8  AMBARI-20691. Fix the default service version numbers in HDP-2.6 service metainfo files (dgrinenko via dlysnichenko)
     add 6ec4bdb  AMBARI-20685 - Upgrade Progress Dialog Executes Query Which Causes StackOverflow in JPA (jonathanhurley)
     add 0f406c5  AMBARI-20693. Principal suffix field should be a non mandatory field in configure identities page of Enable kerberos wizard (akovalenko)
     add 532ab59  AMBARI-20692. Add Ability to Pause An Upgrade In Progress (alexantonenko)
     add 784ceea  AMBARI-20674 Able to hide the Delete menu item from UI for a given service (dili)
     add 6dba326  AMBARI-20551. Blueprint export fails if config-type is not mapped to any service after upgrade (Amruta Borkar via alejandro)
     add 24c038c  AMBARI-20699. Side Nav: improve views dropdown menu.(xiwang)
     add 9ca337c  AMBARI-20695. "ambari-server upgrade" command does not change owner for all dirs.(vbrodetskyi)
     add 827cc03  AMBARI-20711 Post-install host check: 'Rerun Checks' button is never disabled. (ababiichuk)
     add 6b9a597  AMBARI-20712 - Parallel Requests With Intersecting Hosts Don't Block Correctly (jonathanhurley)
     add 7871578  AMBARI-20689.Zooming workflows should happen more smoothly(M Madhan Mohan Reddy via padmapriyanitt)
     add 40ab38e  AMBARI-20716. Support amazonlinux 2017 in Ambari (aonishuk)
     add 22e1e7e  AMBARI-20670. Node manager start extremely slow when YARN NM local dirs are very large - ut fix (dgrinenko via echekanskiy)
     add 4bc4942  AMBARI-20723 Remove singleNodeInstall flag from ambari-web code. (ababiichuk)
     add e3794a3  AMBARI-20724 Merge calls to server which fetch ambari properties. (atkach)
     add 119ad10  AMBARI-20704.Need a way to indicate the action node type in workflow manager.(Venkata Sairam via padmapriyanitt)
     add d8dc982  AMBARI-20673.For sort/partition operator, if there is only 1 reducer, display just 'sort' rather than 'sort/partition'(Venkata Sairam via padmapriyanitt)
     add 36e456b  AMBARI-20729.Need way to explicitly ask for workflow name(Venkata Sairam via padmapriyanitt)
     add 73eff12  AMBARI-20718.User should not be allowed to validate/Submit the workflow in case of duplicate action nodes(Venkata Sairam via padmapriyanitt)
     add 2f20b2e  AMBARI-20721. Add stab registering and heartbeating routine via stomp async calls. (aonishuk)
     add c093c5f  AMBARI-20694 Add Stomp client adapter. (atkach)
     add 8b508a6  AMBARI-20725. Use Infra-Solr user to create Solr user-roles (oleewere)
     add 964a1fb  AMBARI-20705.Issue while adding custom job.properties(M Madhan Mohan Reddy via venkatasairam.lanka)
     add 4589f42  AMBARI-20732. Remove duplicate condition from route (onechiponerko)
     add 3dbb201  AMBARI-20609 Fix Install Wizard data attribute. (ababiichuk)
     add f0f0e01  AMBARI-20443. No need to show 'hive_ambari_database' (Masahiro Tanaka via alejandro)
     add ab4935b  Updated team page. (yusaku)
     add 908c44e  AMBARI-20700 - UI should use the URL as-given by the backend (rzang)
     add 6934475  AMBARI-20505 ADDENDUM : Changes needed to handle AMBARI-19623 in EU/RU scenario (Vishal Suvagia via mugdha)
     add 6b76fc9  AMBARI-20734. Handle caching of topologies,configs and metadata  (aonishuk)
     add 04f8c53  AMBARI-20743. Prototype server websocket endpoint with STOMP sub-protocol. (mpapirkovskyy)
     add 6a407f9  AMBARI-20740.Coordinator Actions(workflows) are empty even when workflows are executed.(M Madhan Mohan Reddy via padmapriyanitt)
     add 649d08e  AMBARI-20741. Hadoop QA should directly link to Maven output if build fails
     add 7310e03  AMBARI-19149. Code cleanup: redundant modifiers (interfaces, enums)
     add a1f4057  AMBARI-20578 Log Search Configuration API (mgergely)
     add d1d2e12  Revert "AMBARI-20443. No need to show 'hive_ambari_database' (Masahiro Tanaka via alejandro)"
     add 5d6d359  AMBARI-20687. Perf: Refactor ambari db-cleanup to include all big tables.(vbrodetskyi)
     add 67dddcf  AMBARI-20717.Need to disable upload file option from file browser window in workflow manager(Venkata Sairam)
     add 160ed97  AMBARI-20578 APPENDUM Log Search Configuration API (mgergely)
     add d7eadd0  Revert "AMBARI-20628. Ambari doesn't set properties correctly (magyari_sandor)"
     add 45b6df2  AMBARI-20750. Remove multiprocessing-based StatusCommandsExecutor (Eugene Chekanskiy via smohanty)
     add cf43cde  AMBARI-18423 - Support creating/editing alert dispatch targets for script-based alert dispatchers by web wizard instead of command line (Lei Yao via rzang)
     add 6b5697c  AMBARI-20578 APPENDUM-2 Log Search Configuration API (mgergely)
     add 222aeb6  AMBARI-20696: Skip calling stack selector, conf selector tools for Nifi, Streamline, Registry custom services in HDP cluster (Madhuvanthi Radhakrishnan via jluniya)
     add 1e13f7c  AMBARI-20744. Log Search: Add get clusters endpoint for service and audit logs (oleewere)
     add d6b5f8e  AMBARI-20751. Fix misleading solr-client output messages (oleewere)
     add b943935  AMBARI-20719.Need to show decision conditions for decision node in Flow Graph tab(M Madhan Mohan Reddy via venkatasairam.lanka)
     add 151aab1  AMBARI-20714 - Upgrade Catalog 2.5.1 Changes For HRC Background Task (jonathanhurley)
     add 6407ddd  AMBARI-20736. Allow Potentially Long Running Restart Commands To Have Their Own Timeout (ncole)
     add c4bd3b9  AMBARI-20682. Wait For DataNodes To Shutdown During a Rolling Upgrade (dlysnichenko)
     add 4132e64  AMBARI-20746 Change to warning log if Ambari doesn't have baseurls for Install Packages step before EU/RU (dili)
     add 4013733  AMBARI-20666 - beginning or ending commas in dfs.cluster.administrators cause trouble for starting services
     add 5abf8da  AMBARI-20757 - Selecting ignore service checks results in blank dialog box when hitting an error
     add 2d3e625  AMBARI-20752. Update the Accordion styles in horton style.(xiwang)
     add a86b267  AMBARI-19996 Perform Kinit on Kafka Start (Bharat Viswanadham via dili)
     add 02b911d  AMBARI-20697 Stack advisor code in 2.3 refactor logic for ranger Kafka Plugin (Bharat Viswanadham via dili)
     add 78378cf  AMBARI-20650: Remove Server attribute from the HTTP response headers (sangeetar)
     add 38043ae  AMBARI-20763. Update YARN's ATS configs 'apptimelineserver_heapsize' and 'yarn.timeline-service.entity-group-fs-store.app-cache-size' logic in 2.6.
     add ea12010  AMBARI-20762. Add more database options for BEACON in stack advisor.(xiwang)
     add 9c4bb4c  AMBARI-20628. Ambari doesn't set properties correctly (magyari_sandor)
     add 6474b32  AMBARI-20682. Wait For DataNodes To Shutdown During a Rolling Upgrade. Fix (dlysnichenko)
     add 6db5719  AMBARI-20756. Update docker volumes for Ambari logsearch integration test module (oleewere)
     add 3c146f8  AMBARI-20755 topology configuration type validation on blueprint deployments
     add f08d487  AMBARI-20761 Update zookeeper.connect description (Bharat Viswanadham via dili)
     add b64e856  AMBARI-20754 get_value_from_jmx constantly prints exception message in retry mechanism, which brings bad user experience (Yuanbo Liu via dili)
     add 1f4a72f  AMBARI-20737 Able to hide the Use Public Repository option on Register Version page on Ambari Admin View (dili)
     add 422c30f  AMBARI-18865. Kafka still showing log.cleanup.interval.mins (Bharat Viswanadham via alejandro)
     add 5ab5de4  AMBARI-20753. HDP 3.0 TP - temporarily install RPMs hive2 and remove Pig dependency from Hive (alejandro)
     add 13dd115  AMBARI-20745 : Metrics collector goes down after starting up. (avijayan)
     add b95dcc3  AMBARI-20738 - Cannot add repo for additional OS to an existing HDP version (rzang)
     add 893f97e  AMBARI-19149. Code cleanup: unresolved references in javadoc
     add 6326589  AMBARI-20777 : AMS changes to use instanceId for cluster based segregation of data. (avijayan)
     add 611aaa5  AMBARI-20782. Add config changes from AMBARI-20537 to hive component upgrade path. (Swapan Shridhar via Prasanth Jayachandran).
     add a6bba69  Revert "AMBARI-20696: Skip calling stack selector, conf selector tools for Nifi, Streamline, Registry custom services in HDP cluster (Madhuvanthi Radhakrishnan via jluniya)"
     add ebb24be  AMBARI-20696: Skip calling stack selector, conf selector tools for Nifi, Streamline, Registry custom services in HDP cluster (Madhuvanthi Radhakrishnan via jluniya)
     add 92ac66f  AMBARI-20765. Installer wizard: "Register Hosts" page has delete icon under action column is invisible. (Ishan Bhatt via Jaimin)
     add 8d0ec08  AMBARI-20780 - Update HBase Configuration group is ignored in upgrade.xml
     add d853ad8  AMBARI-20778. Add NIFI StackFeatures to HDP StackFeatures. (mradhakrishnan)
     add c8de2d0  AMBARI-20768. Local Ambari user with no cluster role must not be able to access Logsearch UI (Keta Patel via oleewere)
     add be2510f  AMBARI-20770 Cover assign master controller with unit tests. (atkach)
     add 4d4e767  AMBARI-20784 Able to hide the "Why public repo not selected" when no stacks have repoinfo.xml with the "latest" section (dili)
     add c77e4d2  AMBARI-20799 - Ambari fails to upgrade from 2.4.2.0 to 2.5.1.0 during schema upgrade with NPE (jonathanhurley)
     add 1cd9d1e  AMBARI-20781. Hadoop QA test results link is broken
     add c1f9aba  AMBARI-20790. Miscellaneous fixes to support HDP 3.0 Tech Preview (alejandro)
     add ae5c17e  AMBARI-20334 - Yarn Queue manager capacity field allows entering invalid values. (Anita Jebaraj via sangeetar)
     add dfb3449  AMBARI-20808. Create schema requests to upgrade solr schema (do not change it externally) (oleewere)
     add 78048fc  AMBARI-20813. Convert ambari-web build process to use yarn package manager to fix dependencies and to make the process faster. (yusaku)
     add 8ead189  AMBARI-20813. Convert ambari-web build process to use yarn package manager to fix dependencies and to make the process faster. (yusaku)
     add 53dcaa8  AMBARI-20787. Ambari agent should log how it determines it's FQDN. (stoader)
     add c306a2b  AMBARI-20759. The Web Client Upgrade Wizard Does Not Wait Long Enough When Creating a Large Upgrade (alexantonenko)
     add 8322ed5  AMBARI-20806. Upgrade Pause button should not show when the Upgrade is already Paused (alexantonenko)
     add 2049199  AMBARI-20792: Atlas admin username and password should be configurable through ambari (Vishal Suvagia via mugdha)
     add 22fda0a  AMBARI-20742 Log Search common properties (mgergely)
     add 2c55224  AMBARI-20800.Need to change the arrangement of the action buttons in project manager(Supreeth Sharma via Venkata Sairam)
     add abe5e55  AMBARI-20803. Devdeploy: Logsearch service check fails (aonishuk)
     add c53b68e  AMBARI-20729.Need way to explicitly ask for workflow name(Supreeth Sharma via Venkata Sairam)
     add 7b61d0c  AMBARI-20609. Fix Install Wizard data attribute (onechiporenko)
     add 9f113f9  AMBARI-20798 Do not run Log Search service check if there is no portal in the cluster. (mgergely)
     add 6b549d3  AMBARI-20811. Trying to upgrade HDF 2.0.2.0 to HDF 3.0.0.0 fails with NPE (dlysnichenko)
     add 665a2cd  AMBARI-20747 - Upgrade is not taking care of AMBARI-15677 (jonathanhurley)
     add 2a00812  AMBARI-20733. /var/log/krb5kdc.log is growing rapidly on the KDC server (echekanskiy)
     add 4b27feb  AMBARI-20802. StackAdvisor should not recommend configuration types for services that are not present in the cluster.(vbrodetskyi)
     add 978c9d7  AMBARI-20678. Complete node name is not shown when node name is larger than 17 characters (pallavkul)
     add d1dce4c  AMBARI-20821. Update default values for YARN preemption in Ambari.(vbrodetskyi)
     add 6b399e4  AMBARI-20766 Log Feeder fill cluster name if it is not set (mgergely)
     add e879440  AMBARI-20824. Add two new preemption properties to RU/EE (ncole)
     add 41006eb  AMBARI-20326. HDP 3.0 TP - support for HBase with configs, kerberos, widgets, metrics, quicklinks, and themes (alejandro)
     add 61e363b  AMBARI-20816 Create Ranger Hive Service during Hive Metastore restart (mugdha)
     add f622e3a  AMBARI-20815. Need a confirmation dialog for table / database delete (pallavkul)
     add fb2ba49  AMBARI-20771. BE: Characters used in usernames should be constrained (Attila Magyar via adoroszlai)
     add 8cc384c  AMBARI-20743. Prototype server websocket endpoint with STOMP sub-protocol. (mpapirkovskyy)
     add 2a49370  AMBARI-20828. Heartbeat and register with real server instead of mock server (aonishuk)
     add 32552c9  AMBARI-20830. Create an ansynchronious status commands executor (aonishuk)
     add 2e579f1  AMBARI-20869. Changes to events format (aonishuk)
     add cef3f24  AMBARI-20916. Run new heartbeatThread and statusCommand executor instead of old  (aonishuk)
     add 2eb7844  AMBARI-21061 Integrate Config History page with with websocket events. (atkach)
     add c4c2ec7  AMBARI-21056. Run execution commands sent to /user/commands (aonishuk)
     add b094c75  AMBARI-21073 Integrate host-component status with websocket events. (atkach)
     add 6bad191  AMBARI-21134. Get initial metadata, topology, configs from another endpoint (aonishuk)
     add 6303e93  AMBARI-21140. Support CREATE/UPDATE/DELETE of topology, hashes and some events format changes (aonishuk)
     add 5d09624  AMBARI-21165. Register with server and changes to events format and handle graceful stop or threads (aonishuk)
     add c2ab4a3  AMBARI-21193. Add TopologyChange event to the server (mpapirkovskyy)
     add b1d357a  AMBARI-21194 Integrate background operations with websocket events. (atkach)
     add c8aecb7  AMBARI-21199. Run status commands with real configurations and parameters information (aonishuk)
     add 12df64f  AMBARI-21203 Integrate Alerts notifications with websocket events. (atkach)
     add 94fed55  AMBARI-21245. Send information about agentEnv only if it changed. (aonishuk)
     add d986503  AMBARI-21278 Integrate cluster topology updates with websocket events. (atkach)
     add 11f16c8  AMBARI-21283 Integrate cluster-env configs update with websocket events. (atkach)
     add 670a08e  AMBARI-21270. Ability to auto-start component without server intervention (aonishuk)
     add 1e64135  AMBARI-21200. Add serverside event metrics to track system health (mpapirkovskyy)
     add 421ac27  AMBARI-21201. Add ConfigChange event to capture config changes (mpapirkovskyy)
     add 51b1a14  AMBARI-21331 Integrate Services status with websocket events. (atkach)
     add 917898c  AMBARI-21394. Create a topic to send hostLevelParams (aonishuk)
     add d4cd914  AMBARI-21401. Support cancel commands, some changes to status/command reports, bugfixes (aonishuk)
     add f264367  AMBARI-21404 Integrate Hosts page with websocket events. (atkach)
     add 063877e  AMBARI-21415. Fix execution/custom_commands/custom_actions/service_checks. Send clusterHostInfo (aonishuk)
     add 650e23d  AMBARI-21452. Support metadata update, fix inability to re-register after server restart (aonishuk)
     add e41dcd3  AMBARI-21493. Fix PERF stack scripts to handle changed config paths (aonishuk)
     add 9d6c7c8  AMBARI-21496. Fix HDP base services to handle changed config paths (aonishuk)
     add d188fc3  AMBARI-21547. Race condition while calculating correlation_id (aonishuk)
     add 4d7148a  AMBARI-21574. Agent hangs when server is restarted during connection stage (aonishuk)
     add e0e8825  AMBARI-21616. Stomp connections leak on ambari-agent (aonishuk)
     add db83ccd  AMBARI-21646. Race condition causing execution commands to fail (aonishuk)
     add 44c1cb5  AMBARI-21591. Send execution commands to agents user topic via STOMP. (mpapirkovskyy)
     add 6578b5a  AMBARI-21667. Create a topic to send alert_definitions (aonishuk)
     add cfec01d  AMBARI-21519. Fix custom actions to handle changed config paths (aonishuk)
     add 57b79f9  AMBARI-21688. Fix raceconditions causing ambari-agent to hang/fail (aonishuk)
     add 9b9402e  AMBARI-21717. Additional fixes to stacks config paths (aonishuk)
     add a9774d6  AMBARI-21732. Report alerts status to server (aonishuk)
     add 7fb94cb  AMBARI-21741. Add CREATE/UPDATE/DELETE actions to alert_definitions event (aonishuk)
     add 194e391  AMBARI-21763. Cache hashes should not be reset after restart ; some ambari-server restart fixes (aonishuk)
     add 1fcf4a7  AMBARI-21789. Component version is not reported (aonishuk)
     add 21e590b  AMBARI-21827. Fix config paths in libraries folder (aonishuk)
     add 24464d9  AMBARI-21861. Agent sometimes hangs during connection to server (aonishuk)
     add a5d85a8  AMBARI-21899. Component status reports are sent for the components which are not on the host (aonishuk)
     add ad12641  AMBARI-21878. Implement STOMP endpoint to handle alerts from agent
     add 79a37e5  AMBARI-21979. Fixes to CommandStatusDict (aonishuk)
     add a670750  AMBARI-21989. Multiple fixes into branch-3.0-perf (aonishuk)
     add be73d16  Merge remote-tracking branch 'remotes/origin/trunk' into branch-3.0-perf
     add d04ce2e  AMBARI-22088. A couple of merge fixes for branch-3.0-perf (aonishuk)
     add d632c01  AMBARI-22057. Reduce alert reports performance overhead (aonishuk)
     add f0def7c  AMBARI-21803. Implement STOMP endpoint for alert definitions
     add 6ecac18  AMBARI-22063. Poor performance of STOMP subscriptions cache and registration handling. (mpapirkovskyy)
     add cc835ae  AMBARI-22143. Admin View opening redirects back to ambari. (mpapirkovskyy)
     add 857bef7  AMBARI-22119. Cache becomes corrupt (aonishuk)
     add 3051fa9  AMBARI-22189. Ambari-server start failed after branch-3.0-perf branch merge. (mpapirkovskyy)
     add 5ae98db  AMBARI-22190. After merging trunk to branch-3.0-perf some parts of code are missing. (mpapirkovskyy)
     add dddce4d  AMBARI-22217. Deploy fails due to PU code related issues (post-merge) (aonishuk)
     add 8035443  AMBARI-22261. Update format of server-agent /agents/host_level_params response according to changed repo_info mapping. (mpapirkovskyy)
     add 6231996  AMBARI-22262. Server should fire a host level params update event when repository version is resolved. (mpapirkovskyy)
     add f3e98bf  AMBARI-22264. Sometimes request and host component status updates are lost. (mpapirkovskyy)
     add 7da02bb  AMBARI-22251. A bunch of services fail to start (aonishuk)
     add af30ab4  Merge remote-tracking branch 'remotes/origin/trunk' into branch-3.0-perf
     add 42bf78b  AMBARI-22295. RU tasks fail (aonishuk)
     add 6ff8a53  AMBARI-22296. Unable to Enable NameNode HA on branch-3.0-perf (aonishuk)
     add ada8f83  AMBARI-22289. Alert definition update event creation was failed with AmbariException on alert definition registration. (mpapirkovskyy)
     add 08ff5a2  AMBARI-22324 Update handler for topology topic. (atkach)
     add bd1188f  AMBARI-22336. Alerts UPDATE/DELETE should work deleting and adding a cluster (aonishuk)
     add 9d99c44  Revert "AMBARI-22336. Alerts UPDATE/DELETE should work deleting and adding a cluster (aonishuk)"
     add 05c5bf7  AMBARI-22336. Alerts UPDATE/DELETE should work deleting and adding a cluster (aonishuk)
     add 442509a  Revert "AMBARI-22336. Alerts UPDATE/DELETE should work deleting and adding a cluster (aonishuk)"
     add a3745d2  AMBARI-22336. Alerts UPDATE/DELETE should work deleting and adding a cluster (aonishuk)
     add 9095c91  AMBARI-22349. Changing hostname causes ambari-agent start to fail (aonishuk)
     add c0a57a7  AMBARI-22349. Changing hostname causes ambari-agent start to fail (aonishuk)
     add 4656f1d  AMBARI-22341. A bunch of alerts fails due to absence of configs (aonishuk)
     add 1577f2f  AMBARI-22382 Integrate Host-component maintenance state and stale configs with websocket events. (atkach)
     add eb156a9  AMBARI-22375. Multiple issue with handling unexcepted situations (aonishuk)
     add 05cd359  AMBARI-22430 Integrate Alert Definitions page with websocket events. (atkach)
     add eec5936  AMBARI-22441 Integrate Alert Groups on Alert page with websocket events. (atkach)
     add 54e84d4  AMBARI-22451 Components with stale_configs should be updated via websockets. (atkach)
     add 45d9ca6  AMBARI-22427. Check if configurations used for commands are of correct version (aonishuk)
     add eaf1fd5  AMBARI-22528 Integrate stack upgrades with websocket events. (atkach)
     add 366f6ca  Merge branch 'trunk' into branch-3.0-perf
     add f51351e  AMBARI-22627. Fix Stacks UT based on secured.json/default.json (aonishuk)
     add 66a5083  Merge branch 'trunk' into branch-3.0-perf
     add 1e5a47e  AMBARI-22664. Fix unit test failures caused by old json format (aonishuk)
     add fc76993  AMBARI-22671. Stack unit tests fixes  (aonishuk)
     add e635620  AMBARI-22704. Stack unit test fixes (aonishuk)
     add 086bad4  AMBARI-22733. UI receives a topology event when turning on/off maintenance mode for the host. (mpapirkovskyy)
     add 57a0e5c  AMBARI-22734. alert_definitions topic doesn't emit any events to client. (mpapirkovskyy)
     add 0045c04  AMBARI-22735. Delete host event doesn't have hostName property. (mpapirkovskyy)
     add 9bda5e2  AMBARI-22734. alert_definitions topic doesn't emit any events to client. Additional changes. (mpapirkovskyy)
     add d1a11a3  AMBARI-22738. Setup heartbeat for api endpoint. (mpapirkovskyy)
     add eaa7e7e  AMBARI-22737. /events/hostcomponents topic should react on maintenance and stale configs events. (mpapirkovskyy)
     add 3b8213a  AMBARI-22673. UI hangs on step 2 of security wizard (aonishuk)
     add 1137a21  Merge pull request #71 from aonishuk/AMBARI-22673-branch-3.0-perf
     add e04649b  AMBARI-22739. Add event for changes in alert groups. (mpapirkovskyy) (#72)
     add 070fe17  AMBARI-22752. Cannot enable security. (mpapirkovskyy)
     add 2fc4855  AMBARI-22742. Add event for changes in upgrade. (mpapirkovskyy)
     add f11859e  AMBARI-22754. STOMP message size limit should be configurable. (mpapirkovskyy)
     add c432dde  AMBARI-22706. Ranger installation fails (aonishuk)
     add e6d8deb  AMBARI-22763. Fix checkstyle failure after merging trunk to branch-3.0-perf. (mpapirkovskyy)
     add e782b72  AMBARI-22763. Fix checkstyle failure after merging trunk to branch-3.0-perf. Fix names according naming conversion. (mpapirkovskyy)
     add f8327e3  AMBARI-22763. Fix checkstyle failure after merging trunk to branch-3.0-perf. Fix getters/annotations usage. (mpapirkovskyy)
     add 8e6bb54  AMBARI-22763. Fix unit test error in ambari-utility on branch-3.0-perf (adoroszlai)
     add 1066ad3  AMBARI-22763. Temporarily ignore ActiveWidgetLayoutResourceProviderTest due to StackOverflowError
     add 7162078  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 04a71b9  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add b6b29fd  AMBARI-22786. Fix server unit tests on branch-3.0-perf (aonishuk)
     add 8928d17  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 4b99764  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 51b7443  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 814146b  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add de56e9b  AMBARI-22810. Rewrite TestActionQueue (aonishuk)
     add 18ee0b7  AMBARI-22811. Rewrite tests for alert types on branch-3.0-perf (aonishuk)
     add 3b8a006  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add c4934b5  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 30b6f5b  AMBARI-22753. Fix existing unit tests after STOMP protocol implementation. (mpapirkovskyy)
     add 118591c  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add 256578b  AMBARI-22784. Fix stack unit tests on branch-3.0-perf (aonishuk)
     add c066c97  AMBARI-22838. Fix TestRecoveryManager ClusterConfigurationCache and a bunch of small tests (aonishuk)
     add 4dca5a7  AMBARI-22870. Ranger fails to install (branch-3.0-perf). (mpapirkovskyy)
     add 13a2ef9  AMBARI-22896. Fix TestAlertSchedulerHandler.py and TestAlerts.py (aonishuk)
     add 42fedc2  AMBARI-22774. Handle configs update in the middle of request (RU). (mpapirkovskyy)
     add 591bd9c  AMBARI-22774. Handle configs update in the middle of request (RU). Pull-request fixes. (mpapirkovskyy)
     add ab93e78  Merge remote-tracking branch 'remotes/alt/trunk' into branch-3.0-perf-unchanged
     add f62e103  Merge remote-tracking branch 'remotes/alt/trunk' into branch-3.0-perf-unchanged. After-merge fixes.
     add 2160d7a  Merge remote-tracking branch 'remotes/alt/trunk' into branch-3.0-perf-unchanged. Ambari-server python tests temp ignore.
     add 21c5c8a  Merge branch 'trunk' into branch-3.0-perf.
     add fc4db61  Merge branch 'trunk' into branch-3.0-perf. After-merge fixes.
     add e4b51f9  Merge remote-tracking branch 'apache/trunk' into trunk-branch-3.0-perf
     add e70a76c  Merge pull request #318 from mpapirkovskyy/trunk-branch-3.0-perf
     add 3c81877  AMBARI-22982. Logsearch and Kafka broker fails to start (aonishuk)
     add 30e179f  AMBARI-23012. "Stale Alerts" alert appears on cluster after some time (aonishuk)
     add 0aa22ea  AMBARI-23013. Ignore python UT failing on branch-3.0-perf (aonishuk)
     add 8c6590b  Merge branch 'branch-3.0-perf' into trunk
     add 92dd24e  AMBARI-23014. Unable to proceed to step1 on Install Wizard  (akovalenko)
     add de767ee  AMBARI-22954. Install: Central configuration of DB's, Passwords, Log Directories, Users (akovalenko)
     add 286b7bf  AMBARI-22954. Install: Central configuration of DB's, Passwords, Log Directories, Users. Removing unnecessary code, causing UT failure.  (akovalenko)
     add 837b42e  AMBARI-22819. Issues with storm jaas files and recursive ch_(mod/own) calls (echekanskiy)
     add c1e87ac  AMBARI-23016. Fix trunk build after merge of 3.0-perf (echekanskiy)
     add a59d340  Dockerfiles for building Ambari (CentOS, Ubuntu) (#391)
     add 8cb349f  AMBARI-21158. Eliminate Maven warnings (#397)
     add 0a33a07  AMBARI-23005: Stack advisor error (dili)
     add 1846978  Merge pull request #379 from dilica/trunk
     add 3a52f27  AMBARI-23015 Added NaN handling to JSON handling in MetricsRetrievalService.java (#396)
     add 57aa207  AMBARI-23010. Make solrIndexHelper.sh script to be able to run index migration against a snapshot (#381)
     add 83e883c  Git link for Ambari project is broken on Ambari project website (#399)
     new 794bc55  AMBARI-22842. Provide field / component UI metadata from backend
     new 7883bc5  AMBARI-22814 Add different options of component name display
     new 4df8e38  AMBARI-22825 Add different options of field name display

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (10d3d39)
            \
             N -- N -- N   refs/heads/branch-feature-AMBARI-22842 (4df8e38)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 LICENSE.txt                                        |   28 +
 NOTICE.txt                                         |   11 +-
 ambari-agent/conf/unix/ambari-agent.ini            |    5 +
 ambari-agent/conf/unix/install-helper.sh           |   10 +-
 ambari-agent/pom.xml                               |    4 +-
 .../src/main/python/ambari_agent/ActionQueue.py    |  206 +-
 .../python/ambari_agent/AlertSchedulerHandler.py   |   84 +-
 .../python/ambari_agent/AlertStatusReporter.py     |   92 +
 .../src/main/python/ambari_agent/AmbariConfig.py   |   63 +-
 .../ambari_agent/ClusterAlertDefinitionsCache.py   |  122 +
 .../src/main/python/ambari_agent/ClusterCache.py   |  170 ++
 .../python/ambari_agent/ClusterConfiguration.py    |  160 --
 .../ambari_agent/ClusterConfigurationCache.py      |   42 +
 .../ambari_agent/ClusterHostLevelParamsCache.py    |   45 +
 .../python/ambari_agent/ClusterMetadataCache.py    |   42 +
 .../python/ambari_agent/ClusterTopologyCache.py    |  247 ++
 .../main/python/ambari_agent/CommandStatusDict.py  |  102 +-
 .../python/ambari_agent/CommandStatusReporter.py   |   51 +
 .../python/ambari_agent/ComponentStatusExecutor.py |  154 ++
 .../python/ambari_agent/ConfigurationBuilder.py    |   83 +
 .../src/main/python/ambari_agent/Constants.py      |   46 +
 .../src/main/python/ambari_agent/Controller.py     |   46 +-
 .../ambari_agent/CustomServiceOrchestrator.py      |  108 +-
 .../src/main/python/ambari_agent/FileCache.py      |    8 +-
 .../main/python/ambari_agent/HeartbeatHandlers.py  |   12 +-
 .../main/python/ambari_agent/HeartbeatThread.py    |  229 ++
 .../src/main/python/ambari_agent/HostInfo.py       |   26 +-
 .../main/python/ambari_agent/HostStatusReporter.py |   75 +
 .../main/python/ambari_agent/InitializerModule.py  |   85 +
 .../src/main/python/ambari_agent/NetUtil.py        |   23 +-
 .../src/main/python/ambari_agent/PythonExecutor.py |    5 +-
 .../main/python/ambari_agent/RecoveryManager.py    |  321 +--
 .../src/main/python/ambari_agent/Register.py       |   22 +-
 ambari-agent/src/main/python/ambari_agent/Utils.py |  217 ++
 .../main/python/ambari_agent/alerts/base_alert.py  |  138 +-
 .../main/python/ambari_agent/alerts/collector.py   |    2 +-
 .../python/ambari_agent/alerts/metric_alert.py     |   53 +-
 .../main/python/ambari_agent/alerts/port_alert.py  |    5 +-
 .../python/ambari_agent/alerts/recovery_alert.py   |    2 +-
 .../python/ambari_agent/alerts/script_alert.py     |   10 +-
 .../main/python/ambari_agent/alerts/web_alert.py   |   16 +-
 .../python/ambari_agent/apscheduler/threadpool.py  |    2 +-
 .../src/main/python/ambari_agent/client_example.py |   69 +
 .../listeners/AlertDefinitionsEventListener.py     |   62 +
 .../listeners/CommandsEventListener.py             |   62 +
 .../listeners/ConfigurationEventListener.py        |   52 +
 .../listeners/HostLevelParamsEventListener.py      |   60 +
 .../listeners/MetadataEventListener.py             |   52 +
 .../listeners/ServerResponsesListener.py           |   75 +
 .../listeners/TopologyEventListener.py             |   59 +
 .../main/python/ambari_agent/listeners/__init__.py |   66 +
 ambari-agent/src/main/python/ambari_agent/main.py  |  117 +-
 .../src/main/python/ambari_agent/security.py       |   49 +-
 ambari-agent/src/packages/tarball/all.xml          |   12 +
 .../python/ambari_agent/BaseStompServerTestCase.py |  303 +++
 .../test/python/ambari_agent/TestActionQueue.py    |  880 +++----
 .../python/ambari_agent/TestAgentStompResponses.py |  367 +++
 .../ambari_agent/TestAlertSchedulerHandler.py      |  111 +-
 .../src/test/python/ambari_agent/TestAlerts.py     |  424 ++--
 .../src/test/python/ambari_agent/TestAmsAlert.py   |   24 +-
 .../src/test/python/ambari_agent/TestBaseAlert.py  |    3 +-
 .../ambari_agent/TestClusterConfigurationCache.py  |   38 +-
 .../python/ambari_agent/TestCommandStatusDict.py   |    2 +-
 .../src/test/python/ambari_agent/TestController.py |    2 +-
 .../ambari_agent/TestCustomServiceOrchestrator.py  |    2 +-
 .../src/test/python/ambari_agent/TestFileCache.py  |    6 +-
 .../src/test/python/ambari_agent/TestHeartbeat.py  |    2 +-
 .../src/test/python/ambari_agent/TestHostInfo.py   |    3 +-
 .../src/test/python/ambari_agent/TestMain.py       |    2 +-
 .../test/python/ambari_agent/TestMetricAlert.py    |   12 +-
 .../src/test/python/ambari_agent/TestNetUtil.py    |    2 +-
 .../src/test/python/ambari_agent/TestPortAlert.py  |  132 +-
 .../python/ambari_agent/TestRecoveryManager.py     |  265 +-
 .../test/python/ambari_agent/TestRegistration.py   |    2 +-
 .../test/python/ambari_agent/TestScriptAlert.py    |   12 +-
 .../dummy_files/alert_definitions.json             |   37 +
 .../ambari_agent/dummy_files/definitions.json      |   37 -
 .../stomp/agent_host_status_update.json            |   32 +
 .../stomp/alert_definition_expected.json           |   74 +
 .../dummy_files/stomp/alert_definitions.json       | 2669 ++++++++++++++++++++
 .../dummy_files/stomp/alert_definitions_add.json   |   45 +
 .../stomp/alert_definitions_delete.json            |   60 +
 .../dummy_files/stomp/alert_definitions_edit.json  |   44 +
 .../dummy_files/stomp/alert_definitions_small.json |   92 +
 .../stomp/components_status_report.json            |   28 +
 .../dummy_files/stomp/configurations_update.json   |   53 +
 .../dummy_files/stomp/execution_commands.json      |   81 +
 .../dummy_files/stomp/heartbeat_request.json       |    3 +
 .../dummy_files/stomp/host_level_params.json       |   37 +
 .../stomp/metadata_after_registration.json         |  221 ++
 .../dummy_files/stomp/metadata_update.json         |    9 +
 .../dummy_files/stomp/registration_request.json    |   90 +
 .../dummy_files/stomp/registration_response.json   |    8 +
 .../dummy_files/stomp/topology_add_component.json  |   28 +
 .../stomp/topology_add_component_host.json         |   18 +
 .../dummy_files/stomp/topology_add_host.json       |   16 +
 .../dummy_files/stomp/topology_cache_expected.json |   73 +
 .../dummy_files/stomp/topology_create.json         |  105 +
 .../dummy_files/stomp/topology_delete_cluster.json |    8 +
 .../stomp/topology_delete_component.json           |   19 +
 .../stomp/topology_delete_component_host.json      |   18 +
 .../dummy_files/stomp/topology_delete_host.json    |   13 +
 .../test/python/resource_management/TestScript.py  |   15 +-
 .../python/ambari_commons/unicode_tolerant_fs.py   |   63 +
 .../src/main/python/ambari_stomp/__init__.py       |   56 +
 .../src/main/python/ambari_stomp/__main__.py       |  558 ++++
 .../main/python/ambari_stomp/adapter/__init__.py   |    2 +
 .../main/python/ambari_stomp/adapter/multicast.py  |  180 ++
 .../main/python/ambari_stomp/adapter/websocket.py  |  152 ++
 .../src/main/python/ambari_stomp/backward.py       |   30 +
 .../src/main/python/ambari_stomp/backward2.py      |   61 +
 .../src/main/python/ambari_stomp/backward3.py      |   68 +
 .../src/main/python/ambari_stomp/backwardsock.py   |   11 +
 .../src/main/python/ambari_stomp/backwardsock25.py |   32 +
 .../src/main/python/ambari_stomp/backwardsock26.py |   16 +
 .../src/main/python/ambari_stomp/colors.py         |   18 +
 .../src/main/python/ambari_stomp/connect.py        |  203 ++
 .../src/main/python/ambari_stomp/constants.py      |   29 +
 .../src/main/python/ambari_stomp/exception.py      |   35 +
 .../src/main/python/ambari_stomp/listener.py       |  522 ++++
 .../src/main/python/ambari_stomp/protocol.py       |  507 ++++
 .../src/main/python/ambari_stomp/transport.py      |  850 +++++++
 .../src/main/python/ambari_stomp/utils.py          |  250 ++
 .../src/main/python/ambari_ws4py/__init__.py       |   67 +
 .../main/python/ambari_ws4py/client/__init__.py    |  340 +++
 .../python/ambari_ws4py/client/geventclient.py     |   92 +
 .../python/ambari_ws4py/client/threadedclient.py   |   98 +
 .../python/ambari_ws4py/client/tornadoclient.py    |  155 ++
 .../src/main/python/ambari_ws4py/compat.py         |   46 +
 ambari-common/src/main/python/ambari_ws4py/exc.py  |   27 +
 .../src/main/python/ambari_ws4py/framing.py        |  273 ++
 .../src/main/python/ambari_ws4py/manager.py        |  368 +++
 .../src/main/python/ambari_ws4py/messaging.py      |  169 ++
 .../src/main/python/ambari_ws4py/streaming.py      |  319 +++
 .../src/main/python/ambari_ws4py/utf8validator.py  |  117 +
 .../src/main/python/ambari_ws4py/websocket.py      |  538 ++++
 .../main/python/resource_management/core/source.py |    2 +-
 .../main/python/resource_management/core/sudo.py   |    5 +-
 .../libraries/functions/conf_select.py             |    6 +-
 .../libraries/functions/copy_tarball.py            |    2 +-
 .../functions/get_not_managed_resources.py         |    4 +-
 .../libraries/functions/log_process_information.py |    3 +-
 .../libraries/functions/lzo_utils.py               |    6 +-
 .../libraries/functions/package_conditions.py      |    2 +-
 .../libraries/functions/setup_ranger_plugin_xml.py |   20 +-
 .../libraries/functions/solr_cloud_util.py         |    2 +-
 .../libraries/functions/stack_features.py          |   10 +-
 .../libraries/functions/stack_select.py            |    4 +-
 .../libraries/functions/stack_tools.py             |    2 +-
 .../libraries/functions/version_select_util.py     |    2 +-
 .../resource_management/libraries/providers/msi.py |    2 +-
 .../libraries/providers/xml_config.py              |    4 +-
 .../resource_management/libraries/script/dummy.py  |    6 +-
 .../resource_management/libraries/script/script.py |   40 +-
 ambari-common/src/test/python/coilmq/__init__.py   |   16 +
 .../src/test/python/coilmq/auth/__init__.py        |   34 +
 .../src/test/python/coilmq/auth/simple.py          |  101 +
 .../src/test/python/coilmq/config/__init__.py      |  152 ++
 .../test/python/coilmq/config/coilmq.cfg-sample    |   71 +
 .../src/test/python/coilmq/config/defaults.cfg     |   41 +
 ambari-common/src/test/python/coilmq/engine.py     |   94 +
 ambari-common/src/test/python/coilmq/exception.py  |   43 +
 .../src/test/python/coilmq/protocol/__init__.py    |  342 +++
 ambari-common/src/test/python/coilmq/queue.py      |  376 +++
 ambari-common/src/test/python/coilmq/scheduler.py  |  141 ++
 .../src/test/python/coilmq/server/__init__.py      |   44 +
 .../src/test/python/coilmq/server/socket_server.py |  195 ++
 ambari-common/src/test/python/coilmq/start.py      |  226 ++
 .../src/test/python/coilmq/store/__init__.py       |  189 ++
 ambari-common/src/test/python/coilmq/store/dbm.py  |  262 ++
 .../src/test/python/coilmq/store/memory.py         |   76 +
 ambari-common/src/test/python/coilmq/store/rds.py  |   69 +
 .../src/test/python/coilmq/store/sa/__init__.py    |  205 ++
 .../src/test/python/coilmq/store/sa/meta.py        |    9 +
 .../src/test/python/coilmq/store/sa/model.py       |   53 +
 ambari-common/src/test/python/coilmq/topic.py      |  144 ++
 .../src/test/python/coilmq/util/__init__.py        |   16 +
 .../src/test/python/coilmq/util/concurrency.py     |   96 +
 .../src/test/python/coilmq/util/frames.py          |  359 +++
 ambari-common/src/test/python/coilmq/util/six.py   |   16 +
 ambari-funtest/pom.xml                             |    2 +-
 .../2.0.7/services/HIVE/package/scripts/hive.py    |    2 +-
 .../2.0.7/services/HIVE/package/scripts/params.py  |    4 +-
 ambari-infra/ambari-infra-assembly/pom.xml         |    2 -
 .../ambari-infra-assembly/src/main/resources/solr  | 2100 ---------------
 .../src/main/python/solrDataManager.py             |   76 +-
 .../src/main/resources/solrIndexHelper.sh          |  135 +-
 ambari-project/pom.xml                             |  123 +-
 ambari-server/conf/unix/metrics.properties         |    3 +-
 ambari-server/pom.xml                              |   89 +-
 .../inject/persist/jpa/AmbariJpaPersistModule.java |    4 +
 .../DisableBatchingRemoteEndpointFactory.java      |   33 +
 .../ambari/server/HostNotRegisteredException.java  |   37 +
 .../MessageDestinationIsNotDefinedException.java   |   29 +
 .../server/actionmanager/ActionDBAccessorImpl.java |   18 +-
 .../server/actionmanager/ActionScheduler.java      |   56 +-
 .../actionmanager/ExecutionCommandWrapper.java     |   45 +-
 .../apache/ambari/server/agent/ActionQueue.java    |  239 --
 .../org/apache/ambari/server/agent/AgentEnv.java   |   21 +
 .../apache/ambari/server/agent/AgentReport.java    |   53 +
 .../ambari/server/agent/AgentReportsProcessor.java |   98 +
 .../ambari/server/agent/AgentSessionManager.java   |   81 +
 .../server/agent/AlertDefinitionCommand.java       |    5 +
 .../ambari/server/agent/AlertExecutionCommand.java |    3 +
 .../apache/ambari/server/agent/CancelCommand.java  |   22 +
 .../apache/ambari/server/agent/CommandReport.java  |   62 +-
 .../ambari/server/agent/CommandRepository.java     |   61 +-
 .../ambari/server/agent/ComponentStatus.java       |   12 +-
 .../org/apache/ambari/server/agent/DiskInfo.java   |   14 +
 .../ambari/server/agent/ExecutionCommand.java      |   45 +-
 .../org/apache/ambari/server/agent/HeartBeat.java  |    9 +
 .../ambari/server/agent/HeartBeatHandler.java      |  340 +--
 .../ambari/server/agent/HeartBeatResponse.java     |   21 +-
 .../ambari/server/agent/HeartbeatMonitor.java      |   18 +-
 .../ambari/server/agent/HeartbeatProcessor.java    |  220 +-
 .../org/apache/ambari/server/agent/HostInfo.java   |   62 +
 .../org/apache/ambari/server/agent/HostStatus.java |    4 +
 .../apache/ambari/server/agent/RecoveryConfig.java |   28 +-
 .../ambari/server/agent/RecoveryConfigHelper.java  |    1 -
 .../apache/ambari/server/agent/RecoveryReport.java |    4 +
 .../org/apache/ambari/server/agent/Register.java   |    2 +
 .../ambari/server/agent/RegistrationResponse.java  |   13 +
 .../apache/ambari/server/agent/StatusCommand.java  |   12 +
 .../ambari/server/agent/rest/AgentResource.java    |    2 +-
 .../server/agent/stomp/AgentClusterDataHolder.java |  105 +
 .../server/agent/stomp/AgentConfigsHolder.java     |  105 +
 .../agent/stomp/AgentCurrentDataController.java    |   83 +
 .../ambari/server/agent/stomp/AgentDataHolder.java |   60 +
 .../server/agent/stomp/AgentHostDataHolder.java    |  108 +
 .../server/agent/stomp/AgentReportsController.java |  109 +
 .../agent/stomp/AgentsRegistrationQueue.java       |   76 +
 .../server/agent/stomp/AlertDefinitionsHolder.java |  166 ++
 .../agent/stomp/AmbariSubscriptionRegistry.java    |  542 ++++
 .../server/agent/stomp/HeartbeatController.java    |  174 ++
 .../server/agent/stomp/HostLevelParamsHolder.java  |   74 +
 .../ambari/server/agent/stomp/MetadataHolder.java  |   89 +
 .../ambari/server/agent/stomp/TopologyHolder.java  |  185 ++
 .../server/agent/stomp/dto/AlertCluster.java       |   95 +
 .../server/agent/stomp/dto/AlertGroupUpdate.java   |  124 +
 .../server/agent/stomp/dto/ClusterConfigs.java     |   69 +
 .../agent/stomp/dto/CommandStatusReports.java      |   43 +
 .../agent/stomp/dto/ComponentStatusReport.java     |   84 +
 .../agent/stomp/dto/ComponentStatusReports.java    |   45 +
 .../agent/stomp/dto/ExecutionCommandsCluster.java  |   76 +
 .../apache/ambari/server/agent/stomp/dto/Hash.java |   41 +
 .../ambari/server/agent/stomp/dto/Hashable.java    |   27 +
 .../agent/stomp/dto/HostLevelParamsCluster.java    |   55 +
 .../server/agent/stomp/dto/HostRepositories.java   |   58 +
 .../server/agent/stomp/dto/HostStatusReport.java   |   54 +
 .../server/agent/stomp/dto/MetadataCluster.java    |   82 +
 .../agent/stomp/dto/MetadataServiceInfo.java       |   95 +
 .../server/agent/stomp/dto/TopologyCluster.java    |  152 ++
 .../server/agent/stomp/dto/TopologyComponent.java  |  289 +++
 .../server/agent/stomp/dto/TopologyHost.java       |  115 +
 .../server/alerts/AgentHeartbeatAlertRunnable.java |    2 +-
 .../apache/ambari/server/alerts/AlertRunnable.java |    2 +-
 .../server/alerts/AmbariPerformanceRunnable.java   |    2 +-
 .../ambari/server/alerts/StaleAlertRunnable.java   |    2 +-
 .../ambari/server/api/AmbariErrorHandler.java      |    7 +-
 .../api/AmbariSendToMethodReturnValueHandler.java  |  171 ++
 .../server/api/query/render/AlertStateSummary.java |   26 +
 .../server/api/query/render/AlertStateValues.java  |   29 +
 .../query/render/AlertSummaryGroupedRenderer.java  |  155 +-
 .../ambari/server/api/services/AmbariMetaInfo.java |    3 +
 .../server/api/stomp/ClustersController.java       |   28 +
 .../ambari/server/api/stomp/TestController.java    |   39 +
 .../ambari/server/checks/CheckDescription.java     |    2 +-
 .../server/checks/DruidHighAvailabilityCheck.java  |    2 +-
 .../ambari/server/checks/ServicesUpCheck.java      |    4 +-
 .../ambari/server/configuration/Configuration.java |  128 +
 .../spring/AgentRegisteringQueueChecker.java       |   55 +
 .../configuration/spring/AgentStompConfig.java     |   86 +
 .../configuration/spring/ApiSecurityConfig.java    |  113 +
 .../configuration/spring/ApiStompConfig.java       |   69 +
 .../configuration/spring/GuiceBeansConfig.java     |  115 +
 .../configuration/spring/RootStompConfig.java      |  126 +
 .../AmbariCustomCommandExecutionHelper.java        |   57 +-
 .../server/controller/AmbariHandlerList.java       |   45 +-
 .../controller/AmbariManagementController.java     |    9 +
 .../controller/AmbariManagementControllerImpl.java |  514 +++-
 .../ambari/server/controller/AmbariServer.java     |  295 +--
 .../server/controller/AmbariSessionManager.java    |    6 +-
 .../ambari/server/controller/ControllerModule.java |   13 +-
 .../controller/SessionHandlerConfigurer.java       |   62 +
 .../internal/AlertDefinitionResourceProvider.java  |   11 +-
 .../internal/AlertGroupResourceProvider.java       |   12 +
 .../controller/internal/CalculatedStatus.java      |   41 +
 .../internal/ClientConfigResourceProvider.java     |    2 +-
 .../internal/ComponentResourceProvider.java        |   26 +-
 .../DeleteHostComponentStatusMetaData.java         |  120 +
 .../controller/internal/HostResourceProvider.java  |   81 +-
 .../internal/RequestResourceProvider.java          |    1 -
 .../internal/ServiceResourceProvider.java          |    9 +-
 .../internal/UpgradeResourceProvider.java          |   22 +-
 .../state/DefaultServiceCalculatedState.java       |    2 +-
 .../state/FlumeServiceCalculatedState.java         |    2 +-
 .../state/HBaseServiceCalculatedState.java         |    2 +-
 .../state/HDFSServiceCalculatedState.java          |    2 +-
 .../state/HiveServiceCalculatedState.java          |    2 +-
 .../state/OozieServiceCalculatedState.java         |    2 +-
 .../state/YARNServiceCalculatedState.java          |    2 +-
 .../server/events/AgentConfigsUpdateEvent.java     |  110 +
 .../server/events/AlertDefinitionEventType.java    |   28 +
 .../events/AlertDefinitionsAgentUpdateEvent.java   |  101 +
 .../events/AlertDefinitionsUIUpdateEvent.java      |   74 +
 .../server/events/AlertGroupsUpdateEvent.java      |   55 +
 .../ambari/server/events/AlertUpdateEvent.java     |   62 +
 .../apache/ambari/server/events/AmbariEvent.java   |   23 +-
 .../server/events/AmbariHostUpdateEvent.java       |   37 +
 .../ambari/server/events/AmbariUpdateEvent.java    |   78 +
 .../ambari/server/events/ConfigsUpdateEvent.java   |  249 ++
 .../server/events/DefaultMessageEmitter.java       |   67 +
 .../server/events/ExecutionCommandEvent.java       |   97 +
 .../ambari/server/events/HostComponentUpdate.java  |  168 ++
 .../server/events/HostComponentsUpdateEvent.java   |   61 +
 .../server/events/HostLevelParamsUpdateEvent.java  |  100 +
 .../ambari/server/events/HostStateUpdateEvent.java |   49 +
 .../server/events/HostStatusUpdateEvent.java       |   47 +
 .../ambari/server/events/HostUpdateEvent.java      |  172 ++
 .../ambari/server/events/MessageEmitter.java       |   86 +
 .../ambari/server/events/MetadataUpdateEvent.java  |   97 +
 .../ambari/server/events/RequestUpdateEvent.java   |  243 ++
 .../events/ServiceComponentInstalledEvent.java     |   23 +-
 .../events/ServiceComponentUninstalledEvent.java   |   20 +-
 .../ambari/server/events/ServiceUpdateEvent.java   |  102 +
 .../server/events/StaleConfigsUpdateEvent.java     |   47 +
 .../server/events/TopologyAgentUpdateEvent.java    |   35 +
 .../ambari/server/events/TopologyUpdateEvent.java  |  117 +
 .../ambari/server/events/UpdateEventType.java      |   29 +
 .../ambari/server/events/UpgradeUpdateEvent.java   |  277 ++
 .../listeners/alerts/AlertAggregateListener.java   |    7 +-
 .../alerts/AlertDefinitionsUIUpdateListener.java   |  139 +
 .../alerts/AlertGroupsUpdateListener.java          |   69 +
 .../listeners/alerts/AlertReceivedListener.java    |  154 +-
 .../HostComponentsUpdateListener.java              |   90 +
 .../events/listeners/hosts/HostUpdateListener.java |  220 ++
 .../listeners/requests/StateUpdateListener.java    |   50 +
 .../listeners/services/ServiceUpdateListener.java  |  104 +
 .../events/listeners/tasks/TaskStatusListener.java |   29 +-
 .../listeners/upgrade/StackVersionListener.java    |   20 +-
 .../listeners/upgrade/UpgradeUpdateListener.java   |   63 +
 .../events/publishers/AgentCommandsPublisher.java  |  251 ++
 .../publishers/BufferedUpdateEventPublisher.java   |   73 +
 .../HostComponentUpdateEventPublisher.java         |   60 +
 .../publishers/RequestUpdateEventPublisher.java    |  116 +
 .../publishers/ServiceUpdateEventPublisher.java    |   70 +
 .../publishers/StateUpdateEventPublisher.java      |   66 +
 .../metrics/system/impl/MetricsServiceImpl.java    |    6 +
 .../system/impl/StompEventsMetricsSource.java      |  107 +
 .../ambari/server/orm/dao/AlertDefinitionDAO.java  |   12 +-
 .../ambari/server/orm/dao/AlertDispatchDAO.java    |   66 +-
 .../ambari/server/orm/dao/AlertSummaryDTO.java     |   41 +
 .../orm/dao/HostComponentDesiredStateDAO.java      |   35 +-
 .../apache/ambari/server/orm/dao/RequestDAO.java   |    4 +-
 .../orm/dao/ServiceComponentDesiredStateDAO.java   |   37 +
 .../ambari/server/orm/dao/ServiceConfigDAO.java    |   36 +-
 .../server/orm/entities/ClusterConfigEntity.java   |    3 -
 .../entities/HostComponentDesiredStateEntity.java  |   12 +-
 .../orm/entities/HostComponentStateEntity.java     |   18 +
 .../server/orm/entities/ServiceConfigEntity.java   |    5 +-
 .../ambari/server/security/AmbariEntryPoint.java   |    2 +
 .../AmbariBasicAuthenticationFilter.java           |   17 +-
 .../AmbariDelegatingAuthenticationFilter.java      |    2 +
 .../authentication/AmbariUserAuthentication.java   |    3 +
 .../AmbariAuthToLocalUserDetailsService.java       |    4 +-
 .../AmbariKerberosAuthenticationFilter.java        |    2 +
 .../kerberos/AmbariKerberosTicketValidator.java    |    2 +
 .../authorization/AmbariAuthorizationFilter.java   |    2 +
 .../server/serveraction/AbstractServerAction.java  |    4 +-
 .../upgrades/AbstractUpgradeServerAction.java      |    4 +
 .../upgrades/AtlasProxyUserConfigCalculation.java  |    3 +
 .../serveraction/upgrades/ConfigureAction.java     |   15 +
 .../FixCapacitySchedulerOrderingPolicy.java        |    3 +
 .../serveraction/upgrades/FixLzoCodecPath.java     |    3 +
 .../serveraction/upgrades/FixOozieAdminUsers.java  |    3 +
 .../upgrades/FixYarnWebServiceUrl.java             |    3 +
 .../upgrades/HBaseConfigCalculation.java           |    3 +
 .../HBaseEnvMaxDirectMemorySizeAction.java         |    3 +
 .../upgrades/HiveEnvClasspathAction.java           |    3 +
 .../upgrades/HiveZKQuorumConfigAction.java         |    3 +
 .../upgrades/OozieConfigCalculation.java           |    3 +
 .../upgrades/RangerConfigCalculation.java          |    3 +
 .../upgrades/RangerKerberosConfigCalculation.java  |    4 +
 .../upgrades/RangerKmsProxyConfig.java             |    4 +
 .../upgrades/RangerUsersyncConfigCalculation.java  |    5 +-
 .../upgrades/SparkShufflePropertyConfig.java       |    3 +
 .../upgrades/YarnConfigCalculation.java            |    3 +
 .../java/org/apache/ambari/server/state/Alert.java |  148 +-
 .../org/apache/ambari/server/state/Cluster.java    |    9 +-
 .../org/apache/ambari/server/state/Clusters.java   |    5 +-
 .../apache/ambari/server/state/ConfigHelper.java   |  381 ++-
 .../java/org/apache/ambari/server/state/Host.java  |    8 +
 .../org/apache/ambari/server/state/Service.java    |   10 +-
 .../ambari/server/state/ServiceComponent.java      |   12 +-
 .../ambari/server/state/ServiceComponentHost.java  |   24 +-
 .../server/state/ServiceComponentHostFactory.java  |    4 +
 .../ambari/server/state/ServiceComponentImpl.java  |   56 +-
 .../apache/ambari/server/state/ServiceImpl.java    |   53 +-
 .../apache/ambari/server/state/UpgradeHelper.java  |   18 +-
 .../ambari/server/state/alert/AggregateSource.java |   30 +-
 .../ambari/server/state/alert/AlertDefinition.java |   27 +
 .../server/state/alert/AlertDefinitionFactory.java |    2 +
 .../server/state/alert/AlertDefinitionHash.java    |   71 +-
 .../apache/ambari/server/state/alert/AlertUri.java |   22 +-
 .../ambari/server/state/alert/AmsSource.java       |   43 +-
 .../ambari/server/state/alert/MetricSource.java    |   52 +-
 .../server/state/alert/ParameterizedSource.java    |  123 +-
 .../ambari/server/state/alert/PercentSource.java   |   88 +-
 .../ambari/server/state/alert/PortSource.java      |   36 +-
 .../ambari/server/state/alert/Reporting.java       |  108 +-
 .../ambari/server/state/alert/ScriptSource.java    |   26 +-
 .../ambari/server/state/alert/ServerSource.java    |   20 +-
 .../apache/ambari/server/state/alert/Source.java   |   42 +-
 .../ambari/server/state/alert/WebSource.java       |   21 +-
 .../ambari/server/state/cluster/ClusterImpl.java   |  104 +-
 .../ambari/server/state/cluster/ClustersImpl.java  |   30 +-
 .../apache/ambari/server/state/host/HostImpl.java  |  125 +-
 .../state/services/MetricsRetrievalService.java    |    4 +
 .../state/stack/upgrade/ClusterGrouping.java       |    2 +-
 .../stack/upgrade/RepositoryVersionHelper.java     |   13 +
 .../svccomphost/ServiceComponentHostImpl.java      |  206 +-
 .../ambari/server/topology/AmbariContext.java      |    2 +-
 .../server/topology/TopologyDeleteFormer.java      |  102 +
 .../ambari/server/update/HostUpdateHelper.java     |    9 +
 .../server/upgrade/AbstractUpgradeCatalog.java     |    9 +
 .../ambari/server/upgrade/UpgradeCatalog270.java   |   29 +
 .../server/utils/ManagedThreadPoolExecutor.java    |    5 +-
 .../server/view/ViewInstanceHandlerList.java       |    7 +
 .../apache/ambari/server/view/ViewRegistry.java    |    4 +-
 .../src/main/resources/Ambari-DDL-Derby-CREATE.sql |    1 +
 .../src/main/resources/Ambari-DDL-MySQL-CREATE.sql |    1 +
 .../main/resources/Ambari-DDL-Oracle-CREATE.sql    |    1 +
 .../main/resources/Ambari-DDL-Postgres-CREATE.sql  |    1 +
 .../resources/Ambari-DDL-SQLAnywhere-CREATE.sql    |    1 +
 .../main/resources/Ambari-DDL-SQLServer-CREATE.sql |    1 +
 ...se.jetty.websocket.common.RemoteEndpointFactory |   17 +
 .../ACCUMULO/1.6.1.2.2.0/metainfo.xml              |   11 +
 .../package/scripts/accumulo_configuration.py      |    4 +-
 .../ACCUMULO/1.6.1.2.2.0/package/scripts/params.py |    8 +-
 .../1.6.1.2.2.0/package/scripts/status_params.py   |    4 +-
 .../templates/input.config-accumulo.json.j2        |   92 -
 .../ACCUMULO/1.6.1.2.2.0/themes/credentials.json   |   54 +
 .../ACCUMULO/1.6.1.2.2.0/themes/directories.json   |   88 +
 .../AMBARI_INFRA/0.1.0/metainfo.xml                |    4 +
 .../0.1.0/package/scripts/infra_solr.py            |    4 +-
 .../AMBARI_INFRA/0.1.0/package/scripts/params.py   |   12 +-
 .../0.1.0/properties/infra-solr-env.sh.j2          |    1 -
 .../AMBARI_INFRA/0.1.0/themes/directories.json     |  127 +
 .../0.1.0/configuration/ams-hbase-env.xml          |    2 +
 .../0.1.0/configuration/ams-hbase-site.xml         |    4 +
 .../0.1.0/configuration/ams-site.xml               |    1 +
 .../AMBARI_METRICS/0.1.0/metainfo.xml              |   11 +
 .../AMBARI_METRICS/0.1.0/package/scripts/ams.py    |   30 +-
 .../AMBARI_METRICS/0.1.0/package/scripts/hbase.py  |    8 +-
 .../AMBARI_METRICS/0.1.0/package/scripts/params.py |   22 +-
 .../0.1.0/package/scripts/params_linux.py          |    2 +-
 .../0.1.0/package/scripts/status_params.py         |    2 +-
 .../templates/input.config-ambari-metrics.json.j2  |  169 --
 .../AMBARI_METRICS/0.1.0/themes/credentials.json   |   42 +
 .../AMBARI_METRICS/0.1.0/themes/directories.json   |  247 ++
 .../ATLAS/0.1.0.2.3/configuration/atlas-env.xml    |    4 +
 .../ATLAS/0.1.0.2.3/package/scripts/metadata.py    |    4 +-
 .../ATLAS/0.1.0.2.3/package/scripts/params.py      |   24 +-
 .../package/scripts/setup_ranger_atlas.py          |    6 +-
 .../0.1.0.2.3/package/scripts/status_params.py     |    4 +-
 .../common-services/ATLAS/0.7.0.2.5/metainfo.xml   |    4 +
 .../ATLAS/0.7.0.2.5/themes/directories.json        |  127 +
 .../DRUID/0.10.1/package/scripts/params.py         |   14 +-
 .../FALCON/0.5.0.2.1/configuration/falcon-env.xml  |    1 +
 .../common-services/FALCON/0.5.0.2.1/metainfo.xml  |    8 +
 .../FALCON/0.5.0.2.1/package/scripts/params.py     |    2 +-
 .../0.5.0.2.1/package/scripts/params_linux.py      |   10 +-
 .../0.5.0.2.1/package/scripts/status_params.py     |    6 +-
 .../FALCON/0.5.0.2.1/themes/directories.json       |  137 +
 .../FLUME/1.4.0.2.0/package/scripts/params.py      |   16 +-
 .../1.4.0.2.0/package/scripts/params_linux.py      |    4 +-
 .../GANGLIA/3.5.0/package/scripts/params.py        |   21 +-
 .../HAWQ/2.0.0/package/scripts/params.py           |    8 +-
 .../HBASE/0.96.0.2.0/configuration/hbase-env.xml   |    1 +
 .../HBASE/0.96.0.2.0/configuration/hbase-site.xml  |    3 +
 .../common-services/HBASE/0.96.0.2.0/metainfo.xml  |    7 +
 .../HBASE/0.96.0.2.0/package/scripts/hbase.py      |   10 +-
 .../0.96.0.2.0/package/scripts/params_linux.py     |   20 +-
 .../package/scripts/setup_ranger_hbase.py          |   12 +-
 .../0.96.0.2.0/package/scripts/status_params.py    |    6 +-
 .../HBASE/0.96.0.2.0/themes/directories.json       |  167 ++
 .../HDFS/2.1.0.2.0/configuration/hadoop-env.xml    |    1 +
 .../HDFS/2.1.0.2.0/configuration/hdfs-site.xml     |    2 +
 .../common-services/HDFS/2.1.0.2.0/metainfo.xml    |    7 +
 .../common-services/HDFS/2.1.0.2.0/metrics.json    |    5 +
 .../HDFS/2.1.0.2.0/package/scripts/hdfs.py         |   16 +-
 .../2.1.0.2.0/package/scripts/install_params.py    |    2 +-
 .../HDFS/2.1.0.2.0/package/scripts/params_linux.py |   36 +-
 .../2.1.0.2.0/package/scripts/params_windows.py    |    2 +-
 .../2.1.0.2.0/package/scripts/setup_ranger_hdfs.py |   12 +-
 .../2.1.0.2.0/package/scripts/status_params.py     |    4 +-
 .../package/templates/input.config-hdfs.json.j2    |  216 --
 .../HDFS/2.1.0.2.0/themes/directories.json         |  177 ++
 .../HIVE/0.12.0.2.0/configuration/hive-site.xml    |    1 +
 .../HIVE/0.12.0.2.0/configuration/webhcat-site.xml |    1 +
 .../common-services/HIVE/0.12.0.2.0/metainfo.xml   |   15 +
 .../HIVE/0.12.0.2.0/package/scripts/hcat.py        |    4 +-
 .../HIVE/0.12.0.2.0/package/scripts/hive.py        |   10 +-
 .../0.12.0.2.0/package/scripts/hive_interactive.py |    8 +-
 .../0.12.0.2.0/package/scripts/params_linux.py     |   44 +-
 .../0.12.0.2.0/package/scripts/params_windows.py   |    2 +-
 .../package/scripts/setup_ranger_hive.py           |   12 +-
 .../scripts/setup_ranger_hive_interactive.py       |    6 +-
 .../0.12.0.2.0/package/scripts/status_params.py    |    6 +-
 .../HIVE/0.12.0.2.0/package/scripts/webhcat.py     |    6 +-
 .../HIVE/0.12.0.2.0/themes/credentials.json        |   43 +
 .../HIVE/0.12.0.2.0/themes/database.json           |  157 ++
 .../HIVE/0.12.0.2.0/themes/directories.json        |  197 ++
 .../KAFKA/0.8.1/configuration/kafka-broker.xml     |    1 +
 .../KAFKA/0.8.1/configuration/kafka-env.xml        |    1 +
 .../common-services/KAFKA/0.8.1/metainfo.xml       |    8 +
 .../KAFKA/0.8.1/package/scripts/kafka_broker.py    |    2 +-
 .../KAFKA/0.8.1/package/scripts/params.py          |   28 +-
 .../KAFKA/0.8.1/themes/directories.json            |   98 +
 .../KERBEROS/1.10.3-10/package/scripts/params.py   |   12 +-
 .../1.10.3-10/package/scripts/status_params.py     |    2 +-
 .../KERBEROS/1.10.3-30/package/scripts/params.py   |    6 +-
 .../1.10.3-30/package/scripts/status_params.py     |    2 +-
 .../KNOX/0.5.0.2.2/configuration/gateway-site.xml  |    1 +
 .../common-services/KNOX/0.5.0.2.2/metainfo.xml    |   12 +
 .../KNOX/0.5.0.2.2/package/scripts/knox.py         |    4 +-
 .../KNOX/0.5.0.2.2/package/scripts/params_linux.py |   30 +-
 .../0.5.0.2.2/package/scripts/params_windows.py    |    2 +-
 .../0.5.0.2.2/package/scripts/setup_ranger_knox.py |   14 +-
 .../0.5.0.2.2/package/scripts/status_params.py     |    6 +-
 .../KNOX/0.5.0.2.2/themes/credentials.json         |   38 +
 .../KNOX/0.5.0.2.2/themes/directories.json         |   88 +
 .../common-services/LOGSEARCH/0.5.0/metainfo.xml   |   14 +-
 .../LOGSEARCH/0.5.0/package/scripts/params.py      |   16 +-
 .../0.5.0/package/scripts/setup_logsearch.py       |    2 +-
 .../LOGSEARCH/0.5.0/themes/credentials.json        |   42 +
 .../LOGSEARCH/0.5.0/themes/directories.json        |  137 +
 .../MAHOUT/1.0.0.2.3/package/scripts/mahout.py     |    2 +-
 .../MAHOUT/1.0.0.2.3/package/scripts/params.py     |    6 +-
 .../common-services/OOZIE/4.0.0.2.0/metainfo.xml   |   15 +
 .../OOZIE/4.0.0.2.0/package/scripts/oozie.py       |   16 +-
 .../4.0.0.2.0/package/scripts/oozie_client.py      |    2 +-
 .../OOZIE/4.0.0.2.0/package/scripts/params.py      |    6 +-
 .../4.0.0.2.0/package/scripts/params_linux.py      |   30 +-
 .../4.0.0.2.0/package/scripts/status_params.py     |    6 +-
 .../OOZIE/4.0.0.2.0/themes/credentials.json        |   42 +
 .../OOZIE/4.0.0.2.0/themes/database.json           |  140 +
 .../OOZIE/4.0.0.2.0/themes/directories.json        |  127 +
 .../PIG/0.12.0.2.0/package/scripts/params_linux.py |    6 +-
 .../PXF/3.0.0/configuration/pxf-profiles.xml       |    3 -
 .../PXF/3.0.0/package/scripts/params.py            |    6 +-
 .../PXF/3.0.0/package/scripts/pxf.py               |    2 +-
 .../PXF/3.0.0/package/scripts/service_check.py     |    2 +-
 .../RANGER/0.4.0/package/scripts/params.py         |   38 +-
 .../0.4.0/package/scripts/setup_ranger_xml.py      |   16 +-
 .../RANGER/0.4.0/package/scripts/status_params.py  |    4 +-
 .../RANGER/0.6.0/themes/theme_version_3.json       |    1 +
 .../RANGER/0.7.0/themes/theme_version_5.json       |    1 +
 .../RANGER_KMS/0.5.0.2.3/package/scripts/kms.py    |   16 +-
 .../RANGER_KMS/0.5.0.2.3/package/scripts/params.py |   54 +-
 .../0.5.0.2.3/package/scripts/status_params.py     |    4 +-
 .../SLIDER/0.60.0.2.2/package/scripts/params.py    |    4 +-
 .../0.60.0.2.2/package/scripts/params_linux.py     |    2 +-
 .../SPARK/1.2.1/configuration/spark-env.xml        |    2 +
 .../common-services/SPARK/1.2.1/metainfo.xml       |    7 +
 .../SPARK/1.2.1/package/scripts/params.py          |   11 +-
 .../SPARK/1.2.1/package/scripts/service_check.py   |    6 +-
 .../SPARK/1.2.1/package/scripts/status_params.py   |    2 +-
 .../SPARK/1.2.1/themes/directories.json            |  148 ++
 .../SPARK/1.6.0/configuration/spark-defaults.xml   |    2 +
 .../1.6.0/configuration/spark-thrift-sparkconf.xml |    2 +
 .../SPARK2/2.0.0/configuration/spark2-defaults.xml |    2 +
 .../SPARK2/2.0.0/configuration/spark2-env.xml      |    2 +
 .../configuration/spark2-thrift-sparkconf.xml      |    2 +
 .../common-services/SPARK2/2.0.0/metainfo.xml      |    8 +
 .../SPARK2/2.0.0/package/scripts/params.py         |    9 +-
 .../SPARK2/2.0.0/package/scripts/service_check.py  |    6 +-
 .../SPARK2/2.0.0/package/scripts/status_params.py  |    2 +-
 .../SPARK2/2.0.0/themes/directories.json           |  148 ++
 .../1.4.4.2.0/package/scripts/params_linux.py      |   30 +-
 .../SQOOP/1.4.4.2.0/package/scripts/sqoop.py       |    2 +-
 .../STORM/0.9.1/configuration/storm-env.xml        |    2 +
 .../STORM/0.9.1/configuration/storm-site.xml       |    3 +
 .../common-services/STORM/0.9.1/metainfo.xml       |    8 +
 .../STORM/0.9.1/package/scripts/params_linux.py    |   12 +-
 .../0.9.1/package/scripts/setup_ranger_storm.py    |   14 +-
 .../STORM/0.9.1/package/scripts/status_params.py   |    6 +-
 .../STORM/0.9.1/package/scripts/storm.py           |   21 +-
 .../STORM/0.9.1/themes/directories.json            |  147 ++
 .../STORM/0.9.3/configuration/storm-site.xml       |    1 +
 .../SUPERSET/0.15.0/package/scripts/params.py      |    4 +-
 .../TEZ/0.4.0.2.1/configuration/tez-site.xml       |    2 +
 .../common-services/TEZ/0.4.0.2.1/metainfo.xml     |    7 +
 .../TEZ/0.4.0.2.1/package/scripts/params_linux.py  |    6 +-
 .../TEZ/0.4.0.2.1/package/scripts/tez.py           |    4 +-
 .../TEZ/0.4.0.2.1/package/scripts/tez_client.py    |    4 +-
 .../TEZ/0.4.0.2.1/themes/directories.json          |   69 +
 .../2.1.0.2.0/configuration-mapred/mapred-site.xml |    3 +
 .../YARN/2.1.0.2.0/configuration/yarn-site.xml     |    3 +
 .../common-services/YARN/2.1.0.2.0/metainfo.xml    |   14 +
 .../YARN/2.1.0.2.0/package/scripts/params_linux.py |   19 +-
 .../2.1.0.2.0/package/scripts/params_windows.py    |    4 +-
 .../2.1.0.2.0/package/scripts/setup_ranger_yarn.py |    6 +-
 .../2.1.0.2.0/package/scripts/status_params.py     |    7 +-
 .../YARN/2.1.0.2.0/package/scripts/yarn.py         |   22 +-
 .../package/templates/input.config-yarn.json.j2    |   72 -
 .../YARN/2.1.0.2.0/themes-mapred/directories.json  |  137 +
 .../YARN/2.1.0.2.0/themes/directories.json         |  177 ++
 .../ZEPPELIN/0.6.0/configuration/zeppelin-env.xml  |    2 +
 .../ZEPPELIN/0.6.0/package/scripts/master.py       |    6 +-
 .../ZEPPELIN/0.6.0/package/scripts/params.py       |   13 +-
 .../ZEPPELIN/0.7.0/configuration/zeppelin-env.xml  |    2 +
 .../ZEPPELIN/0.7.0/package/scripts/master.py       |    6 +-
 .../ZEPPELIN/0.7.0/package/scripts/params.py       |   13 +-
 .../common-services/ZOOKEEPER/3.4.5/metainfo.xml   |    8 +
 .../3.4.5/package/scripts/params_linux.py          |    8 +-
 .../3.4.5/package/scripts/params_windows.py        |    4 +-
 .../3.4.5/package/scripts/status_params.py         |    6 +-
 .../ZOOKEEPER/3.4.5/themes/directories.json        |  117 +
 .../resources/custom_actions/scripts/check_host.py |   62 +-
 .../custom_actions/scripts/install_packages.py     |    4 +-
 .../custom_actions/scripts/ru_execute_tasks.py     |    8 +-
 .../custom_actions/scripts/update_repo.py          |   11 +-
 .../stack-hooks/after-INSTALL/scripts/params.py    |   12 +-
 .../after-INSTALL/scripts/shared_initialization.py |    2 +-
 .../stack-hooks/before-ANY/scripts/params.py       |   24 +-
 .../stack-hooks/before-INSTALL/scripts/params.py   |   38 +-
 .../before-INSTALL/scripts/repo_initialization.py  |    6 +-
 .../stack-hooks/before-START/scripts/params.py     |   47 +-
 .../before-START/scripts/shared_initialization.py  |    4 +-
 .../BIGTOP/0.8/configuration/cluster-env.xml       |    5 +-
 .../0.8/hooks/after-INSTALL/scripts/params.py      |    4 +-
 .../after-INSTALL/scripts/shared_initialization.py |    2 +-
 .../BIGTOP/0.8/hooks/before-ANY/scripts/params.py  |    6 +-
 .../0.8/hooks/before-INSTALL/scripts/params.py     |    6 +-
 .../0.8/hooks/before-START/scripts/params.py       |    6 +-
 .../0.8/services/FLUME/package/scripts/params.py   |    2 +-
 .../0.8/services/GANGLIA/package/scripts/params.py |    2 +-
 .../0.8/services/HBASE/configuration/hbase-env.xml |    2 +
 .../services/HBASE/configuration/hbase-site.xml    |    3 +
 .../0.8/services/HBASE/package/scripts/hbase.py    |    8 +-
 .../0.8/services/HBASE/package/scripts/params.py   |    2 +-
 .../0.8/services/HDFS/configuration/hdfs-site.xml  |    2 +
 .../0.8/services/HDFS/package/scripts/hdfs.py      |    6 +-
 .../0.8/services/HDFS/package/scripts/params.py    |    4 +-
 .../0.8/services/HIVE/configuration/hive-site.xml  |    1 +
 .../services/HIVE/configuration/webhcat-site.xml   |    1 +
 .../0.8/services/HIVE/package/scripts/hcat.py      |    2 +-
 .../0.8/services/HIVE/package/scripts/hive.py      |    4 +-
 .../0.8/services/HIVE/package/scripts/params.py    |    8 +-
 .../0.8/services/HIVE/package/scripts/webhcat.py   |    2 +-
 .../0.8/services/OOZIE/package/scripts/oozie.py    |    2 +-
 .../0.8/services/OOZIE/package/scripts/params.py   |    4 +-
 .../0.8/services/PIG/package/scripts/params.py     |    2 +-
 .../YARN/configuration-mapred/mapred-site.xml      |    3 +
 .../0.8/services/YARN/configuration/yarn-site.xml  |    3 +
 .../0.8/services/YARN/package/scripts/params.py    |    2 +-
 .../0.8/services/YARN/package/scripts/yarn.py      |   12 +-
 .../services/ZOOKEEPER/package/scripts/params.py   |    2 +-
 .../services/GLUSTERFS/package/scripts/params.py   |    2 +-
 .../services/HBASE/configuration/hbase-site.xml    |    3 +
 .../services/HDFS/configuration/hdfs-site.xml      |    2 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../YARN/configuration-mapred/mapred-site.xml      |    3 +
 .../services/YARN/configuration/yarn-site.xml      |    3 +
 .../services/YARN/package/scripts/params.py        |    2 +-
 .../services/YARN/package/scripts/yarn.py          |    8 +-
 .../stacks/HDP/2.0.6/configuration/cluster-env.xml |   16 +-
 .../services/FALCON/configuration/falcon-env.xml   |    1 +
 .../services/FALCON/package/scripts/params.py      |    2 +-
 .../services/GLUSTERFS/package/scripts/params.py   |    2 +-
 .../services/HBASE/configuration/hbase-site.xml    |    3 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../services/STORM/configuration/storm-env.xml     |    2 +
 .../services/STORM/configuration/storm-site.xml    |    3 +
 .../services/STORM/package/scripts/params.py       |    4 +-
 .../services/TEZ/configuration/tez-site.xml        |    2 +
 .../services/TEZ/package/scripts/params.py         |    2 +-
 .../services/TEZ/package/scripts/tez.py            |    2 +-
 .../YARN/configuration-mapred/mapred-site.xml      |    3 +
 .../services/YARN/configuration/yarn-site.xml      |    3 +
 .../services/YARN/package/scripts/params.py        |    2 +-
 .../services/YARN/package/scripts/yarn.py          |    8 +-
 .../2.1/services/HIVE/configuration/hive-site.xml  |    1 +
 .../configuration/falcon-startup.properties.xml    |    1 +
 .../services/HBASE/configuration/hbase-site.xml    |    1 +
 .../2.2/services/HDFS/configuration/hdfs-site.xml  |    1 +
 .../2.2/services/HIVE/configuration/hive-site.xml  |    4 +
 .../services/HIVE/configuration/webhcat-site.xml   |    1 +
 .../2.2/services/TEZ/configuration/tez-site.xml    |    2 +
 .../2.2/services/YARN/configuration/yarn-site.xml  |    2 +
 .../services/ECS/package/scripts/ecs_client.py     |    4 +-
 .../2.3.ECS/services/ECS/package/scripts/params.py |    8 +-
 .../services/HBASE/configuration/hbase-site.xml    |    1 +
 .../configuration/cluster-env.xml.noversion        |    3 +-
 .../services/GLUSTERFS/package/scripts/params.py   |    2 +-
 .../services/HBASE/configuration/hbase-site.xml    |    3 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../services/HIVE/configuration/webhcat-site.xml   |    1 +
 .../YARN/configuration-mapred/mapred-site.xml      |    3 +
 .../services/YARN/configuration/yarn-site.xml      |    2 +
 .../2.3/services/HIVE/configuration/hive-env.xml   |    4 -
 .../services/HIVE/configuration/webhcat-site.xml   |    1 +
 .../2.3/services/YARN/configuration/yarn-site.xml  |    2 +
 .../2.5/services/ATLAS/configuration/atlas-env.xml |    4 +
 .../HIVE/configuration/tez-interactive-site.xml    |    1 +
 .../2.5/services/SPARK/configuration/livy-env.xml  |    2 +
 .../2.6/services/SPARK/configuration/livy-env.xml  |    2 +
 .../services/SPARK2/configuration/livy2-env.xml    |    2 +
 .../ZEPPELIN/configuration/zeppelin-env.xml        |    2 +
 .../HDPWIN/2.1/configuration/cluster-env.xml       |    6 +-
 .../HDPWIN/2.1/hooks/after-INSTALL/scripts/hook.py |    4 +-
 .../HDPWIN/2.1/hooks/before-ANY/scripts/params.py  |    6 +-
 .../AMBARI_METRICS/configuration/ams-hbase-env.xml |    2 +
 .../configuration/ams-hbase-site.xml               |    1 +
 .../services/FALCON/configuration/falcon-env.xml   |    1 +
 .../2.1/services/HDFS/configuration/hdfs-site.xml  |    1 +
 .../2.1/services/STORM/configuration/storm-env.xml |    2 +
 .../services/STORM/configuration/storm-site.xml    |    2 +
 .../2.1/services/TEZ/configuration/tez-site.xml    |    1 +
 .../2.1/services/YARN/configuration/yarn-site.xml  |    2 +
 .../configuration/falcon-startup.properties.xml    |    1 +
 .../2.2/services/HIVE/configuration/hive-site.xml  |    4 +
 .../services/HIVE/configuration/webhcat-site.xml   |    1 +
 .../2.2/services/TEZ/configuration/tez-site.xml    |    1 +
 .../2.2/services/YARN/configuration/yarn-site.xml  |    2 +
 .../2.3/services/TEZ/configuration/tez-site.xml    |    1 +
 .../PERF/1.0/hooks/before-ANY/scripts/params.py    |   12 +-
 .../services/FAKEHBASE/configuration/hbase-env.xml |    1 +
 .../FAKEHBASE/configuration/hbase-site.xml         |    3 +
 .../PERF/1.0/services/FAKEHBASE/metainfo.xml       |    2 +-
 .../services/FAKEHDFS/configuration/hadoop-env.xml |    1 +
 .../services/FAKEHDFS/configuration/hdfs-site.xml  |    2 +
 .../stacks/PERF/1.0/services/FAKEHDFS/metainfo.xml |    2 +-
 .../services/FAKEHDFS/package/scripts/params.py    |    2 +-
 .../package/templates/input.config-hdfs.json.j2    |  216 --
 .../services/FAKEYARN/configuration/yarn-site.xml  |    4 +
 .../services/KERBEROS/package/scripts/params.py    |    6 +-
 .../3.0/services/HDFS/configuration/hdfs-site.xml  |    1 +
 .../src/main/resources/stacks/stack_advisor.py     |    4 +-
 .../resources/webapp/WEB-INF/spring-security.xml   |   99 -
 .../server/actionmanager/TestActionManager.java    |    6 +-
 .../server/actionmanager/TestActionScheduler.java  |  458 ++--
 .../ambari/server/agent/AgentResourceTest.java     |   37 +-
 .../server/agent/AgentSessionManagerTest.java      |  100 +
 .../server/agent/DummyHeartbeatConstants.java      |    1 +
 .../server/agent/HeartbeatProcessorTest.java       |  142 +-
 .../ambari/server/agent/HeartbeatTestHelper.java   |   10 +-
 .../ambari/server/agent/TestActionQueue.java       |  382 ---
 .../ambari/server/agent/TestHeartbeatHandler.java  |  175 +-
 .../ambari/server/agent/TestHeartbeatMonitor.java  |   58 +-
 .../alerts/AgentHeartbeatAlertRunnableTest.java    |   17 +-
 .../alerts/AmbariPerformanceRunnableTest.java      |   21 +-
 .../alerts/ComponentVersionAlertRunnableTest.java  |   20 +-
 .../server/alerts/StaleAlertRunnableTest.java      |   16 +-
 .../ambari/server/api/AmbariErrorHandlerTest.java  |    3 +-
 .../server/api/services/AmbariMetaInfoTest.java    |    3 +-
 .../creator/RepositoryVersionEventCreatorTest.java |    4 -
 .../checks/DatabaseConsistencyCheckHelperTest.java |   51 +-
 .../checks/DruidHighAvailabilityCheckTest.java     |    2 +-
 .../checks/ServiceCheckValidityCheckTest.java      |    2 +-
 .../configuration/RecoveryConfigHelperTest.java    |   37 +-
 .../AmbariCustomCommandExecutionHelperTest.java    |   28 +-
 .../server/controller/AmbariHandlerListTest.java   |   12 +-
 .../AmbariManagementControllerImplTest.java        |  340 ++-
 .../controller/AmbariManagementControllerTest.java |   72 +-
 .../ambari/server/controller/AmbariServerTest.java |   77 +-
 .../controller/AmbariSessionManagerTest.java       |   12 +-
 .../BackgroundCustomCommandExecutionTest.java      |    6 +-
 .../server/controller/KerberosHelperTest.java      |   34 +-
 ...reshYarnCapacitySchedulerReleaseConfigTest.java |   22 +-
 .../ActiveWidgetLayoutResourceProviderTest.java    |    7 +
 .../internal/ComponentResourceProviderTest.java    |   41 +-
 .../internal/HostResourceProviderTest.java         |  123 +-
 .../controller/internal/JMXHostProviderTest.java   |   70 +-
 .../internal/ServiceResourceProviderTest.java      |   46 +-
 .../internal/StackDefinedPropertyProviderTest.java |   12 +-
 .../StackUpgradeConfigurationMergeTest.java        |   49 +-
 .../internal/UpgradeResourceProviderTest.java      |   10 +-
 ...erAuthenticationSourceResourceProviderTest.java |   10 +-
 .../UserAuthorizationResourceProviderTest.java     |    5 +
 .../internal/UserResourceProviderTest.java         |    5 +
 .../metrics/JMXPropertyProviderTest.java           |   20 +-
 .../metrics/RestMetricsPropertyProviderTest.java   |   15 +-
 .../utilities/KerberosIdentityCleanerTest.java     |    2 +-
 .../apache/ambari/server/events/EventsTest.java    |    9 +-
 .../listeners/tasks/TaskStatusListenerTest.java    |   19 +-
 .../upgrade/HostVersionOutOfSyncListenerTest.java  |    7 +-
 .../upgrade/StackVersionListenerTest.java          |   46 +-
 .../apache/ambari/server/orm/OrmTestHelper.java    |   18 +-
 .../server/orm/dao/AlertDefinitionDAOTest.java     |    6 -
 .../ambari/server/orm/dao/AlertsDAOCachedTest.java |   16 +-
 .../scheduler/ExecutionScheduleManagerTest.java    |    2 +-
 .../AmbariBasicAuthenticationFilterTest.java       |    4 +-
 .../kerberos/FinalizeKerberosServerActionTest.java |    9 +-
 .../kerberos/KerberosIdentityDataFileTest.java     |    2 +-
 .../kerberos/KerberosServerActionTest.java         |    1 +
 .../UpdateKerberosConfigsServerActionTest.java     |   22 +-
 .../AtlasProxyUserConfigCalculationTest.java       |   15 +-
 .../serveraction/upgrades/ConfigureActionTest.java |    2 +
 .../upgrades/CreateAndConfigureActionTest.java     |    1 +
 .../FixCapacitySchedulerOrderingPolicyTest.java    |   18 +-
 .../upgrades/FixOozieAdminUsersTest.java           |   17 +-
 .../upgrades/FixYarnWebServiceUrlTest.java         |   21 +-
 .../HBaseEnvMaxDirectMemorySizeActionTest.java     |   18 +-
 .../upgrades/HiveEnvClasspathActionTest.java       |   18 +-
 .../upgrades/HiveZKQuorumConfigActionTest.java     |   16 +-
 .../upgrades/KerberosKeytabsActionTest.java        |   13 +-
 .../upgrades/PreconfigureKerberosActionTest.java   |   59 +
 .../upgrades/RangerConfigCalculationTest.java      |   18 +-
 .../RangerKerberosConfigCalculationTest.java       |   16 +-
 .../upgrades/RangerKmsProxyConfigTest.java         |   17 +-
 .../RangerUsersyncConfigCalculationTest.java       |   17 +-
 .../upgrades/SparkShufflePropertyConfigTest.java   |   17 +-
 .../serveraction/upgrades/UpgradeActionTest.java   |    2 +
 .../PostUserCreationHookServerActionTest.java      |    1 +
 .../server/stack/StackServiceDirectoryTest.java    |    2 +-
 .../ambari/server/state/ConfigHelperTest.java      |   16 +-
 .../ambari/server/state/ServiceComponentTest.java  |   16 +-
 .../apache/ambari/server/state/ServiceTest.java    |    3 +-
 .../ambari/server/state/UpgradeHelperTest.java     |   35 +-
 .../state/alerts/AlertDefinitionHashTest.java      |   33 -
 .../state/alerts/AlertEventPublisherTest.java      |    3 +-
 .../state/alerts/AlertReceivedListenerTest.java    |   53 +-
 .../server/state/alerts/InitialAlertEventTest.java |    2 +-
 .../server/state/cluster/AlertDataManagerTest.java |    8 +-
 .../server/state/cluster/ClusterImplTest.java      |    3 +-
 .../ambari/server/state/cluster/ClusterTest.java   |   16 +-
 .../apache/ambari/server/state/host/HostTest.java  |    4 +-
 .../kerberos/KerberosComponentDescriptorTest.java  |    2 +-
 .../KerberosConfigurationDescriptorTest.java       |    2 +-
 .../KerberosDescriptorUpdateHelperTest.java        |   43 +-
 .../kerberos/KerberosIdentityDescriptorTest.java   |    2 +-
 .../kerberos/KerberosKeytabDescriptorTest.java     |    2 +-
 .../kerberos/KerberosPrincipalDescriptorTest.java  |    2 +-
 .../kerberos/KerberosServiceDescriptorTest.java    |    2 +-
 .../kerberos/VariableReplacementHelperTest.java    |    2 +-
 .../services/AlertNoticeDispatchServiceTest.java   |   14 +-
 .../services/CachedAlertFlushServiceTest.java      |   12 +-
 .../services/MetricsRetrievalServiceTest.java      |   64 +-
 .../svccomphost/ServiceComponentHostTest.java      |   42 +-
 .../server/testing/DBInconsistencyTests.java       |    3 +-
 .../server/testutils/PartialNiceMockBinder.java    |  266 ++
 .../ambari/server/update/HostUpdateHelperTest.java |   53 +-
 .../server/upgrade/SchemaUpgradeHelperTest.java    |    2 +
 .../server/upgrade/UpgradeCatalog251Test.java      |   83 +-
 .../server/upgrade/UpgradeCatalog252Test.java      |  112 +-
 .../server/upgrade/UpgradeCatalog260Test.java      |  301 ++-
 .../server/upgrade/UpgradeCatalog270Test.java      |  125 +-
 .../utils/ManagedThreadPoolExecutorTest.java       |    2 +-
 .../apache/ambari/server/utils/StageUtilsTest.java |   45 +-
 .../server/view/persistence/DataStoreImplTest.java |    4 +-
 .../src/test/python/TestResourceFilesKeeper.py     |    2 +-
 ambari-server/src/test/python/TestStackFeature.py  |   26 +-
 ambari-server/src/test/python/TestStackSelect.py   |   16 +-
 .../common-services/HAWQ/hawq_base_test_case.py    |    6 +-
 .../common-services/HAWQ/test_hawqstandby.py       |    2 +-
 .../test/python/common-services/PXF/test_pxf.py    |    2 +-
 .../common-services/configs/hawq_default.json      |  156 +-
 .../common-services/configs/hive_default.json      |  180 +-
 .../configs/hive_unsupported_jdbc_type.json        |  174 +-
 .../common-services/configs/pxf_default.json       |  169 +-
 .../configs/ranger_admin_default.json              |  177 +-
 .../ranger_admin_unsupported_db_flavor.json        |    6 +-
 .../configs/ranger_kms_default.json                |  185 +-
 .../configs/ranger_kms_unsupported_db_flavor.json  |    4 +-
 .../common-services/configs/sqoop_default.json     |  177 +-
 .../configs/sqoop_unsupported_jdbc_driver.json     |   10 +-
 .../test/python/custom_actions/TestCheckHost.py    |   16 +-
 .../test/python/custom_actions/TestUpdateRepo.py   |   41 +-
 .../configs/install_packages_config.json           |  164 +-
 .../configs/install_packages_repository_file.json  |  164 +-
 .../configs/remove_previous_stacks.json            |    6 +-
 .../python/custom_actions/test_ru_execute_tasks.py |    8 +-
 .../test/python/custom_actions/test_ru_set_all.py  |   16 +-
 .../2.0.6/AMBARI_METRICS/test_metrics_collector.py |   18 +-
 .../python/stacks/2.0.6/HBASE/test_hbase_client.py |   12 +-
 .../python/stacks/2.0.6/HBASE/test_hbase_master.py |   36 +-
 .../stacks/2.0.6/HBASE/test_hbase_regionserver.py  |   28 +-
 .../stacks/2.0.6/HBASE/test_phoenix_queryserver.py |   20 +-
 .../test/python/stacks/2.0.6/HDFS/test_datanode.py |   16 +-
 .../python/stacks/2.0.6/HDFS/test_hdfs_client.py   |    2 +-
 .../python/stacks/2.0.6/HDFS/test_journalnode.py   |    8 +-
 .../test/python/stacks/2.0.6/HDFS/test_namenode.py |   17 +-
 .../python/stacks/2.0.6/HDFS/test_nfsgateway.py    |   10 +-
 .../python/stacks/2.0.6/HDFS/test_snamenode.py     |    8 +-
 .../src/test/python/stacks/2.0.6/HDFS/test_zkfc.py |   16 +-
 .../python/stacks/2.0.6/HIVE/test_hcat_client.py   |    4 +-
 .../python/stacks/2.0.6/HIVE/test_hive_client.py   |    8 +-
 .../stacks/2.0.6/HIVE/test_hive_metastore.py       |    2 +-
 .../python/stacks/2.0.6/HIVE/test_hive_server.py   |   10 +-
 .../stacks/2.0.6/HIVE/test_webhcat_server.py       |   12 +-
 .../python/stacks/2.0.6/OOZIE/test_oozie_client.py |    8 +-
 .../python/stacks/2.0.6/OOZIE/test_oozie_server.py |   64 +-
 .../stacks/2.0.6/OOZIE/test_oozie_service_check.py |    2 +-
 .../python/stacks/2.0.6/PIG/test_pig_client.py     |    2 +-
 .../test/python/stacks/2.0.6/SQOOP/test_sqoop.py   |    4 +-
 .../python/stacks/2.0.6/YARN/test_historyserver.py |   32 +-
 .../stacks/2.0.6/YARN/test_mapreduce2_client.py    |   28 +-
 .../python/stacks/2.0.6/YARN/test_nodemanager.py   |   28 +-
 .../stacks/2.0.6/YARN/test_resourcemanager.py      |   31 +-
 .../python/stacks/2.0.6/YARN/test_yarn_client.py   |   42 +-
 .../stacks/2.0.6/configs/altfs_plus_hdfs.json      |  169 +-
 .../stacks/2.0.6/configs/client-upgrade.json       |  177 +-
 .../stacks/2.0.6/configs/default.hbasedecom.json   |  166 +-
 .../test/python/stacks/2.0.6/configs/default.json  |  221 +-
 .../2.0.6/configs/default.non_gmetad_host.json     |  168 +-
 .../stacks/2.0.6/configs/default_ams_embedded.json |  168 +-
 .../stacks/2.0.6/configs/default_client.json       |  167 +-
 .../stacks/2.0.6/configs/default_hive_nn_ha.json   |  171 +-
 .../stacks/2.0.6/configs/default_hive_nn_ha_2.json |  171 +-
 .../2.0.6/configs/default_hive_non_hdfs.json       |  169 +-
 .../stacks/2.0.6/configs/default_no_install.json   |  171 +-
 .../stacks/2.0.6/configs/default_oozie_mysql.json  |  169 +-
 .../configs/default_update_exclude_file_only.json  |  169 +-
 .../stacks/2.0.6/configs/default_with_bucket.json  |  180 +-
 .../default_yarn_include_file_dont_manage.json     |  185 +-
 .../configs/default_yarn_include_file_manage.json  |  187 +-
 .../test/python/stacks/2.0.6/configs/flume_22.json |  191 +-
 .../python/stacks/2.0.6/configs/flume_only.json    |  161 +-
 .../python/stacks/2.0.6/configs/flume_target.json  |  176 +-
 .../2.0.6/configs/ha_bootstrap_active_node.json    |  164 +-
 .../2.0.6/configs/ha_bootstrap_standby_node.json   |  165 +-
 .../ha_bootstrap_standby_node_initial_start.json   |  168 +-
 ...tandby_node_initial_start_dfs_nameservices.json |  166 +-
 .../python/stacks/2.0.6/configs/ha_default.json    |  164 +-
 .../python/stacks/2.0.6/configs/ha_secured.json    |  164 +-
 .../python/stacks/2.0.6/configs/hbase-2.2.json     |  169 +-
 .../stacks/2.0.6/configs/hbase-check-2.2.json      |  166 +-
 .../stacks/2.0.6/configs/hbase-preupgrade.json     |  170 +-
 .../stacks/2.0.6/configs/hbase-rs-2.2-phoenix.json |  171 +-
 .../python/stacks/2.0.6/configs/hbase-rs-2.2.json  |  171 +-
 .../python/stacks/2.0.6/configs/hbase_no_phx.json  |  174 +-
 .../stacks/2.0.6/configs/hbase_with_phx.json       |  174 +-
 .../test/python/stacks/2.0.6/configs/nn_eu.json    |  171 +-
 .../python/stacks/2.0.6/configs/nn_eu_standby.json |  169 +-
 .../python/stacks/2.0.6/configs/nn_ru_lzo.json     |  168 +-
 .../stacks/2.0.6/configs/oozie_existing_sqla.json  |  175 +-
 .../2.0.6/configs/ranger-namenode-start.json       |  174 +-
 .../2.0.6/configs/rebalancehdfs_default.json       |  163 +-
 .../2.0.6/configs/rebalancehdfs_secured.json       |  163 +-
 .../stacks/2.0.6/configs/repository_file.json      |  183 +-
 .../test/python/stacks/2.0.6/configs/secured.json  |  219 +-
 .../stacks/2.0.6/configs/secured_client.json       |  168 +-
 .../stacks/2.0.6/configs/secured_no_jce_name.json  |   10 +-
 .../secured_yarn_include_file_dont_manage.json     |  185 +-
 .../configs/secured_yarn_include_file_manage.json  |  187 +-
 .../stacks/2.0.6/configs/zk-service_check_2.2.json |  160 +-
 .../hooks/after-INSTALL/test_after_install.py      |   25 +-
 .../hooks/before-INSTALL/test_before_install.py    |   42 +-
 .../python/stacks/2.1/HIVE/test_hive_metastore.py  |    8 +-
 .../python/stacks/2.1/STORM/test_storm_base.py     |   32 +-
 .../2.1/STORM/test_storm_jaas_configuration.py     |    1 +
 .../python/stacks/2.1/STORM/test_storm_nimbus.py   |   34 +-
 .../stacks/2.1/STORM/test_storm_supervisor_prod.py |    1 -
 .../test/python/stacks/2.1/TEZ/test_tez_client.py  |    2 +-
 .../stacks/2.1/YARN/test_apptimelineserver.py      |   14 +-
 .../python/stacks/2.1/configs/client-upgrade.json  |  178 +-
 .../stacks/2.1/configs/default-storm-start.json    |  154 +-
 .../test/python/stacks/2.1/configs/default.json    |  210 +-
 .../stacks/2.1/configs/hive-metastore-upgrade.json |  173 +-
 .../stacks/2.1/configs/secured-storm-start.json    |  165 +-
 .../test/python/stacks/2.1/configs/secured.json    |  217 +-
 .../python/stacks/2.2/KNOX/test_knox_gateway.py    |    4 +-
 .../python/stacks/2.2/common/test_conf_select.py   |    4 +-
 .../test/python/stacks/2.2/configs/default.json    |  168 +-
 .../2.2/configs/default_custom_path_config.json    |  168 +-
 .../python/stacks/2.2/configs/falcon-upgrade.json  |  171 +-
 .../python/stacks/2.2/configs/hive-upgrade.json    |  179 +-
 .../configs/journalnode-upgrade-hdfs-secure.json   |  174 +-
 .../stacks/2.2/configs/journalnode-upgrade.json    |  174 +-
 .../python/stacks/2.2/configs/knox_upgrade.json    |  165 +-
 .../python/stacks/2.2/configs/oozie-downgrade.json |  173 +-
 .../python/stacks/2.2/configs/oozie-upgrade.json   |  175 +-
 .../2.2/configs/pig-service-check-secure.json      |  166 +-
 .../stacks/2.2/configs/ranger-admin-default.json   |  173 +-
 .../stacks/2.2/configs/ranger-admin-secured.json   |  173 +-
 .../stacks/2.2/configs/ranger-admin-upgrade.json   |  173 +-
 .../2.2/configs/ranger-usersync-upgrade.json       |  170 +-
 .../test/python/stacks/2.2/configs/secured.json    |  166 +-
 .../2.2/configs/spark-job-history-server.json      |    2 +-
 .../python/stacks/2.3/MAHOUT/test_mahout_client.py |    4 +-
 .../python/stacks/2.3/STORM/test_storm_base.py     |    1 +
 .../test/python/stacks/2.3/configs/ats_1_5.json    |  177 +-
 .../stacks/2.3/configs/default.hbasedecom.json     |   10 +-
 .../test/python/stacks/2.3/configs/default.json    |  167 +-
 .../python/stacks/2.3/configs/hbase_default.json   |  168 +-
 .../python/stacks/2.3/configs/hbase_secure.json    |  167 +-
 .../src/test/python/stacks/2.3/configs/secure.json |  168 +-
 .../python/stacks/2.3/configs/spark_default.json   |  166 +-
 .../python/stacks/2.3/configs/storm_default.json   |  163 +-
 .../stacks/2.3/configs/storm_default_secure.json   |  163 +-
 .../stacks/2.4/AMBARI_INFRA/test_infra_solr.py     |    6 +
 .../python/stacks/2.4/LOGSEARCH/test_logsearch.py  |    2 +-
 .../test/python/stacks/2.4/configs/default.json    |  164 +-
 .../python/stacks/2.5/HIVE/test_hive_server_int.py |   11 +-
 .../python/stacks/2.5/RANGER/test_ranger_admin.py  |    8 +-
 .../stacks/2.5/RANGER/test_ranger_tagsync.py       |    4 +-
 .../stacks/2.5/RANGER/test_ranger_usersync.py      |    4 +-
 .../stacks/2.5/RANGER_KMS/test_kms_server.py       |   28 +-
 .../test/python/stacks/2.5/configs/default.json    |  171 +-
 .../python/stacks/2.5/configs/hsi_default.json     |  180 +-
 .../2.5/configs/hsi_default_for_restart.json       |  179 +-
 .../src/test/python/stacks/2.5/configs/hsi_ha.json |  180 +-
 .../stacks/2.5/configs/ranger-admin-default.json   |  188 +-
 .../stacks/2.5/configs/ranger-admin-secured.json   |  188 +-
 .../stacks/2.5/configs/ranger-kms-default.json     |  194 +-
 .../stacks/2.5/configs/ranger-kms-secured.json     |  193 +-
 .../test/python/stacks/2.5/configs/secured.json    |  168 +-
 .../src/test/python/stacks/2.6/DRUID/test_druid.py |    2 +-
 .../2.6/KAFKA/test_kafka_broker_other_sasl.py      |    2 +
 .../python/stacks/2.6/RANGER/test_ranger_admin.py  |    8 +-
 .../stacks/2.6/RANGER/test_ranger_tagsync.py       |    6 +-
 .../python/stacks/2.6/common/test_stack_advisor.py |   14 +-
 .../test/python/stacks/2.6/configs/default.json    |  174 +-
 .../2.6/configs/default_kafka_plaintext.json       |  170 +-
 .../2.6/configs/default_kafka_plaintextsasl.json   |  170 +-
 .../2.6/configs/default_kafka_sasl_plaintext.json  |  170 +-
 .../stacks/2.6/configs/default_kafka_sasl_ssl.json |  170 +-
 .../stacks/2.6/configs/ranger-admin-default.json   |  188 +-
 .../stacks/2.6/configs/ranger-admin-secured.json   |  188 +-
 .../0.11.0.2.0.5.0/configuration/hive-site.xml     |    1 +
 .../HIVE/0.11.0.2.0.5.0/package/scripts/hive.py    |    2 +-
 .../HIVE/0.11.0.2.0.5.0/package/scripts/params.py  |    4 +-
 .../HIVE/configuration/hive-site.xml               |    1 +
 .../dummy_stack/HIVE/configuration/hive-site.xml   |    1 +
 .../dummy_stack/HIVE/package/scripts/hive.py       |    2 +-
 .../dummy_stack/HIVE/package/scripts/params.py     |    4 +-
 .../custom_actions/check_last_agent_env.json       |    2 +-
 .../ru_execute_tasks_namenode_prepare.json         |  162 +-
 .../services/HBASE/configuration/hbase-site.xml    |    1 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../WEBHCAT/configuration/webhcat-site.xml         |    1 +
 .../1.3.0/services/HBASE/configuration/global.xml  |    3 +
 .../services/HBASE/configuration/hbase-site.xml    |    2 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../WEBHCAT/configuration/webhcat-site.xml         |    1 +
 .../services/HBASE/configuration/hbase-site.xml    |    1 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../WEBHCAT/configuration/webhcat-site.xml         |    1 +
 .../services/HBASE/configuration/hbase-site.xml    |    2 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../MAPREDUCE2/configuration/mapred-site.xml       |    2 +
 .../WEBHCAT/configuration/webhcat-site.xml         |    1 +
 .../services/YARN/configuration/yarn-site.xml      |    2 +
 .../2.0.5/services/HBASE/configuration/global.xml  |    3 +
 .../services/HBASE/configuration/hbase-site.xml    |    2 +
 .../services/HDFS/configuration/core-site.xml      |    1 +
 .../services/HDFS/configuration/hdfs-site.xml      |    1 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../MAPREDUCE2/configuration/mapred-site.xml       |    3 +
 .../services/YARN/configuration/yarn-site.xml      |    2 +
 .../2.0.7/services/HBASE/configuration/global.xml  |    3 +
 .../services/HBASE/configuration/hbase-site.xml    |    2 +
 .../services/HDFS/configuration/hdfs-site.xml      |    2 +
 .../services/HIVE/configuration/hive-site.xml      |    1 +
 .../services/HBASE/configuration/hbase-site.xml    |    2 +
 ambari-utility/pom.xml                             |    5 +
 ambari-web/app/app.js                              |    3 +
 ambari-web/app/assets/test/tests.js                |    9 +
 .../global/background_operations_controller.js     |  215 +-
 .../app/controllers/global/cluster_controller.js   |   31 +-
 .../app/controllers/global/update_controller.js    |   62 +-
 ambari-web/app/controllers/main.js                 |    3 +
 .../main/admin/federation/step1_controller.js      |   13 +-
 .../main/admin/federation/wizard_controller.js     |   10 +
 .../highAvailability/nameNode/step1_controller.js  |    3 +-
 ambari-web/app/controllers/main/admin/kerberos.js  |    4 +-
 .../main/admin/stack_and_upgrade_controller.js     |   22 +-
 .../alerts/alert_definitions_actions_controller.js |    7 +-
 .../main/alerts/definition_configs_controller.js   |   11 +-
 .../manage_alert_notifications_controller.js       |   13 +-
 .../main/dashboard/config_history_controller.js    |   21 +-
 .../main/host/bulk_operations_controller.js        |   17 +-
 ambari-web/app/controllers/main/host/details.js    |   14 -
 ambari-web/app/controllers/main/service.js         |    6 +-
 .../app/controllers/main/service/info/configs.js   |    4 +-
 .../main/service/reassign/step4_controller.js      |    3 +-
 .../wizard/step7/assign_master_controller.js       |    2 +-
 .../app/controllers/wizard/step7_controller.js     |  295 ++-
 ambari-web/app/data/db_properties_info.js          |    3 +-
 ambari-web/app/mappers.js                          |   11 +-
 ambari-web/app/mappers/alert_definitions_mapper.js |   10 +-
 ambari-web/app/mappers/alert_groups_mapper.js      |   10 +-
 ambari-web/app/mappers/component_config_mapper.js  |  105 -
 ambari-web/app/mappers/components_state_mapper.js  |   13 +
 ambari-web/app/mappers/configs/themes_mapper.js    |   31 +-
 ambari-web/app/mappers/hosts_mapper.js             |   47 +-
 ambari-web/app/mappers/server_data_mapper.js       |   24 +-
 .../socket/alert_definitions_mapper_adapter.js     |   45 +
 .../mappers/socket/alert_groups_mapper_adapter.js  |   41 +
 .../app/mappers/socket/alert_summary_mapper.js     |   34 +
 .../mappers/socket/host_component_status_mapper.js |   55 +
 ambari-web/app/mappers/socket/host_state_mapper.js |   37 +
 .../app/mappers/socket/service_state_mapper.js     |   38 +
 ambari-web/app/mappers/socket/topology_mapper.js   |  173 ++
 .../app/mappers/socket/upgrade_state_mapper.js     |   42 +
 ambari-web/app/messages.js                         |   25 +-
 .../app/mixins/common/configs/configs_saver.js     |    1 -
 .../app/mixins/common/configs/enhanced_configs.js  |    2 +-
 ambari-web/app/mixins/common/serverValidator.js    |   40 +-
 .../app/models/configs/objects/service_config.js   |    2 +-
 .../app/models/configs/stack_config_property.js    |    6 +
 ambari-web/app/models/configs/theme/tab.js         |   13 +-
 ambari-web/app/models/host.js                      |   12 +-
 ambari-web/app/models/host_component.js            |    9 +
 ambari-web/app/models/stack_version/version.js     |    4 +-
 .../app/routes/namenode_federation_routes.js       |    2 +
 ambari-web/app/styles/application.less             |   26 +
 ambari-web/app/styles/wizard.less                  |  411 +++
 ambari-web/app/templates.js                        |    6 +
 ambari-web/app/templates/application.hbs           |   19 +-
 .../common/configs/service_config_category.hbs     |    2 +-
 .../common/configs/service_config_layout_tab.hbs   |   16 +-
 .../common/configs/service_config_wizard.hbs       |  132 +-
 .../templates/common/configs/services_config.hbs   |   80 +-
 .../templates/common/configs/widgets/controls.hbs  |   90 +-
 .../configs/widgets/controls/create_override.hbs   |   30 +
 .../common/configs/widgets/controls/edit.hbs       |   30 +
 .../common/configs/widgets/controls/final.hbs      |   27 +
 .../configs/widgets/controls/remove_override.hbs   |   30 +
 .../configs/widgets/controls/set_recommended.hbs   |   27 +
 .../common/configs/widgets/controls/undo.hbs       |   23 +
 .../configs/widgets/test_db_connection_widget.hbs  |   26 +-
 .../modal_popups/config_recommendation_popup.hbs   |   39 +-
 .../common/modal_popups/dependent_configs_list.hbs |   49 +-
 .../modal_popups/dependent_configs_table.hbs       |   63 +-
 .../app/templates/main/admin/federation/step1.hbs  |   31 +-
 .../app/templates/wizard/step7/accounts_tab.hbs    |   48 +
 .../app/templates/wizard/step7/credentials_tab.hbs |   61 +
 .../app/templates/wizard/step7/databases_tab.hbs   |   25 +
 .../app/templates/wizard/step7/directories_tab.hbs |   44 +
 .../wizard/step7/directories_theme_layout.hbs      |   59 +
 .../templates/wizard/step7_with_category_tabs.hbs  |   71 +
 ambari-web/app/utils/ajax/ajax.js                  |    9 +-
 ambari-web/app/utils/bootstrap_reopen.js           |   46 +-
 ambari-web/app/utils/config.js                     |    4 +-
 ambari-web/app/utils/configs/database.js           |   11 +
 ambari-web/app/utils/host_progress_popup.js        |    2 +-
 ambari-web/app/utils/stomp_client.js               |  218 ++
 ambari-web/app/utils/validator.js                  |    7 +-
 ambari-web/app/views.js                            |    4 +
 ambari-web/app/views/common/checkbox_view.js       |    6 +
 .../configs/service_config_container_view.js       |    9 +
 .../configs/service_config_layout_tab_view.js      |   19 +-
 .../common/configs/service_config_tab_view.js      |    4 -
 .../views/common/configs/service_config_view.js    |    8 +-
 .../configs/service_configs_by_category_view.js    |    4 +-
 .../app/views/common/configs/services_config.js    |    7 +-
 .../configs/widgets/combo_config_widget_view.js    |   25 +
 .../widgets/test_db_connection_widget_view.js      |   31 +-
 ambari-web/app/views/common/controls_view.js       |   14 +-
 .../views/common/host_progress_popup_body_view.js  |    2 +-
 .../config_validation/config_validation_popup.js   |    7 +-
 .../modal_popups/dependent_configs_list_popup.js   |   37 +-
 ambari-web/app/views/common/radio_button_view.js   |    1 +
 .../app/views/main/admin/federation/step1_view.js  |    9 +-
 .../views/main/alerts/definition_details_view.js   |   25 +-
 .../views/main/dashboard/config_history_view.js    |    6 +-
 ambari-web/app/views/main/host/summary.js          |   57 +-
 ambari-web/app/views/main/menu.js                  |    2 +-
 ambari-web/app/views/wizard/step1_view.js          |    3 +
 .../app/views/wizard/step7/accounts_tab_view.js    |   42 +
 .../app/views/wizard/step7/credentials_tab_view.js |   90 +
 .../app/views/wizard/step7/databases_tab_view.js   |   72 +
 .../app/views/wizard/step7/directories_tab_view.js |  124 +
 ambari-web/app/views/wizard/step7_view.js          |   22 +-
 ambari-web/brunch-config.js                        |    2 +
 ambari-web/karma.conf.js                           |    2 +-
 ambari-web/package.json                            |    2 +-
 ambari-web/pom.xml                                 |  714 +++---
 .../global/background_operations_test.js           |  329 ++-
 .../controllers/global/cluster_controller_test.js  |   64 +-
 .../controllers/global/update_controller_test.js   |  198 +-
 .../admin/stack_and_upgrade_controller_test.js     |   16 +-
 .../dashboard/config_history_controller_test.js    |   45 +-
 .../test/controllers/main/host/details_test.js     |   45 -
 .../controllers/main/service/info/config_test.js   |    6 +-
 ambari-web/test/controllers/main/service_test.js   |    2 +-
 ambari-web/test/controllers/main_test.js           |   39 +
 ambari-web/test/controllers/wizard/step7_test.js   |    6 +-
 .../test/mappers/configs/themes_mapper_test.js     |   19 +-
 ambari-web/test/mappers/server_data_mapper_test.js |   20 +
 .../alert_definitions_mapper_adapter_test.js       |   85 +
 .../socket/alert_groups_mapper_adapter_test.js     |   70 +
 .../mappers/socket/alert_summary_mapper_test.js    |   51 +
 .../socket/host_component_status_mapper_test.js    |   99 +
 .../test/mappers/socket/host_state_mapper_test.js  |   44 +
 .../mappers/socket/service_state_mapper_test.js    |   44 +
 .../test/mappers/socket/topology_mapper_test.js    |  209 ++
 .../mappers/socket/upgrade_state_mapper_test.js    |   80 +
 .../mixins/common/configs/configs_saver_test.js    |    7 -
 .../test/mixins/common/serverValidator_test.js     |    3 +
 ambari-web/test/models/host_test.js                |   14 +
 ambari-web/test/utils/stomp_client_test.js         |  252 ++
 ambari-web/test/utils/validator_test.js            |   24 +
 .../dependent_configs_list_popup_test.js           |    1 -
 .../main/alerts/definition_details_view_test.js    |   48 +-
 .../main/dashboard/config_history_view_test.js     |   27 +-
 ambari-web/test/views/main/host/summary_test.js    |   17 +-
 ambari-web/test/views/wizard/step1_view_test.js    |   89 +
 ambari-web/vendor/scripts/sockjs.min.js            |    4 +
 ambari-web/vendor/scripts/stomp.min.js             |    8 +
 .../ONEFS/1.0.0/package/scripts/params_linux.py    |    2 +-
 .../ONEFS/1.0.0/package/scripts/params_windows.py  |    2 +-
 .../ONEFS/1.0.0/package/scripts/status_params.py   |    4 +-
 dev-support/docker/centos6/Dockerfile              |   33 +
 dev-support/docker/centos7/Dockerfile              |   37 +
 dev-support/docker/common/.bashrc                  |   17 +
 dev-support/docker/common/Dockerfile               |   34 +
 dev-support/docker/ubuntu16/Dockerfile             |   35 +
 docs/src/site/site.xml                             |    2 +-
 pom.xml                                            |    8 +-
 start-build-env.sh                                 |   64 +
 1214 files changed, 59257 insertions(+), 13595 deletions(-)
 create mode 100644 ambari-agent/src/main/python/ambari_agent/AlertStatusReporter.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterAlertDefinitionsCache.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterCache.py
 delete mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterConfiguration.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterConfigurationCache.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterHostLevelParamsCache.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterMetadataCache.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ClusterTopologyCache.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/CommandStatusReporter.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ComponentStatusExecutor.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/ConfigurationBuilder.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/Constants.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/HeartbeatThread.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/HostStatusReporter.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/InitializerModule.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/Utils.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/client_example.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/AlertDefinitionsEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/CommandsEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/ConfigurationEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/HostLevelParamsEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/MetadataEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/ServerResponsesListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/TopologyEventListener.py
 create mode 100644 ambari-agent/src/main/python/ambari_agent/listeners/__init__.py
 create mode 100644 ambari-agent/src/test/python/ambari_agent/BaseStompServerTestCase.py
 create mode 100644 ambari-agent/src/test/python/ambari_agent/TestAgentStompResponses.py
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/alert_definitions.json
 delete mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/definitions.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/agent_host_status_update.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definition_expected.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definitions.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definitions_add.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definitions_delete.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definitions_edit.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/alert_definitions_small.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/components_status_report.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/configurations_update.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/execution_commands.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/heartbeat_request.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/host_level_params.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/metadata_after_registration.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/metadata_update.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/registration_request.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/registration_response.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_add_component.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_add_component_host.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_add_host.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_cache_expected.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_create.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_delete_cluster.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_delete_component.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_delete_component_host.json
 create mode 100644 ambari-agent/src/test/python/ambari_agent/dummy_files/stomp/topology_delete_host.json
 create mode 100644 ambari-common/src/main/python/ambari_commons/unicode_tolerant_fs.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/__init__.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/__main__.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/adapter/__init__.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/adapter/multicast.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/adapter/websocket.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backward.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backward2.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backward3.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backwardsock.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backwardsock25.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/backwardsock26.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/colors.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/connect.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/constants.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/exception.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/listener.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/protocol.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/transport.py
 create mode 100644 ambari-common/src/main/python/ambari_stomp/utils.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/__init__.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/client/__init__.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/client/geventclient.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/client/threadedclient.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/client/tornadoclient.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/compat.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/exc.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/framing.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/manager.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/messaging.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/streaming.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/utf8validator.py
 create mode 100644 ambari-common/src/main/python/ambari_ws4py/websocket.py
 create mode 100644 ambari-common/src/test/python/coilmq/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/auth/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/auth/simple.py
 create mode 100644 ambari-common/src/test/python/coilmq/config/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/config/coilmq.cfg-sample
 create mode 100644 ambari-common/src/test/python/coilmq/config/defaults.cfg
 create mode 100644 ambari-common/src/test/python/coilmq/engine.py
 create mode 100644 ambari-common/src/test/python/coilmq/exception.py
 create mode 100644 ambari-common/src/test/python/coilmq/protocol/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/queue.py
 create mode 100644 ambari-common/src/test/python/coilmq/scheduler.py
 create mode 100644 ambari-common/src/test/python/coilmq/server/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/server/socket_server.py
 create mode 100644 ambari-common/src/test/python/coilmq/start.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/dbm.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/memory.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/rds.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/sa/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/sa/meta.py
 create mode 100644 ambari-common/src/test/python/coilmq/store/sa/model.py
 create mode 100644 ambari-common/src/test/python/coilmq/topic.py
 create mode 100644 ambari-common/src/test/python/coilmq/util/__init__.py
 create mode 100644 ambari-common/src/test/python/coilmq/util/concurrency.py
 create mode 100644 ambari-common/src/test/python/coilmq/util/frames.py
 create mode 100644 ambari-common/src/test/python/coilmq/util/six.py
 delete mode 100755 ambari-infra/ambari-infra-assembly/src/main/resources/solr
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/DisableBatchingRemoteEndpointFactory.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/HostNotRegisteredException.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/MessageDestinationIsNotDefinedException.java
 delete mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/ActionQueue.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/AgentReport.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/AgentReportsProcessor.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/AgentSessionManager.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentClusterDataHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentConfigsHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentCurrentDataController.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentDataHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentHostDataHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentReportsController.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AgentsRegistrationQueue.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AlertDefinitionsHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AmbariSubscriptionRegistry.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/HeartbeatController.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/HostLevelParamsHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/MetadataHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/TopologyHolder.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/AlertCluster.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/AlertGroupUpdate.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/ClusterConfigs.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/CommandStatusReports.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/ComponentStatusReport.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/ComponentStatusReports.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/ExecutionCommandsCluster.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/Hash.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/Hashable.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/HostLevelParamsCluster.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/HostRepositories.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/HostStatusReport.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/MetadataCluster.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/MetadataServiceInfo.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/TopologyCluster.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/TopologyComponent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/dto/TopologyHost.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/api/AmbariSendToMethodReturnValueHandler.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/api/stomp/ClustersController.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/api/stomp/TestController.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/AgentRegisteringQueueChecker.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/AgentStompConfig.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/ApiSecurityConfig.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/ApiStompConfig.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/GuiceBeansConfig.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/configuration/spring/RootStompConfig.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/controller/SessionHandlerConfigurer.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DeleteHostComponentStatusMetaData.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AgentConfigsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AlertDefinitionEventType.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AlertDefinitionsAgentUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AlertDefinitionsUIUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AlertGroupsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AlertUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AmbariHostUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/AmbariUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/ConfigsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/DefaultMessageEmitter.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/ExecutionCommandEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostComponentUpdate.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostComponentsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostLevelParamsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostStateUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostStatusUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/HostUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/MessageEmitter.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/MetadataUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/RequestUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/ServiceUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/StaleConfigsUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/TopologyAgentUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/TopologyUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/UpdateEventType.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/UpgradeUpdateEvent.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertDefinitionsUIUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertGroupsUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/hostcomponents/HostComponentsUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/hosts/HostUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/requests/StateUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/services/ServiceUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/listeners/upgrade/UpgradeUpdateListener.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/AgentCommandsPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/BufferedUpdateEventPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/HostComponentUpdateEventPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/RequestUpdateEventPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/ServiceUpdateEventPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/events/publishers/StateUpdateEventPublisher.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/metrics/system/impl/StompEventsMetricsSource.java
 create mode 100644 ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyDeleteFormer.java
 create mode 100644 ambari-server/src/main/resources/META-INF/services/org.eclipse.jetty.websocket.common.RemoteEndpointFactory
 delete mode 100644 ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/package/templates/input.config-accumulo.json.j2
 create mode 100644 ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/ACCUMULO/1.6.1.2.2.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/AMBARI_INFRA/0.1.0/themes/directories.json
 delete mode 100644 ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/templates/input.config-ambari-metrics.json.j2
 create mode 100644 ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/ATLAS/0.7.0.2.5/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/themes/directories.json
 delete mode 100644 ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/templates/input.config-hdfs.json.j2
 create mode 100644 ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/themes/database.json
 create mode 100644 ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/KAFKA/0.8.1/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/themes/credentials.json
 create mode 100644 ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/themes/database.json
 create mode 100644 ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/SPARK/1.2.1/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/SPARK2/2.0.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/STORM/0.9.1/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/TEZ/0.4.0.2.1/themes/directories.json
 delete mode 100644 ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/templates/input.config-yarn.json.j2
 create mode 100644 ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/themes-mapred/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/themes/directories.json
 create mode 100644 ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5/themes/directories.json
 delete mode 100644 ambari-server/src/main/resources/stacks/PERF/1.0/services/FAKEHDFS/package/templates/input.config-hdfs.json.j2
 delete mode 100644 ambari-server/src/main/resources/webapp/WEB-INF/spring-security.xml
 create mode 100644 ambari-server/src/test/java/org/apache/ambari/server/agent/AgentSessionManagerTest.java
 delete mode 100644 ambari-server/src/test/java/org/apache/ambari/server/agent/TestActionQueue.java
 create mode 100644 ambari-server/src/test/java/org/apache/ambari/server/testutils/PartialNiceMockBinder.java
 delete mode 100644 ambari-web/app/mappers/component_config_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/alert_definitions_mapper_adapter.js
 create mode 100644 ambari-web/app/mappers/socket/alert_groups_mapper_adapter.js
 create mode 100644 ambari-web/app/mappers/socket/alert_summary_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/host_component_status_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/host_state_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/service_state_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/topology_mapper.js
 create mode 100644 ambari-web/app/mappers/socket/upgrade_state_mapper.js
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/create_override.hbs
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/edit.hbs
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/final.hbs
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/remove_override.hbs
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/set_recommended.hbs
 create mode 100644 ambari-web/app/templates/common/configs/widgets/controls/undo.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7/accounts_tab.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7/credentials_tab.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7/databases_tab.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7/directories_tab.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7/directories_theme_layout.hbs
 create mode 100644 ambari-web/app/templates/wizard/step7_with_category_tabs.hbs
 create mode 100644 ambari-web/app/utils/stomp_client.js
 create mode 100644 ambari-web/app/views/wizard/step7/accounts_tab_view.js
 create mode 100644 ambari-web/app/views/wizard/step7/credentials_tab_view.js
 create mode 100644 ambari-web/app/views/wizard/step7/databases_tab_view.js
 create mode 100644 ambari-web/app/views/wizard/step7/directories_tab_view.js
 create mode 100644 ambari-web/test/mappers/socket/alert_definitions_mapper_adapter_test.js
 create mode 100644 ambari-web/test/mappers/socket/alert_groups_mapper_adapter_test.js
 create mode 100644 ambari-web/test/mappers/socket/alert_summary_mapper_test.js
 create mode 100644 ambari-web/test/mappers/socket/host_component_status_mapper_test.js
 create mode 100644 ambari-web/test/mappers/socket/host_state_mapper_test.js
 create mode 100644 ambari-web/test/mappers/socket/service_state_mapper_test.js
 create mode 100644 ambari-web/test/mappers/socket/topology_mapper_test.js
 create mode 100644 ambari-web/test/mappers/socket/upgrade_state_mapper_test.js
 create mode 100644 ambari-web/test/utils/stomp_client_test.js
 create mode 100644 ambari-web/vendor/scripts/sockjs.min.js
 create mode 100644 ambari-web/vendor/scripts/stomp.min.js
 create mode 100644 dev-support/docker/centos6/Dockerfile
 create mode 100644 dev-support/docker/centos7/Dockerfile
 create mode 100644 dev-support/docker/common/.bashrc
 create mode 100644 dev-support/docker/common/Dockerfile
 create mode 100644 dev-support/docker/ubuntu16/Dockerfile
 create mode 100755 start-build-env.sh

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.

[ambari] 03/03: AMBARI-22825 Add different options of field name display

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

oleewere pushed a commit to branch branch-feature-AMBARI-22842
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 4df8e38835e08fd42d8958a59f33d1d22c11aae1
Author: Istvan Tobias <to...@gmail.com>
AuthorDate: Tue Feb 13 19:31:07 2018 +0100

    AMBARI-22825 Add different options of field name display
---
 ambari-logsearch/ambari-logsearch-web/package.json |    2 +
 .../src/app/classes/models/audit-log-field.ts      |  225 --
 .../src/app/classes/models/log-field.ts            |   27 -
 .../src/app/classes/models/service-log-field.ts    |  107 -
 .../src/app/classes/models/store.ts                |    7 +-
 .../ambari-logsearch-web/src/app/classes/object.ts |   21 +
 .../action-menu/action-menu.component.spec.ts      |   16 +-
 .../audit-logs-entries.component.spec.ts           |   16 +-
 .../audit-logs-table.component.spec.ts             |   16 +-
 .../context-menu/context-menu.component.spec.ts    |    8 +-
 .../dropdown-list/dropdown-list.component.spec.ts  |    8 +-
 .../dropdown-list/dropdown-list.component.ts       |    5 +-
 .../filter-dropdown.component.spec.ts              |    8 +-
 .../filters-panel/filters-panel.component.spec.ts  |    9 +-
 .../filters-panel/filters-panel.component.ts       |   58 +-
 .../log-context/log-context.component.spec.ts      |   16 +-
 .../log-index-filter.component.spec.ts             |   16 +-
 .../logs-container/logs-container.component.html   |    2 +-
 .../logs-container.component.spec.ts               |   17 +-
 .../service-logs-table.component.spec.ts           |   20 +-
 .../time-range-picker.component.spec.ts            |   15 +-
 .../timezone-picker.component.spec.ts              |   16 +-
 .../components/top-menu/top-menu.component.spec.ts |   17 +-
 .../src/app/mock-data-by-url.ts                    | 2177 +++++++++++++++++
 .../ambari-logsearch-web/src/app/mock-data.ts      | 2508 --------------------
 .../services/component-generator.service.spec.ts   |   17 +-
 .../app/services/component-generator.service.ts    |    3 +-
 .../app/services/history-manager.service.spec.ts   |   18 +-
 .../app/services/logs-container.service.spec.ts    |   16 +-
 .../src/app/services/logs-container.service.ts     |   50 +-
 .../src/app/services/mock-api-data.service.ts      |   39 +-
 .../services/storage/audit-logs-fields.service.ts  |   49 +-
 .../src/app/services/user-settings.service.spec.ts |   18 +-
 .../src/app/services/utils.service.ts              |   12 +-
 .../src/app/test-config.spec.ts                    |   26 +-
 ambari-logsearch/ambari-logsearch-web/yarn.lock    |   24 +
 36 files changed, 2441 insertions(+), 3168 deletions(-)

diff --git a/ambari-logsearch/ambari-logsearch-web/package.json b/ambari-logsearch/ambari-logsearch-web/package.json
index a87f7fc..f856e60 100644
--- a/ambari-logsearch/ambari-logsearch-web/package.json
+++ b/ambari-logsearch/ambari-logsearch-web/package.json
@@ -28,6 +28,7 @@
     "angular-moment-timezone": "^0.2.1",
     "angular-pipes": "^6.5.3",
     "angular2-moment": "^1.4.0",
+    "angular2-take-until-destroy": "^2.0.1",
     "bootstrap": "^3.3.7",
     "core-js": "^2.4.1",
     "d3": "^4.10.0",
@@ -74,6 +75,7 @@
     "postcss-loader": "^1.3.3",
     "postcss-url": "^5.1.2",
     "protractor": "~5.1.0",
+    "randomatic": "^3.0.0",
     "raw-loader": "^0.5.1",
     "sass-loader": "^6.0.3",
     "source-map-loader": "^0.2.0",
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/audit-log-field.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/audit-log-field.ts
deleted file mode 100644
index 40ad27e..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/audit-log-field.ts
+++ /dev/null
@@ -1,225 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {LogField} from '@app/classes/models/log-field';
-
-const columnsNamesMap = {
-  access: {
-    displayName: 'logs.accessType',
-    isDisplayed: true
-  },
-  action: {
-    displayName: 'logs.action'
-  },
-  agent: {
-    displayName: 'logs.agent'
-  },
-  agentHost: {
-    displayName: 'logs.agentHost'
-  },
-  authType: {
-    displayName: 'logs.authType'
-  },
-  bundle_id: {
-    displayName: 'logs.bundleId'
-  },
-  case_id: {
-    displayName: 'logs.caseId'
-  },
-  cliIP: {
-    displayName: 'logs.clientIp',
-    isDisplayed: true
-  },
-  cliType: {
-    displayName: 'logs.clientType'
-  },
-  cluster: {
-    displayName: 'logs.cluster'
-  },
-  dst: {
-    displayName: 'logs.dst'
-  },
-  evtTime: {
-    displayName: 'logs.eventTime',
-    isDisplayed: true
-  },
-  file: {
-    displayName: 'logs.file'
-  },
-  host: {
-    displayName: 'logs.host'
-  },
-  id: {
-    displayName: 'logs.id'
-  },
-  ip: {
-    displayName: 'logs.ip'
-  },
-  level: {
-    displayName: 'logs.level'
-  },
-  log_message: {
-    displayName: 'logs.message'
-  },
-  logType: {
-    displayName: 'logs.logType'
-  },
-  logfile_line_number: {
-    displayName: 'logs.logfileLineNumber'
-  },
-  logger_name: {
-    displayName: 'logs.loggerName'
-  },
-  logtime: {
-    displayName: 'logs.logTime'
-  },
-  path: {
-    displayName: 'logs.path'
-  },
-  perm: {
-    displayName: 'logs.perm'
-  },
-  policy: {
-    displayName: 'logs.policy'
-  },
-  proxyUsers: {
-    displayName: 'logs.proxyUsers'
-  },
-  reason: {
-    displayName: 'logs.reason'
-  },
-  repo: {
-    displayName: 'logs.repo',
-    isDisplayed: true
-  },
-  repoType: {
-    displayName: 'logs.repoType'
-  },
-  req_caller_id: {
-    displayName: 'logs.reqCallerId'
-  },
-  reqContext: {
-    displayName: 'logs.reqContext'
-  },
-  reqData: {
-    displayName: 'logs.reqData'
-  },
-  req_self_id: {
-    displayName: 'logs.reqSelfId'
-  },
-  resType: {
-    displayName: 'logs.resType'
-  },
-  resource: {
-    displayName: 'logs.resource',
-    isDisplayed: true
-  },
-  result: {
-    displayName: 'logs.result',
-    isDisplayed: true
-  },
-  sess: {
-    displayName: 'logs.session'
-  },
-  text: {
-    displayName: 'logs.text'
-  },
-  type: {
-    displayName: 'logs.type'
-  },
-  ugi: {
-    displayName: 'logs.ugi'
-  },
-  reqUser: {
-    displayName: 'logs.user',
-    isDisplayed: true
-  },
-  ws_base_url: {
-    displayName: 'logs.baseUrl'
-  },
-  ws_command: {
-    displayName: 'logs.command'
-  },
-  ws_component: {
-    displayName: 'logs.component'
-  },
-  ws_details: {
-    displayName: 'logs.details'
-  },
-  ws_display_name: {
-    displayName: 'logs.displayName'
-  },
-  ws_os: {
-    displayName: 'logs.os'
-  },
-  ws_repo_id: {
-    displayName: 'logs.repoId'
-  },
-  ws_repo_version: {
-    displayName: 'logs.repoVersion'
-  },
-  ws_repositories: {
-    displayName: 'logs.repositories'
-  },
-  ws_request_id: {
-    displayName: 'logs.requestId'
-  },
-  ws_result_status: {
-    displayName: 'logs.resultStatus'
-  },
-  ws_roles: {
-    displayName: 'logs.roles'
-  },
-  ws_stack_version: {
-    displayName: 'logs.stackVersion'
-  },
-  ws_stack: {
-    displayName: 'logs.stack'
-  },
-  ws_status: {
-    displayName: 'logs.status'
-  },
-  ws_task_id: {
-    displayName: 'logs.taskId'
-  },
-  ws_version_note: {
-    displayName: 'logs.versionNote'
-  },
-  ws_version_number: {
-    displayName: 'logs.versionNumber'
-  },
-  tags: {
-    isAvailable: false
-  },
-  tags_str: {
-    isAvailable: false
-  },
-  seq_num: {
-    isAvailable: false
-  }
-};
-
-export class AuditLogField extends LogField {
-  constructor(name: string) {
-    super(name);
-    const preset = columnsNamesMap[this.name];
-    if (preset) {
-      Object.assign(this, preset);
-    }
-  }
-}
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/log-field.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/log-field.ts
deleted file mode 100644
index 0e738ab..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/log-field.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-export class LogField {
-  constructor(name: string) {
-    this.name = name;
-  }
-  name: string;
-  displayName: string = this.name;
-  isDisplayed: boolean = false;
-  isAvailable: boolean = true;
-}
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/service-log-field.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/service-log-field.ts
deleted file mode 100644
index 0c1c23e..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/service-log-field.ts
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {LogField} from '@app/classes/models/log-field';
-
-const columnsNamesMap = {
-  log_message: {
-    displayName: 'logs.message',
-    isDisplayed: true
-  },
-  bundle_id: {
-    displayName: 'logs.bundleId'
-  },
-  case_id: {
-    displayName: 'logs.caseId'
-  },
-  cluster: {
-    displayName: 'logs.cluster'
-  },
-  event_count: {
-    displayName: 'logs.eventCount'
-  },
-  file: {
-    displayName: 'logs.file'
-  },
-  host: {
-    displayName: 'logs.host'
-  },
-  id: {
-    displayName: 'logs.id'
-  },
-  ip: {
-    displayName: 'logs.ip'
-  },
-  level: {
-    displayName: 'logs.level',
-    isDisplayed: true
-  },
-  line_number: {
-    displayName: 'logs.lineNumber'
-  },
-  logtype: {
-    displayName: 'logs.logType'
-  },
-  logfile_line_number: {
-    displayName: 'logs.logfileLineNumber'
-  },
-  logger_name: {
-    displayName: 'logs.loggerName'
-  },
-  logtime: {
-    isDisplayed: true
-  },
-  method: {
-    displayName: 'logs.method'
-  },
-  path: {
-    displayName: 'logs.path'
-  },
-  rowtype: {
-    displayName: 'logs.rowType'
-  },
-  thread_name: {
-    displayName: 'logs.threadName'
-  },
-  type: {
-    displayName: 'logs.type',
-    isDisplayed: true
-  },
-  tags: {
-    isAvailable: false
-  },
-  text: {
-    isAvailable: false
-  },
-  message: {
-    isAvailable: false
-  },
-  seq_num: {
-    isAvailable: false
-  }
-};
-
-export class ServiceLogField extends LogField {
-  constructor(name: string) {
-    super(name);
-    const preset = columnsNamesMap[this.name];
-    if (preset) {
-      Object.assign(this, preset);
-    }
-  }
-}
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/store.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/store.ts
index eb87714..1dec44d 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/store.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/store.ts
@@ -27,9 +27,8 @@ import {BarGraph} from '@app/classes/models/bar-graph';
 import {Graph} from '@app/classes/models/graph';
 import {NodeItem} from '@app/classes/models/node-item';
 import {UserConfig} from '@app/classes/models/user-config';
-import {AuditLogField} from '@app/classes/models/audit-log-field';
-import {ServiceLogField} from '@app/classes/models/service-log-field';
 import {Tab} from '@app/classes/models/tab';
+import {LogField} from "@app/classes/object";
 import {UtilsService} from '@app/services/utils.service';
 
 const storeActions = {
@@ -60,8 +59,8 @@ export interface AppStore {
   userConfigs: UserConfig[];
   clusters: string[];
   components: NodeItem[];
-  serviceLogsFields: ServiceLogField[];
-  auditLogsFields: AuditLogField[];
+  serviceLogsFields: LogField[];
+  auditLogsFields: LogField[];
   tabs: Tab[];
 }
 
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/object.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/object.ts
index 13cc4cc..2cb39b1 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/object.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/classes/object.ts
@@ -25,3 +25,24 @@ export interface LogLevelObject {
   label: string;
   color: string;
 }
+
+/**
+ * This is an interface for the service and audit log fields.
+ */
+export interface LogField {
+  group?: string; // eg.: HDFS, Ambari, etc this prop is only used in Audit logs
+  label: string;
+  name: string;
+  filterable: boolean; // it can be used in a filter query
+  visible: boolean; // visible by default in the log list
+}
+
+/**
+ * This is an interface for the service and audit log fields.
+ */
+export interface AuditFieldsDefinitionSet {
+  defaults: LogField[],
+  overrides: {
+    [key: string]: LogField[]
+  }
+}
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.spec.ts
index 3ec5429..629f5a8 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/action-menu/action-menu.component.spec.ts
@@ -19,7 +19,7 @@
 import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {FormsModule, ReactiveFormsModule} from '@angular/forms';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -37,7 +37,6 @@ import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {HistoryManagerService} from '@app/services/history-manager.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UserSettingsService} from '@app/services/user-settings.service';
 import {UtilsService} from '@app/services/utils.service';
@@ -51,14 +50,6 @@ describe('ActionMenuComponent', () => {
   let fixture: ComponentFixture<ActionMenuComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       imports: [
         FormsModule,
@@ -86,10 +77,7 @@ describe('ActionMenuComponent', () => {
         TimerSecondsPipe
       ],
       providers: [
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
+        ...MockHttpRequestModules,
         HistoryManagerService,
         LogsContainerService,
         UserSettingsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-entries/audit-logs-entries.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-entries/audit-logs-entries.component.spec.ts
index 51aaaa1..1f1eedd 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-entries/audit-logs-entries.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-entries/audit-logs-entries.component.spec.ts
@@ -17,7 +17,7 @@
 
 import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -36,7 +36,6 @@ import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/s
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {TabsComponent} from '@app/components/tabs/tabs.component';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 
 import {AuditLogsEntriesComponent} from './audit-logs-entries.component';
@@ -46,14 +45,6 @@ describe('AuditLogsEntriesComponent', () => {
   let fixture: ComponentFixture<AuditLogsEntriesComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       declarations: [
         AuditLogsEntriesComponent,
@@ -78,11 +69,8 @@ describe('AuditLogsEntriesComponent', () => {
         }),
       ],
       providers: [
+        ...MockHttpRequestModules,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         UtilsService,
         AuditLogsService,
         ServiceLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-table/audit-logs-table.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-table/audit-logs-table.component.spec.ts
index 1a2f4de..926c0b6 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-table/audit-logs-table.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/audit-logs-table/audit-logs-table.component.spec.ts
@@ -22,7 +22,7 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms';
 import {StoreModule} from '@ngrx/store';
 import {MomentModule} from 'angular2-moment';
 import {MomentTimezoneModule} from 'angular-moment-timezone';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
 import {AuditLogsFieldsService, auditLogsFields} from '@app/services/storage/audit-logs-fields.service';
@@ -40,7 +40,6 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UtilsService} from '@app/services/utils.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {PaginationComponent} from '@app/components/pagination/pagination.component';
 import {DropdownListComponent} from '@app/components/dropdown-list/dropdown-list.component';
 
@@ -49,14 +48,6 @@ import {AuditLogsTableComponent} from './audit-logs-table.component';
 describe('AuditLogsTableComponent', () => {
   let component: AuditLogsTableComponent;
   let fixture: ComponentFixture<AuditLogsTableComponent>;
-  const httpClient = {
-    get: () => {
-      return {
-        subscribe: () => {
-        }
-      };
-    }
-  };
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
@@ -88,12 +79,9 @@ describe('AuditLogsTableComponent', () => {
         })
       ],
       providers: [
+        ...MockHttpRequestModules,
         LogsContainerService,
         UtilsService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         AuditLogsService,
         ServiceLogsService,
         AuditLogsFieldsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/context-menu/context-menu.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/context-menu/context-menu.component.spec.ts
index 1881f57..f236426 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/context-menu/context-menu.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/context-menu/context-menu.component.spec.ts
@@ -20,7 +20,7 @@ import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {FormsModule} from '@angular/forms';
 import {StoreModule} from '@ngrx/store';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -38,7 +38,6 @@ import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/s
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {ComponentGeneratorService} from '@app/services/component-generator.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {AuthService} from '@app/services/auth.service';
 import {UtilsService} from '@app/services/utils.service';
 import {DropdownListComponent} from '@app/components/dropdown-list/dropdown-list.component';
@@ -84,12 +83,9 @@ describe('ContextMenuComponent', () => {
         FormsModule
       ],
       providers: [
+        ...MockHttpRequestModules,
         ComponentGeneratorService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         HostsService,
         AuditLogsService,
         ServiceLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.spec.ts
index 6d88010..9b8f515 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.spec.ts
@@ -19,7 +19,7 @@
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {FormsModule} from '@angular/forms';
 import {StoreModule} from '@ngrx/store';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -37,7 +37,6 @@ import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/s
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {ComponentGeneratorService} from '@app/services/component-generator.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {AuthService} from '@app/services/auth.service';
 import {UtilsService} from '@app/services/utils.service';
 
@@ -78,12 +77,9 @@ describe('DropdownListComponent', () => {
         FormsModule
       ],
       providers: [
+        ...MockHttpRequestModules,
         ComponentGeneratorService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         HostsService,
         AuditLogsService,
         ServiceLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.ts
index 5d0ad4a..78cd39c 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/dropdown-list/dropdown-list.component.ts
@@ -18,7 +18,7 @@
 
 import {
   Component, OnChanges, AfterViewChecked, SimpleChanges, Input, Output, EventEmitter, ViewChildren, ViewContainerRef,
-  QueryList
+  QueryList, ChangeDetectorRef
 } from '@angular/core';
 import {ListItem} from '@app/classes/list-item';
 import {ComponentGeneratorService} from '@app/services/component-generator.service';
@@ -30,7 +30,7 @@ import {ComponentGeneratorService} from '@app/services/component-generator.servi
 })
 export class DropdownListComponent implements OnChanges, AfterViewChecked {
 
-  constructor(private componentGenerator: ComponentGeneratorService) {
+  constructor(private componentGenerator: ComponentGeneratorService, private changeDetector: ChangeDetectorRef) {
   }
 
   private shouldRenderAdditionalComponents: boolean = false;
@@ -71,6 +71,7 @@ export class DropdownListComponent implements OnChanges, AfterViewChecked {
     if (this.shouldRenderAdditionalComponents && setter && containers) {
       containers.forEach((container, index) => this.componentGenerator[setter](this.items[index].value, container));
       this.shouldRenderAdditionalComponents = false;
+      this.changeDetector.detectChanges();
     }
   }
 
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/filter-dropdown/filter-dropdown.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/filter-dropdown/filter-dropdown.component.spec.ts
index e3105c1..814967e 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/filter-dropdown/filter-dropdown.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/filter-dropdown/filter-dropdown.component.spec.ts
@@ -17,7 +17,7 @@
 
 import {NO_ERRORS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AppSettingsService, appSettings} from '@app/services/storage/app-settings.service';
 import {AppStateService, appState} from '@app/services/storage/app-state.service';
@@ -36,7 +36,6 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {UtilsService} from '@app/services/utils.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {AuthService} from '@app/services/auth.service';
 
 import {FilterDropdownComponent} from './filter-dropdown.component';
@@ -91,6 +90,7 @@ describe('FilterDropdownComponent', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         AppSettingsService,
         AppStateService,
         AuditLogsService,
@@ -110,10 +110,6 @@ describe('FilterDropdownComponent', () => {
         },
         UtilsService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         AuthService
       ],
       schemas: [NO_ERRORS_SCHEMA]
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.spec.ts
index 29cac93..598f3f9 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.spec.ts
@@ -19,7 +19,7 @@
 import {NO_ERRORS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {FormGroup, FormControl} from '@angular/forms';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AppSettingsService, appSettings} from '@app/services/storage/app-settings.service';
 import {ClustersService, clusters} from '@app/services/storage/clusters.service';
@@ -36,7 +36,6 @@ import {
 import {AppStateService, appState} from '@app/services/storage/app-state.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 
@@ -78,6 +77,7 @@ describe('FiltersPanelComponent', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         AppSettingsService,
         ClustersService,
         ComponentsService,
@@ -92,10 +92,6 @@ describe('FiltersPanelComponent', () => {
         ServiceLogsTruncatedService,
         TabsService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         UtilsService
       ],
       schemas: [NO_ERRORS_SCHEMA]
@@ -109,7 +105,6 @@ describe('FiltersPanelComponent', () => {
     component.filtersForm = new FormGroup({
       control: new FormControl()
     });
-    component.logsType = 'auditLogs';
     fixture.detectChanges();
   });
 
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.ts
index b233847..7b156ba 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/filters-panel/filters-panel.component.ts
@@ -16,50 +16,66 @@
  * limitations under the License.
  */
 
-import {Component, OnChanges, SimpleChanges, Input, ViewContainerRef} from '@angular/core';
+import {Component, OnDestroy, Input, ViewContainerRef, OnInit} from '@angular/core';
 import {FormGroup} from '@angular/forms';
 import {Observable} from 'rxjs/Observable';
 import {Subject} from 'rxjs/Subject';
 import 'rxjs/add/observable/from';
+import {TakeUntilDestroy} from "angular2-take-until-destroy";
 import {FilterCondition, SearchBoxParameter, SearchBoxParameterTriggered} from '@app/classes/filtering';
 import {ListItem} from '@app/classes/list-item';
 import {HomogeneousObject} from '@app/classes/object';
 import {LogsType} from '@app/classes/string';
 import {LogsContainerService} from '@app/services/logs-container.service';
+import {UtilsService} from "@app/services/utils.service";
+import {AppStateService} from "@app/services/storage/app-state.service";
+import {Subscription} from "rxjs/Subscription";
 
 @Component({
   selector: 'filters-panel',
   templateUrl: './filters-panel.component.html',
   styleUrls: ['./filters-panel.component.less']
 })
-export class FiltersPanelComponent implements OnChanges {
+@TakeUntilDestroy
+export class FiltersPanelComponent implements OnDestroy, OnInit {
+  componentDestroy;
+  constructor(private logsContainer: LogsContainerService, public viewContainerRef: ViewContainerRef,
+              private utils: UtilsService, private appState: AppStateService) {
+  }
 
-  constructor(private logsContainer: LogsContainerService, public viewContainerRef: ViewContainerRef) {
+  ngOnInit() {
+    this.appState.getParameter('activeLogsType').takeUntil(this.componentDestroy()).subscribe(this.onLogsTypeChange);
   }
 
-  ngOnChanges(changes: SimpleChanges): void {
-    if (changes.hasOwnProperty('logsType')) {
-      let result;
-      switch (changes.logsType.currentValue) {
-        case 'auditLogs':
-          result = this.logsContainer.auditLogsColumns;
-          break;
-        case 'serviceLogs':
-          result = this.logsContainer.serviceLogsColumns;
-          break;
-        default:
-          result = Observable.from([]);
-          break;
-      }
-      this.searchBoxItems = result;
+  ngOnDestroy() {}
+
+  private onLogsTypeChange = (currentLogsType: LogsType): void => {
+    const logsType = this.logsContainer.logsTypeMap[currentLogsType];
+    const fieldsModel: any = logsType && logsType.fieldsModel;
+    let subType:string;
+    let fields:Observable<any>;
+    switch (currentLogsType) {
+      case 'auditLogs':
+        fields = fieldsModel.getParameter(subType ? 'overrides' : 'defaults');
+        if (subType) {
+          fields = fields.map(items => items[subType]);
+        }
+        break;
+      case 'serviceLogs':
+        fields = fieldsModel.getAll();
+        break;
+      default:
+        fields = Observable.from([]);
+        break;
     }
-  }
+    this.searchBoxItems = fields.map(items => items.filter(field => field.filterable))
+      .map(this.utils.logFieldToListItemMapper);
+  };
 
   @Input()
   filtersForm: FormGroup;
 
-  @Input()
-  logsType: LogsType;
+  private subscriptions$: Subscription[] = [];
 
   searchBoxItems: Observable<ListItem[]>;
 
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/log-context/log-context.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/log-context/log-context.component.spec.ts
index 6e6a70e..50205d5 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/log-context/log-context.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/log-context/log-context.component.spec.ts
@@ -33,10 +33,9 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {ModalComponent} from '@app/components/modal/modal.component';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 
 import {LogContextComponent} from './log-context.component';
@@ -46,14 +45,6 @@ describe('LogContextComponent', () => {
   let fixture: ComponentFixture<LogContextComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       declarations: [
         LogContextComponent,
@@ -78,6 +69,7 @@ describe('LogContextComponent', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         AuditLogsService,
         ServiceLogsService,
         AuditLogsFieldsService,
@@ -92,10 +84,6 @@ describe('LogContextComponent', () => {
         ServiceLogsTruncatedService,
         TabsService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         UtilsService
       ],
       schemas: [CUSTOM_ELEMENTS_SCHEMA]
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/log-index-filter/log-index-filter.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/log-index-filter/log-index-filter.component.spec.ts
index a236686..2bfb172 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/log-index-filter/log-index-filter.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/log-index-filter/log-index-filter.component.spec.ts
@@ -19,7 +19,7 @@
 import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {FormsModule} from '@angular/forms';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -37,7 +37,6 @@ import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {ComponentGeneratorService} from '@app/services/component-generator.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UserSettingsService} from '@app/services/user-settings.service';
 import {UtilsService} from '@app/services/utils.service';
@@ -51,14 +50,6 @@ describe('LogIndexFilterComponent', () => {
   let fixture: ComponentFixture<LogIndexFilterComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       imports: [
         FormsModule,
@@ -85,11 +76,8 @@ describe('LogIndexFilterComponent', () => {
         DropdownListComponent
       ],
       providers: [
+        ...MockHttpRequestModules,
         ComponentGeneratorService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         LogsContainerService,
         UserSettingsService,
         UtilsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
index 412fd2c..0b9637f 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.html
@@ -25,7 +25,7 @@
   </div>
 </div>
 <div #container [ngClass]="{'container-fluid': true, 'fixed-filterbar': isFilterPanelFixedPostioned}">
-  <filters-panel class="row" [filtersForm]="filtersForm" [logsType]="logsType" #filtersPanel></filters-panel>
+  <filters-panel class="row" [filtersForm]="filtersForm" #filtersPanel></filters-panel>
   <div class="row events-count">
     <div *ngIf="autoRefreshRemainingSeconds" class="col-md-12">
       <div class="auto-refresh-message pull-right">
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.spec.ts
index 8a3d985..7764494 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/logs-container/logs-container.component.spec.ts
@@ -19,7 +19,7 @@
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {StoreModule} from '@ngrx/store';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {AppSettingsService, appSettings} from '@app/services/storage/app-settings.service';
 import {AppStateService, appState} from '@app/services/storage/app-state.service';
 import {ClustersService, clusters} from '@app/services/storage/clusters.service';
@@ -35,7 +35,6 @@ import {
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {TabsComponent} from '@app/components/tabs/tabs.component';
@@ -43,14 +42,6 @@ import {TabsComponent} from '@app/components/tabs/tabs.component';
 import {LogsContainerComponent} from './logs-container.component';
 
 describe('LogsContainerComponent', () => {
-  const httpClient = {
-    get: () => {
-      return {
-        subscribe: () => {
-        }
-      };
-    }
-  };
   let component: LogsContainerComponent;
   let fixture: ComponentFixture<LogsContainerComponent>;
 
@@ -79,10 +70,7 @@ describe('LogsContainerComponent', () => {
         ...TranslationModules
       ],
       providers: [
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
+        ...MockHttpRequestModules,
         AppSettingsService,
         AppStateService,
         ClustersService,
@@ -107,7 +95,6 @@ describe('LogsContainerComponent', () => {
   beforeEach(() => {
     fixture = TestBed.createComponent(LogsContainerComponent);
     component = fixture.componentInstance;
-    component['logsType'] = 'serviceLogs';
     fixture.detectChanges();
   });
 
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.spec.ts
index e2afbc8..6206033 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.spec.ts
@@ -23,7 +23,7 @@ import {StoreModule} from '@ngrx/store';
 import {MomentModule} from 'angular2-moment';
 import {MomentTimezoneModule} from 'angular-moment-timezone';
 import {TooltipModule} from 'ngx-bootstrap';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
 import {AuditLogsFieldsService, auditLogsFields} from '@app/services/storage/audit-logs-fields.service';
@@ -41,32 +41,25 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UtilsService} from '@app/services/utils.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {ComponentGeneratorService} from '@app/services/component-generator.service';
 import {AuthService} from '@app/services/auth.service';
 import {PaginationComponent} from '@app/components/pagination/pagination.component';
 import {DropdownListComponent} from '@app/components/dropdown-list/dropdown-list.component';
 
 import {ServiceLogsTableComponent, ListLayout} from './service-logs-table.component';
+import {ComponentLabelPipe} from "@app/pipes/component-label";
 
 describe('ServiceLogsTableComponent', () => {
   let component: ServiceLogsTableComponent;
   let fixture: ComponentFixture<ServiceLogsTableComponent>;
-  const httpClient = {
-    get: () => {
-      return {
-        subscribe: () => {
-        }
-      };
-    }
-  };
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
       declarations: [
         ServiceLogsTableComponent,
         PaginationComponent,
-        DropdownListComponent
+        DropdownListComponent,
+        ComponentLabelPipe
       ],
       imports: [
         FormsModule,
@@ -92,12 +85,9 @@ describe('ServiceLogsTableComponent', () => {
         TooltipModule.forRoot()
       ],
       providers: [
+        ...MockHttpRequestModules,
         LogsContainerService,
         UtilsService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         AuditLogsService,
         ServiceLogsService,
         AuditLogsFieldsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/time-range-picker/time-range-picker.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/time-range-picker/time-range-picker.component.spec.ts
index b41760f..33310c5 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/time-range-picker/time-range-picker.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/time-range-picker/time-range-picker.component.spec.ts
@@ -19,7 +19,7 @@
 import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {StoreModule} from '@ngrx/store';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {AppSettingsService, appSettings} from '@app/services/storage/app-settings.service';
 import {AppStateService, appState} from '@app/services/storage/app-state.service';
 import {ClustersService, clusters} from '@app/services/storage/clusters.service';
@@ -46,14 +46,6 @@ describe('TimeRangePickerComponent', () => {
   let fixture: ComponentFixture<TimeRangePickerComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       declarations: [TimeRangePickerComponent],
       imports: [
@@ -75,10 +67,7 @@ describe('TimeRangePickerComponent', () => {
         ...TranslationModules
       ],
       providers: [
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
+        ...MockHttpRequestModules,
         LogsContainerService,
         UtilsService,
         AppSettingsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/timezone-picker/timezone-picker.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/timezone-picker/timezone-picker.component.spec.ts
index b522562..6f7e704 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/timezone-picker/timezone-picker.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/timezone-picker/timezone-picker.component.spec.ts
@@ -17,7 +17,6 @@
  */
 
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AppSettingsService, appSettings} from '@app/services/storage/app-settings.service';
 import {AppStateService, appState} from '@app/services/storage/app-state.service';
@@ -42,6 +41,8 @@ import {AuthService} from '@app/services/auth.service';
 import {TimeZoneAbbrPipe} from '@app/pipes/timezone-abbr.pipe';
 import {ModalComponent} from '@app/components/modal/modal.component';
 
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
+
 import {TimeZonePickerComponent} from './timezone-picker.component';
 
 describe('TimeZonePickerComponent', () => {
@@ -49,14 +50,6 @@ describe('TimeZonePickerComponent', () => {
   let fixture: ComponentFixture<TimeZonePickerComponent>;
 
   beforeEach(async(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       declarations: [
         TimeZonePickerComponent,
@@ -82,6 +75,7 @@ describe('TimeZonePickerComponent', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         AppSettingsService,
         AppStateService,
         ClustersService,
@@ -95,10 +89,6 @@ describe('TimeZonePickerComponent', () => {
         ServiceLogsHistogramDataService,
         ServiceLogsTruncatedService,
         TabsService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         LogsContainerService,
         AuthService,
         UserSettingsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/top-menu/top-menu.component.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/components/top-menu/top-menu.component.spec.ts
index caeb197..35a0243 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/top-menu/top-menu.component.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/top-menu/top-menu.component.spec.ts
@@ -20,7 +20,6 @@ import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
 import {async, ComponentFixture, TestBed} from '@angular/core/testing';
 import {ReactiveFormsModule} from '@angular/forms';
 import {StoreModule} from '@ngrx/store';
-import {TranslationModules} from '@app/test-config.spec';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
 import {AuditLogsFieldsService, auditLogsFields} from '@app/services/storage/audit-logs-fields.service';
@@ -37,23 +36,16 @@ import {ClustersService, clusters} from '@app/services/storage/clusters.service'
 import {ComponentsService, components} from '@app/services/storage/components.service';
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {AuthService} from '@app/services/auth.service';
 import {UtilsService} from '@app/services/utils.service';
 
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
+
 import {TopMenuComponent} from './top-menu.component';
 
 describe('TopMenuComponent', () => {
   let component: TopMenuComponent;
   let fixture: ComponentFixture<TopMenuComponent>;
-  const httpClient = {
-    get: () => {
-      return {
-        subscribe: () => {
-        }
-      };
-    }
-  };
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
@@ -78,11 +70,8 @@ describe('TopMenuComponent', () => {
       ],
       declarations: [TopMenuComponent],
       providers: [
+        ...MockHttpRequestModules,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         AuthService,
         UtilsService,
         AuditLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/mock-data-by-url.ts b/ambari-logsearch/ambari-logsearch-web/src/app/mock-data-by-url.ts
new file mode 100644
index 0000000..e06d568
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/mock-data-by-url.ts
@@ -0,0 +1,2177 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import * as moment from 'moment';
+import * as randomize from 'randomatic';
+import {Moment} from "moment";
+
+const currentTime: Moment = moment();
+
+const clusters: string[] = ['cl0', 'cl1', 'cl2'];
+
+const hosts: string[] = ["c64001", "c64002", "c64003"];
+
+const services: string[] = ['hdfs', 'ambari'];
+
+const users: string[] = ['hdfs', 'admin', 'user'];
+
+const components = [
+  "ambari_agent",
+  "hdfs_secondarynamenode",
+  "infra_solr",
+  "logsearch_app",
+  "logsearch_feeder"
+];
+
+const levels = [
+  "INFO",
+  "WARN",
+  "ERROR",
+  "FATAL",
+  "DEBUG"
+];
+
+function ucFirst(str) {
+  return str.charAt(0).toUpperCase() + str.slice(1);
+}
+
+function getRandomInt(max) {
+  return Math.floor(Math.random() * Math.floor(max));
+}
+
+function getRandomElement(list: Array<any>) {
+  return list[getRandomInt(list.length)];
+}
+
+function generatePath(c: number = 3, addComponent: boolean | string = true, addService: boolean | string = false, folderNameMaxLength: number = 12): string {
+  let path = "/var/log";
+  if (addService) {
+    path += ("/" + (addService === true ? getRandomElement(services) : addService));
+    c -= 1;
+  }
+  if (addComponent) {
+    path += ("/" + (addComponent === true ? getRandomElement(components) : addComponent));
+    c -= 1;
+  }
+  for (let i=0; i<c; i+=1) {
+    path += ("/" + randomize('Aa0?', getRandomInt(folderNameMaxLength), {chars: '-_'}));
+  }
+  return path;
+}
+
+function generateServiceLog(defaults?: {[key:string]: any}) {
+  const component = (defaults && defaults.type) || getRandomElement(components);
+  const host = (defaults && defaults.host) || getRandomElement(hosts);
+  return Object.assign({
+    "id": randomize('a0', 32, {chars: '-'}),
+    "bundle_id": null,
+    "case_id": null,
+    "cluster": getRandomElement(clusters),
+    "seq_num": randomize('0', 5),
+    "log_message": randomize('a0?a0', getRandomInt(1000), {chars: " \n"}),
+    "logfile_line_number": randomize('0', 4),
+    "event_dur_ms": null,
+    "file": randomize('a0?a0', 16, {chars: '-_'}) + ".java",
+    "type": component,
+    "event_count": getRandomInt(1000),
+    "event_md5": randomize('a0', 32),
+    "message_md5": randomize('a0', 32),
+    "_ttl_": `-${getRandomInt(30)}DAYS`,
+    "_expire_at_": 1518188622956,
+    "_version_": randomize('0', 20),
+    "_router_field_": null,
+    "level": getRandomElement(levels),
+    "line_number": getRandomInt(999),
+    "logtime": moment().subtract(getRandomInt(14), 'days').valueOf(),
+    "ip": `${getRandomInt(255)}.${getRandomInt(255)}.${getRandomInt(255)}.${getRandomInt(255)}`,
+    "path": generatePath(3, component) + ".json",
+    "host": host + ".ambari.apache.org",
+    "group": host + ".ambari.apache.org"
+  }, defaults || {});
+}
+
+function generateAuditLog(defaults?: {[key: string]: any}) {
+  const component:string = (defaults && defaults.component)  || getRandomElement(components); // meta default
+  const service:string = (defaults && defaults.repo)  || getRandomElement(services);
+  const time = moment().subtract(getRandomInt(14), 'days');
+  return Object.assign({
+    policy: 'policy',
+    reason: randomize('aA', {
+      length: getRandomInt(50),
+      chars: ' .:'
+    }),
+    result: 0,
+    text: randomize('aA', {
+      length: getRandomInt(50),
+      chars: ' .:'
+    }),
+    tags: [component],
+    resource: '/' + component,
+    sess: '0',
+    access: '0',
+    logType: ucFirst(service) + 'Audit',
+    tags_str: component,
+    resType: 'agent',
+    reqUser: 'admin',
+    reqData: 'data',
+    repoType: 1,
+    repo: service,
+    proxyUsers: ['admin'],
+    evtTime: time.valueOf(),
+    enforcer: service + '-acl',
+    reqContext: service,
+    cliType: getRandomElement(['GET', 'POST']),
+    cliIP: '192.168.0.1',
+    agent: 'agent',
+    agentHost: 'localhost',
+    action: 'SERVICE_CHECK',
+    type: service + '-audit',
+    _version_: 2,
+    id: 'id0',
+    file: component + '.log',
+    seq_num: 3,
+    bundle_id: 'b0',
+    case_id: 'c0',
+    log_message: `User(${getRandomElement(users)}), Operation(SERVICE_CHECK)`,
+    logfile_line_number: 4,
+    message_md5: randomize('a0',20),
+    cluster: getRandomElement(clusters),
+    event_count: getRandomInt(100),
+    event_md5: randomize('0',20),
+    event_dur_ms: getRandomInt(900),
+    _ttl_: '+7DAYS',
+    _expire_at_: time.format(),
+    _router_field_: getRandomInt(20)
+  }, defaults || {});
+}
+
+export const mockDataByUrl = {
+  "login": {},
+  "logout": {},
+
+  "api/v1/audit/logs": function (query) {
+    let list = [];
+    let params = query.rawParams.split('&').reduce((currentObj, param) => {
+      let [key, value] = param.split('=');
+      switch (key) {
+        case 'page':
+        case 'pageSize':
+        case 'startIndex':
+          value = parseInt(value);
+          break;
+        case 'from':
+        case 'to':
+          value = decodeURIComponent(value);
+          value = moment(value);
+          break;
+        case 'userList':
+          value = decodeURIComponent(value).split(',');
+          break;
+      }
+      currentObj[key] = value;
+      return currentObj;
+    }, {});
+    console.info(params);
+    const pageSize = params.pageSize || 50;
+    const intervalSteps = params.to.diff(params.from) / pageSize;
+    const startTime = params.from.valueOf();
+    for (let i = 0; i < pageSize; i += 1) {
+      let defaults: {[key:string]: any} = {logtime: startTime + (i * intervalSteps)};
+      list.push(generateAuditLog(defaults));
+    }
+    return {
+      "startIndex": params.startIndex,
+      "pageSize": pageSize,
+      "totalCount": 10 * pageSize,
+      "resultSize": 10 * pageSize,
+      "sortType": params.sortType,
+      "sortBy": params.sortBy,
+      "queryTimeMS": 1518013198573,
+      "logList": list
+    };
+  },
+  "api/v1/audit/logs/bargraph": {
+    graphData: [{
+      dataCount: [
+        {
+          name: currentTime.toISOString(),
+          value: '75'
+        },
+        {
+          name: currentTime.clone().subtract(20, 'm').toISOString(),
+          value: '100'
+        },
+        {
+          name: currentTime.clone().subtract(40, 'm').toISOString(),
+          value: '75'
+        },
+        {
+          name: currentTime.clone().subtract(1, 'h').toISOString(),
+          value: '50'
+        }
+      ],
+      name: 'AMBARI'
+    }, {
+      dataCount: [
+        {
+          name: currentTime.toISOString(),
+          value: '150'
+        },
+        {
+          name: currentTime.clone().subtract(20, 'm').toISOString(),
+          value: '50'
+        },
+        {
+          name: currentTime.clone().subtract(40, 'm').toISOString(),
+          value: '75'
+        },
+        {
+          name: currentTime.clone().subtract(1, 'h').toISOString(),
+          value: '100'
+        }
+      ],
+      name: 'HDFS'
+    }
+  ]},
+  "api/v1/audit/logs/components": {
+    "groups": {},
+    "metadata": components.map(comp => {
+      return {
+        name: comp,
+        label: comp.split('_').map(ucFirst).join(' '),
+        group: null
+      }
+    })
+  },
+  "api/v1/audit/logs/resources/\\d": function (query) {
+    let graphData = users.map((user:string) => {
+      return {
+        name: user,
+        dataCount: services.map((service:string) => {
+          return {
+            name: service,
+            value: getRandomInt(1000)
+          }
+        })
+      };
+    });
+    return {
+      graphData: graphData
+    }
+  },
+  "api/v1/audit/logs/schema/fields": {
+    "defaults": [
+      {
+        "name": "logType",
+        "label": "Log Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "cluster",
+        "label": "Cluster",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "reason",
+        "label": "Reason",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "agent",
+        "label": "Agent",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "access",
+        "label": "Access Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "dst",
+        "label": "DST",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "perm",
+        "label": "Perm",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "event_count",
+        "label": "Event Count",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "repo",
+        "label": "Repo",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "sess",
+        "label": "Session",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "reqUser",
+        "label": "User",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "task_id",
+        "label": "Task Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "type",
+        "label": "Type",
+        "filterable": true,
+        "visible": true
+      },
+      {
+        "name": "reqData",
+        "label": "Req Data",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "result",
+        "label": "Result",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "path",
+        "label": "Path",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "file",
+        "label": "File",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "ugi",
+        "label": "UGI",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "case_id",
+        "label": "Case Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "host",
+        "label": "Host",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "action",
+        "label": "Action",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "log_message",
+        "label": "Log Message",
+        "filterable": true,
+        "visible": true
+      },
+      {
+        "name": "agentHost",
+        "label": "Agent Host",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "id",
+        "label": "Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "logger_name",
+        "label": "Logger Name",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "text",
+        "label": "Text",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "authType",
+        "label": "Auth Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "logfile_line_number",
+        "label": "Logfile Line Number",
+        "filterable": true,
+        "visible": true
+      },
+      {
+        "name": "policy",
+        "label": "Policy",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "cliIP",
+        "label": "Client Ip",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "level",
+        "label": "Level",
+        "filterable": true,
+        "visible": true
+      },
+      {
+        "name": "resource",
+        "label": "Resource",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "resType",
+        "label": "Res Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "ip",
+        "label": "IP",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "evtTime",
+        "label": "Event Time",
+        "filterable": true,
+        "visible": true
+      },
+      {
+        "name": "req_self_id",
+        "label": "Req Self Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "repoType",
+        "label": "Repo Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "req_caller_id",
+        "label": "Req Caller Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "enforcer",
+        "label": "Access Enforcer",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "bundle_id",
+        "label": "Bundle Id",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "cliType",
+        "label": "Client Type",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "reqContext",
+        "label": "Req Context",
+        "filterable": true,
+        "visible": false
+      },
+      {
+        "name": "proxyUsers",
+        "label": "Proxy Users",
+        "filterable": true,
+        "visible": false
+      }
+    ],
+    "overrides": {
+      "ambari": [
+        {
+          "name": "logType",
+          "label": "Log Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cluster",
+          "label": "Cluster",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reason",
+          "label": "Reason",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agent",
+          "label": "Agent",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "access",
+          "label": "Access",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "dst",
+          "label": "Dst",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "perm",
+          "label": "Perm",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "event_count",
+          "label": "Event Count",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repo",
+          "label": "Repo",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "sess",
+          "label": "Sess",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqUser",
+          "label": "Req User",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "task_id",
+          "label": "Task Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "type",
+          "label": "Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqData",
+          "label": "Req Data",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "result",
+          "label": "Result",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "path",
+          "label": "Path",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "file",
+          "label": "File",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ugi",
+          "label": "Ugi",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "case_id",
+          "label": "Case Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "host",
+          "label": "Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "action",
+          "label": "Action",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "log_message",
+          "label": "Log Message",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agentHost",
+          "label": "Agent Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "id",
+          "label": "Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logger_name",
+          "label": "Logger Name",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "text",
+          "label": "Text",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "authType",
+          "label": "Auth Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logfile_line_number",
+          "label": "Logfile Line Number",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "policy",
+          "label": "Policy",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliIP",
+          "label": "Cli I P",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "level",
+          "label": "Level",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resource",
+          "label": "Resource",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resType",
+          "label": "Res Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ip",
+          "label": "Ip",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "evtTime",
+          "label": "Evt Time",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_self_id",
+          "label": "Req Self Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repoType",
+          "label": "Repo Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_caller_id",
+          "label": "Req Caller Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "enforcer",
+          "label": "Enforcer",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "bundle_id",
+          "label": "Bundle Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliType",
+          "label": "Cli Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqContext",
+          "label": "Req Context",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "proxyUsers",
+          "label": "Proxy Users",
+          "filterable": true,
+          "visible": false
+        }
+      ],
+      "RangerAudit": [
+        {
+          "name": "logType",
+          "label": "Log Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cluster",
+          "label": "Cluster",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reason",
+          "label": "Reason",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agent",
+          "label": "Agent",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "access",
+          "label": "Access",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "dst",
+          "label": "Dst",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "perm",
+          "label": "Perm",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "event_count",
+          "label": "Event Count",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repo",
+          "label": "Repo",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "sess",
+          "label": "Sess",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqUser",
+          "label": "Req User",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "task_id",
+          "label": "Task Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "type",
+          "label": "Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqData",
+          "label": "Req Data",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "result",
+          "label": "Result",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "path",
+          "label": "Path",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "file",
+          "label": "File",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ugi",
+          "label": "Ugi",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "case_id",
+          "label": "Case Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "host",
+          "label": "Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "action",
+          "label": "Action",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "log_message",
+          "label": "Log Message",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agentHost",
+          "label": "Agent Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "id",
+          "label": "Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logger_name",
+          "label": "Logger Name",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "text",
+          "label": "Text",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "authType",
+          "label": "Auth Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logfile_line_number",
+          "label": "Logfile Line Number",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "policy",
+          "label": "Policy",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliIP",
+          "label": "Cli I P",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "level",
+          "label": "Level",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resource",
+          "label": "Resource",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resType",
+          "label": "Res Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ip",
+          "label": "Ip",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "evtTime",
+          "label": "Evt Time",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_self_id",
+          "label": "Req Self Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repoType",
+          "label": "Repo Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_caller_id",
+          "label": "Req Caller Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "enforcer",
+          "label": "Enforcer",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "bundle_id",
+          "label": "Bundle Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliType",
+          "label": "Cli Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqContext",
+          "label": "Req Context",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "proxyUsers",
+          "label": "Proxy Users",
+          "filterable": true,
+          "visible": false
+        }
+      ],
+      "hdfs": [
+        {
+          "name": "logType",
+          "label": "Log Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cluster",
+          "label": "Cluster",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reason",
+          "label": "Reason",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agent",
+          "label": "Agent",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "access",
+          "label": "Access",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "dst",
+          "label": "Dst",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "perm",
+          "label": "Perm",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "event_count",
+          "label": "Event Count",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repo",
+          "label": "Repo",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "sess",
+          "label": "Sess",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqUser",
+          "label": "Req User",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "task_id",
+          "label": "Task Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "type",
+          "label": "Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqData",
+          "label": "Req Data",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "result",
+          "label": "Result",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "path",
+          "label": "Path",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "file",
+          "label": "File",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ugi",
+          "label": "Ugi",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "case_id",
+          "label": "Case Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "host",
+          "label": "Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "action",
+          "label": "Action",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "log_message",
+          "label": "Log Message",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "agentHost",
+          "label": "Agent Host",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "id",
+          "label": "Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logger_name",
+          "label": "Logger Name",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "text",
+          "label": "Text",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "authType",
+          "label": "Auth Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "logfile_line_number",
+          "label": "Logfile Line Number",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "policy",
+          "label": "Policy",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliIP",
+          "label": "Cli I P",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "level",
+          "label": "Level",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resource",
+          "label": "Resource",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "resType",
+          "label": "Res Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "ip",
+          "label": "Ip",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "evtTime",
+          "label": "Evt Time",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_self_id",
+          "label": "Req Self Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "repoType",
+          "label": "Repo Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "req_caller_id",
+          "label": "Req Caller Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "enforcer",
+          "label": "Enforcer",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "bundle_id",
+          "label": "Bundle Id",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "cliType",
+          "label": "Cli Type",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "reqContext",
+          "label": "Req Context",
+          "filterable": true,
+          "visible": false
+        },
+        {
+          "name": "proxyUsers",
+          "label": "Proxy Users",
+          "filterable": true,
+          "visible": false
+        }
+      ]
+    }
+  },
+  "api/v1/audit/logs/serviceload": {
+    graphData: [
+      {
+        dataCount: [
+          {
+            name: 'n4',
+            value: 1
+          },
+          {
+            name: 'n5',
+            value: 2
+          }
+        ],
+        name: 'graph2'
+      },
+      {
+        dataCount: [
+          {
+            name: 'n6',
+            value: 10
+          },
+          {
+            name: 'n7',
+            value: 20
+          }
+        ],
+        name: 'graph3'
+      }
+    ]
+  },
+
+  "api/v1/public/config": {},
+
+  "api/v1/service/logs": function (query) {
+    let list = [];
+    let params = query.rawParams.split('&').reduce((currentObj, param) => {
+      let [key, value] = param.split('=');
+      switch (key) {
+        case 'page':
+        case 'pageSize':
+        case 'startIndex':
+          value = parseInt(value);
+          break;
+        case 'from':
+        case 'to':
+          value = decodeURIComponent(value);
+          value = moment(value);
+          break;
+        case 'mustBe':
+        case 'hostList':
+        case 'level':
+          value = decodeURIComponent(value).split(',');
+          break;
+      }
+      currentObj[key] = value;
+      return currentObj;
+    }, {});
+    const pageSize = params.pageSize || 50;
+    const intervalSteps = params.to.diff(params.from) / pageSize;
+    const startTime = params.from.valueOf();
+
+    for (let i = 0; i < pageSize; i += 1) {
+      let defaults: {[key:string]: any} = {logtime: startTime + (i * intervalSteps)};
+      if (params.mustBe) {
+        defaults.type = getRandomElement(params.mustBe);
+      }
+      if (params.hostList) {
+        defaults.host = getRandomElement(params.hostList);
+      }
+      if (params.level) {
+        defaults.level = getRandomElement(params.level);
+      }
+      list.push(generateServiceLog(defaults));
+    }
+    return {
+      "startIndex": params.startIndex,
+      "pageSize": pageSize,
+      "totalCount": 10 * pageSize,
+      "resultSize": 10 * pageSize,
+      "sortType": params.sortType,
+      "sortBy": params.sortBy,
+      "queryTimeMS": 1518013198573,
+      "logList": list
+    };
+  },
+  "api/v1/service/logs/logList": (query) => {
+    let list = [];
+    let params = query.rawParams.split('&').reduce((currentObj, param) => {
+      let [key, value] = param.split('=');
+      switch (key) {
+        case 'page':
+        case 'pageSize':
+        case 'startIndex':
+          value = parseInt(value);
+          break;
+        case 'from':
+        case 'to':
+          value = decodeURIComponent(value);
+          value = moment(value);
+          break;
+        case 'mustBe':
+        case 'hostList':
+        case 'level':
+          value = decodeURIComponent(value).split(',');
+          break;
+      }
+      currentObj[key] = value;
+      return currentObj;
+    }, {});
+    const pageSize = params.pageSize || 50;
+    const intervalSteps = params.to.diff(params.from) / pageSize;
+    const startTime = params.from.valueOf();
+
+    for (let i = 0; i < pageSize; i += 1) {
+      let defaults: {[key:string]: any} = {
+        logtime: startTime + (i * intervalSteps),
+        event_dur_ms: getRandomInt(1000)
+      };
+      if (params.mustBe) {
+        defaults.type = getRandomElement(params.mustBe);
+      }
+      if (params.hostList) {
+        defaults.host = getRandomElement(params.hostList);
+      }
+      if (params.level) {
+        defaults.level = getRandomElement(params.level);
+      }
+      list.push(generateServiceLog(defaults));
+    }
+    return list;
+  },
+  "api/v1/service/logs/aggregated": {
+    graphData: [
+      {
+        name: 'n0',
+        count: 100,
+        dataList: [
+          {
+            name: 'n1',
+            count: 50,
+            dataList: null
+          },
+          {
+            name: 'n2',
+            count: 200,
+            dataList: null
+          }
+        ]
+      },
+      {
+        name: 'n3',
+        count: 10,
+        dataList: [
+          {
+            name: 'n4',
+            count: 5,
+            dataList: null
+          },
+          {
+            name: 'n5',
+            count: 20,
+            dataList: null
+          }
+        ]
+      }
+    ]
+  },
+  "api/v1/service/logs/components": {
+    "groups": {},
+    "metadata": components.map(comp => {
+      return {
+        name: comp,
+        label: comp.split('_').map(ucFirst).join(' '),
+        group: null
+      }
+    })
+  },
+  "api/v1/service/logs/components/levels/counts": {
+    vNodeList: [
+      {
+        name: 'ambari',
+        type: 0,
+        logLevelCount: [
+          {
+            name: 'ERROR',
+            value: '10'
+          },
+          {
+            name: 'WARN',
+            value: '50'
+          }
+        ],
+        childs: [
+          {
+            name: 'hdfs',
+            type: 2,
+            logLevelCount: [
+              {
+                name: 'ERROR',
+                value: '10'
+              },
+              {
+                name: 'WARN',
+                value: '20'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          },
+          {
+            name: 'zookeeper',
+            type: 3,
+            logLevelCount: [
+              {
+                name: 'ERROR',
+                value: '20'
+              },
+              {
+                name: 'WARN',
+                value: '40'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          }
+        ],
+        isParent: true,
+        isRoot: false
+      },
+      {
+        name: 'ambari_agent',
+        type: 1,
+        logLevelCount: [
+          {
+            name: 'ERROR',
+            value: '100'
+          },
+          {
+            name: 'WARN',
+            value: '500'
+          }
+        ],
+        isParent: false,
+        isRoot: false
+      }
+    ]
+  },
+  "api/v1/service/logs/files": {
+    hostLogFiles: {
+      clusters: clusters,
+      services: services
+    }
+  },
+  "api/v1/service/logs/histogram": {
+    graphData: [
+      {
+        dataCount: [
+          {
+            name: currentTime.toISOString(),
+            value: '1000'
+          },
+          {
+            name: currentTime.clone().subtract(1, 'h').toISOString(),
+            value: '2000'
+          }
+        ],
+        name: 'ERROR'
+      },
+      {
+        dataCount: [
+          {
+            name: currentTime.toISOString(),
+            value: '700'
+          },
+          {
+            name: currentTime.clone().subtract(1, 'h').toISOString(),
+            value: '900'
+          }
+        ],
+        name: 'WARN'
+      }
+    ]
+  },
+  "api/v1/service/logs/hosts": {
+    groupList: hosts.map(host => Object.assign({}, {host}))
+  },
+  "api/v1/service/logs/schema/fields": [{
+    "name": "cluster",
+    "label": "Cluster",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "key_log_message",
+    "label": "Key Log Message",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "type",
+    "label": "Component",
+    "filterable": true,
+    "visible": true
+  }, {
+    "name": "path",
+    "label": "Path",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "logtype",
+    "label": "Logtype",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "file",
+    "label": "File",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "line_number",
+    "label": "Line Number",
+    "filterable": true,
+    "visible": true
+  }, {
+    "name": "host",
+    "label": "Host",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "log_message",
+    "label": "Message",
+    "filterable": true,
+    "visible": true
+  }, {
+    "name": "logger_name",
+    "label": "Logger Name",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "logfile_line_number",
+    "label": "Logfile Line Number",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "group",
+    "label": "Group",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "method",
+    "label": "Method",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "level",
+    "label": "Level",
+    "filterable": true,
+    "visible": true
+  }, {
+    "name": "ip",
+    "label": "Ip",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "thread_name",
+    "label": "Thread",
+    "filterable": true,
+    "visible": false
+  }, {
+    "name": "logtime",
+    "label": "Log Time",
+    "filterable": true,
+    "visible": true
+  }],
+  "api/v1/service/logs/serviceconfig": "",
+  "api/v1/service/logs/tree": {
+    vNodeList: [
+      {
+        name: hosts[0],
+        type: 'H',
+        value: '1',
+        childs: [
+          {
+            name: 'ams_collector',
+            type: 'C',
+            value: '1',
+            logLevelCount: [
+              {
+                name: 'WARN',
+                value: '1'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          }
+        ],
+        logLevelCount: [
+          {
+            name: 'WARN',
+            value: '1'
+          }
+        ],
+        isParent: true,
+        isRoot: true
+      },
+      {
+        name: hosts[1],
+        type: 'H',
+        value: '6',
+        childs: [
+          {
+            name: 'ams_collector',
+            type: 'C',
+            value: '1',
+            logLevelCount: [
+              {
+                name: 'ERROR',
+                value: '1'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          },
+          {
+            name: 'ambari_agent',
+            type: 'C',
+            value: '1',
+            logLevelCount: [
+              {
+                name: 'FATAL',
+                value: '1'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          },
+          {
+            name: 'zookeeper_server',
+            type: 'C',
+            value: '2',
+            logLevelCount: [
+              {
+                name: 'INFO',
+                value: '1'
+              },
+              {
+                name: 'DEBUG',
+                value: '1'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          },
+          {
+            name: 'zookeeper_client',
+            type: 'C',
+            value: '2',
+            logLevelCount: [
+              {
+                name: 'TRACE',
+                value: '1'
+              },
+              {
+                name: 'UNKNOWN',
+                value: '1'
+              }
+            ],
+            isParent: false,
+            isRoot: false
+          }
+        ],
+        logLevelCount: [
+          {
+            name: 'ERROR',
+            value: '1'
+          },
+          {
+            name: 'FATAL',
+            value: '1'
+          },
+          {
+            name: 'INFO',
+            value: '1'
+          },
+          {
+            name: 'DEBUG',
+            value: '1'
+          },
+          {
+            name: 'TRACE',
+            value: '1'
+          },
+          {
+            name: 'UNKNOWN',
+            value: '1'
+          }
+        ],
+        isParent: true,
+        isRoot: true
+      }
+    ]
+  },
+  "api/v1/service/logs/truncated": {
+    logList: [
+      {
+        path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
+        host: 'h0',
+        level: 'WARN',
+        logtime: '2017-05-28T11:30:22.531Z',
+        ip: '192.168.0.1',
+        logfile_line_number: 8,
+        type: 'ams_collector',
+        _version_: 9,
+        id: 'id2',
+        file: 'ambari-metrics-collector.log',
+        seq_num: 10,
+        bundle_id: 'b2',
+        case_id: 'c2',
+        log_message: 'Connection refused',
+        message_md5: '1357908642',
+        cluster: 'cl2',
+        event_count: 5,
+        event_md5: '1908755391',
+        event_dur_ms: 200,
+        _ttl_: '+5DAYS',
+        _expire_at_: '2017-05-29T11:30:22.531Z',
+        _router_field_: 20
+      },
+      {
+        path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
+        host: 'h1',
+        level: 'ERROR',
+        logtime: '2017-05-28T10:30:22.531Z',
+        ip: '192.168.0.2',
+        type: 'ams_collector',
+        _version_: 14,
+        id: 'id3',
+        file: 'ambari-metrics-collector.log',
+        seq_num: 15,
+        bundle_id: 'b3',
+        case_id: 'c3',
+        log_message: 'Connection refused',
+        logfile_line_number: 16,
+        message_md5: '1357908642',
+        cluster: 'cl3',
+        event_count: 2,
+        event_md5: '1029384756',
+        event_dur_ms: 700,
+        _ttl_: '+5DAYS',
+        _expire_at_: '2017-05-29T10:30:22.531Z',
+        _router_field_: 5
+      }
+    ]
+  },
+  "api/v1/service/logs/clusters": clusters,
+
+  "api/v1/status": {
+    auditlogs: {
+      znodeReady: true,
+      solrCollectionReady: true,
+      solrAliasReady: false,
+      configurationUploaded: true
+    },
+    servicelogs: {
+      znodeReady: true,
+      solrCollectionReady: true,
+      configurationUploaded: true
+    },
+    userconfig: {
+      znodeReady: true,
+      solrCollectionReady: true,
+      configurationUploaded: true
+    }
+  },
+  "api/v1/shipper/{clusterName}/level": {
+    filter: {
+      ambari_agent: {
+        label: 'ambari_agent',
+        hosts: [
+          'h0'
+        ],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [
+          'FATAL'
+        ],
+        expiryTime: currentTime.clone().add(1, 'd').toISOString()
+      },
+      ambari_alerts: {
+        label: 'ambari_alerts',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ambari_audit: {
+        label: 'ambari_audit',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ambari_config_changes: {
+        label: 'ambari_config_changes',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ambari_eclipselink: {
+        label: 'ambari_eclipselink',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ambari_server: {
+        label: 'ambari_server',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ambari_server_check_database: {
+        label: 'ambari_server_check_database',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ams_collector: {
+        label: 'ams_collector',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ams_grafana: {
+        label: 'ams_grafana',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ams_hbase_master: {
+        label: 'ams_hbase_master',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ams_hbase_regionserver: {
+        label: 'ams_hbase_regionserver',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      ams_monitor: {
+        label: 'ams_monitor',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_datanode: {
+        label: 'hdfs_datanode',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_journalnode: {
+        label: 'hdfs_journalnode',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_namenode: {
+        label: 'hdfs_namenode',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_nfs3: {
+        label: 'hdfs_nfs3',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_secondarynamenode: {
+        label: 'hdfs_secondarynamenode',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      hdfs_zkfc: {
+        label: 'hdfs_zkfc',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      infra_solr: {
+        label: 'infra_solr',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      logsearch_app: {
+        label: 'logsearch_app',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      logsearch_feeder: {
+        label: 'logsearch_feeder',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      logsearch_perf: {
+        label: 'logsearch_perf',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      },
+      zookeeper: {
+        label: 'zookeeper',
+        hosts: [],
+        defaultLevels: [
+          'FATAL',
+          'ERROR',
+          'WARN',
+          'INFO'
+        ],
+        overrideLevels: [],
+        expiryTime: null
+      }
+    }
+  }
+};
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/mock-data.ts b/ambari-logsearch/ambari-logsearch-web/src/app/mock-data.ts
deleted file mode 100644
index cf5d2a5..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/app/mock-data.ts
+++ /dev/null
@@ -1,2508 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import * as moment from 'moment';
-
-const currentTime = moment();
-
-export const mockData = {
-  login: {},
-  logout: {},
-  api: {
-    v1: {
-      audit: {
-        logs: {
-          logList: [
-            {
-              policy: 'policy',
-              reason: 'Authentication required',
-              result: 0,
-              text: 'Please log in',
-              tags: [
-                'ambari_agent'
-              ],
-              resource: '/ambari-agent',
-              sess: '0',
-              access: '0',
-              logType: 'AmbariAudit',
-              tags_str: 'ambari_agent',
-              resType: 'agent',
-              reqUser: 'admin',
-              reqData: 'data',
-              repoType: 1,
-              repo: 'ambari',
-              proxyUsers: [
-                'admin'
-              ],
-              evtTime: currentTime.valueOf(),
-              enforcer: 'ambari-acl',
-              reqContext: 'ambari',
-              cliType: 'GET',
-              cliIP: '192.168.0.1',
-              agent: 'agent',
-              agentHost: 'localhost',
-              action: 'SERVICE_CHECK',
-              type: 'ambari-audit',
-              _version_: 2,
-              id: 'id0',
-              file: 'ambari-agent.log',
-              seq_num: 3,
-              bundle_id: 'b0',
-              case_id: 'c0',
-              log_message: 'User(admin), Operation(SERVICE_CHECK)',
-              logfile_line_number: 4,
-              message_md5: '12345678900987654321',
-              cluster: 'cl0',
-              event_count: 0,
-              event_md5: '09876543211234567890',
-              event_dur_ms: 100,
-              _ttl_: '+7DAYS',
-              _expire_at_: currentTime.clone().add(2, 'd').valueOf(),
-              _router_field_: 5
-            },
-            {
-              policy: 'policy',
-              reason: 'Server error',
-              result: 1,
-              text: 'Something went wrong',
-              tags: [
-                'ambari_agent'
-              ],
-              resource: '/ambari-agent',
-              sess: '1',
-              access: '1',
-              logType: 'AmbariAudit',
-              tags_str: 'ambari_server',
-              resType: 'server',
-              reqUser: 'user',
-              reqData: 'data',
-              repoType: 1,
-              repo: 'ambari',
-              proxyUsers: [
-                'user'
-              ],
-              evtTime: currentTime.clone().subtract(2, 'h').valueOf(),
-              enforcer: 'hdfs',
-              reqContext: 'ambari_server',
-              cliType: 'PUT',
-              cliIP: '192.168.0.1',
-              agent: 'agent',
-              agentHost: 'localhost',
-              action: 'SERVICE_CHECK',
-              type: 'ambari-audit',
-              _version_: 4,
-              id: 'id1',
-              file: 'ambari-agent.log',
-              seq_num: 5,
-              bundle_id: 'b1',
-              case_id: 'c1',
-              log_message: 'User(user), Operation(SERVICE_CHECK)',
-              logfile_line_number: 6,
-              message_md5: '10293847561029384756',
-              cluster: 'cl1',
-              event_count: 2,
-              event_md5: '01928374650192837465',
-              event_dur_ms: 500,
-              _ttl_: '+7DAYS',
-              _expire_at_: currentTime.clone().add(1, 'd').valueOf(),
-              _router_field_: 10
-            }
-          ],
-          bargraph: {
-            graphData: [
-              {
-                dataCount: [
-                  {
-                    name: currentTime.toISOString(),
-                    value: '75'
-                  },
-                  {
-                    name: currentTime.clone().subtract(20, 'm').toISOString(),
-                    value: '100'
-                  },
-                  {
-                    name: currentTime.clone().subtract(40, 'm').toISOString(),
-                    value: '75'
-                  },
-                  {
-                    name: currentTime.clone().subtract(1, 'h').toISOString(),
-                    value: '50'
-                  }
-                ],
-                name: 'AMBARI'
-              },
-              {
-                dataCount: [
-                  {
-                    name: currentTime.toISOString(),
-                    value: '150'
-                  },
-                  {
-                    name: currentTime.clone().subtract(20, 'm').toISOString(),
-                    value: '50'
-                  },
-                  {
-                    name: currentTime.clone().subtract(40, 'm').toISOString(),
-                    value: '75'
-                  },
-                  {
-                    name: currentTime.clone().subtract(1, 'h').toISOString(),
-                    value: '100'
-                  }
-                ],
-                name: 'HDFS'
-              }
-            ]
-          },
-          components: {},
-          resources: {
-            6: {
-              graphData: [
-                {
-                  dataCount: [
-                    {
-                      name: 'hdfs',
-                      value: 800
-                    },
-                    {
-                      name: 'zookeeper',
-                      value: 400
-                    },
-                    {
-                      name: 'ambari_metrics',
-                      value: 200
-                    }
-                  ],
-                  name: 'admin'
-                },
-                {
-                  dataCount: [
-                    {
-                      name: 'ambari_agent',
-                      value: 400
-                    },
-                    {
-                      name: 'hdfs',
-                      value: 600
-                    },
-                    {
-                      name: 'ambari_metrics',
-                      value: 300
-                    }
-                  ],
-                  name: 'user'
-                }
-              ]
-            },
-            10: {
-              graphData: [
-                {
-                  dataCount: [
-                    {
-                      name: 'ambari',
-                      value: 800
-                    },
-                    {
-                      name: 'hdfs',
-                      value: 400
-                    },
-                    {
-                      name: 'hbase',
-                      value: 200
-                    },
-                  ],
-                  name: '/user'
-                },
-                {
-                  dataCount: [
-                    {
-                      name: 'hdfs',
-                      value: 400
-                    },
-                    {
-                      name: 'hbase',
-                      value: 600
-                    },
-                    {
-                      name: 'kafka',
-                      value: 300
-                    }
-                  ],
-                  name: '/root'
-                }
-              ]
-            }
-          },
-          schema: {
-            fields: {
-              'cluster': 'key_lower_case',
-              'ws_status': 'text_ws',
-              'reason': 'text_std_token_lower_case',
-              'agent': 'key_lower_case',
-              'Base URL': 'key_lower_case',
-              'sess': 'key_lower_case',
-              'type': 'key_lower_case',
-              'seq_num': 'tlong',
-              'path': 'key_lower_case',
-              'ugi': 'key_lower_case',
-              'host': 'key_lower_case',
-              'case_id': 'key_lower_case',
-              'action': 'key_lower_case',
-              'id': 'string',
-              'logger_name': 'key_lower_case',
-              'text': 'text_std_token_lower_case',
-              'Repo id': 'key_lower_case',
-              'Stack version': 'tdouble',
-              'logfile_line_number': 'tint',
-              'Status': 'tlong',
-              'RequestId': 'tlong',
-              'level': 'key_lower_case',
-              'resource': 'key_lower_case',
-              'resType': 'key_lower_case',
-              'ip': 'key_lower_case',
-              'Hostname': 'key_lower_case',
-              'Roles': 'key_lower_case',
-              'Stack': 'key_lower_case',
-              'req_self_id': 'key_lower_case',
-              'repoType': 'tint',
-              'VersionNote': 'key_lower_case',
-              'Cluster name': 'key_lower_case',
-              'bundle_id': 'key_lower_case',
-              'cliType': 'key_lower_case',
-              'reqContext': 'key_lower_case',
-              'ws_result_status': 'text_ws',
-              'proxyUsers': 'key_lower_case',
-              'RequestType': 'key_lower_case',
-              'Repositories': 'key_lower_case',
-              'logType': 'key_lower_case',
-              'Repo version': 'key_lower_case',
-              'TaskId': 'tlong',
-              'User': 'key_lower_case',
-              'access': 'key_lower_case',
-              'dst': 'key_lower_case',
-              'perm': 'key_lower_case',
-              'event_count': 'tlong',
-              'repo': 'key_lower_case',
-              'reqUser': 'key_lower_case',
-              'task_id': 'tlong',
-              'Operation': 'key_lower_case',
-              'Reason': 'key_lower_case',
-              'reqData': 'text_std_token_lower_case',
-              'result': 'tint',
-              'file': 'key_lower_case',
-              'log_message': 'key_lower_case',
-              'agentHost': 'key_lower_case',
-              'Component': 'key_lower_case',
-              'authType': 'key_lower_case',
-              'Display name': 'key_lower_case',
-              'policy': 'tlong',
-              'cliIP': 'key_lower_case',
-              'OS': 'key_lower_case',
-              'RemoteIp': 'key_lower_case',
-              'ResultStatus': 'tlong',
-              'evtTime': 'tdate',
-              'VersionNumber': 'key_lower_case',
-              'url': 'key_lower_case',
-              'req_caller_id': 'key_lower_case',
-              'enforcer': 'key_lower_case',
-              'Command': 'key_lower_case'
-            }
-          },
-          serviceload: {
-            graphData: [
-              {
-                dataCount: [
-                  {
-                    name: 'n4',
-                    value: 1
-                  },
-                  {
-                    name: 'n5',
-                    value: 2
-                  }
-                ],
-                name: 'graph2'
-              },
-              {
-                dataCount: [
-                  {
-                    name: 'n6',
-                    value: 10
-                  },
-                  {
-                    name: 'n7',
-                    value: 20
-                  }
-                ],
-                name: 'graph3'
-              }
-            ]
-          }
-        }
-      },
-      public: {
-        config: {}
-      },
-      service: {
-        logs: {
-          logList: [
-            {
-              path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
-              host: 'h0',
-              level: 'WARN',
-              logtime: currentTime.valueOf(),
-              ip: '192.168.0.1',
-              logfile_line_number: 8,
-              type: 'ams_collector',
-              _version_: 9,
-              id: 'id2',
-              file: 'ambari-metrics-collector.log',
-              seq_num: 10,
-              bundle_id: 'b2',
-              case_id: 'c2',
-              log_message: 'Connection refused.\nPlease check Ambari Metrics.\nCheck log file for details.',
-              message_md5: '1357908642',
-              cluster: 'cl2',
-              event_count: 5,
-              event_md5: '1908755391',
-              event_dur_ms: 200,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().add(5, 'd').valueOf(),
-              _router_field_: 20
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
-              host: 'h1',
-              level: 'ERROR',
-              logtime: currentTime.clone().subtract(2, 'd').valueOf(),
-              ip: '192.168.0.2',
-              type: 'ams_collector',
-              _version_: 14,
-              id: 'id3',
-              file: 'ambari-metrics-collector.log',
-              seq_num: 15,
-              bundle_id: 'b3',
-              case_id: 'c3',
-              log_message: 'Connection refused.\nPlease check Ambari Metrics.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1357908642',
-              cluster: 'cl3',
-              event_count: 2,
-              event_md5: '1029384756',
-              event_dur_ms: 700,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().add(3, 'd').valueOf(),
-              _router_field_: 5
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
-              host: 'h1',
-              level: 'FATAL',
-              logtime: currentTime.clone().subtract(10, 'd').valueOf(),
-              ip: '192.168.0.3',
-              type: 'ambari_agent',
-              _version_: 14,
-              id: 'id4',
-              file: 'ambari-agent.log',
-              seq_num: 15,
-              bundle_id: 'b4',
-              case_id: 'c4',
-              log_message: 'Connection refused.\nPlease check Ambari Agent.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1038027502',
-              cluster: 'cl4',
-              event_count: 2,
-              event_md5: '67589403',
-              event_dur_ms: 100,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().subtract(5, 'd').valueOf(),
-              _router_field_: 45
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/zookeeper-server.log',
-              host: 'h1',
-              level: 'INFO',
-              logtime: currentTime.clone().subtract(25, 'h').valueOf(),
-              ip: '192.168.0.4',
-              type: 'zookeeper_server',
-              _version_: 14,
-              id: 'id4',
-              file: 'zookeeper_server.log',
-              seq_num: 15,
-              bundle_id: 'b0',
-              case_id: 'c0',
-              log_message: 'Connection refused.\nPlease check ZooKeeper Server.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1038027502',
-              cluster: 'cl0',
-              event_count: 2,
-              event_md5: '67589403',
-              event_dur_ms: 1000,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().subtract(25, 'h').add(5, 'd').valueOf(),
-              _router_field_: 55
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/zookeeper-server.log',
-              host: 'h1',
-              level: 'DEBUG',
-              logtime: currentTime.clone().subtract(25, 'd').valueOf(),
-              ip: '192.168.0.4',
-              type: 'zookeeper_server',
-              _version_: 14,
-              id: 'id4',
-              file: 'zookeeper_server.log',
-              seq_num: 15,
-              bundle_id: 'b0',
-              case_id: 'c0',
-              log_message: 'Connection refused.\nPlease check ZooKeeper Server.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1038027502',
-              cluster: 'cl1',
-              event_count: 2,
-              event_md5: '67589403',
-              event_dur_ms: 1000,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().subtract(20, 'd').valueOf(),
-              _router_field_: 55
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/zookeeper-client.log',
-              host: 'h1',
-              level: 'TRACE',
-              logtime: currentTime.clone().subtract(2, 'h').valueOf(),
-              ip: '192.168.0.4',
-              type: 'zookeeper_client',
-              _version_: 14,
-              id: 'id4',
-              file: 'zookeeper_client.log',
-              seq_num: 15,
-              bundle_id: 'b0',
-              case_id: 'c0',
-              log_message: 'Connection refused.\nPlease check ZooKeeper Client.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1038027502',
-              cluster: 'cl1',
-              event_count: 2,
-              event_md5: '67589403',
-              event_dur_ms: 1000,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().subtract(2, 'h').add(5, 'd').valueOf(),
-              _router_field_: 55
-            },
-            {
-              path: '/var/log/ambari-metrics-collector/zookeeper-client.log',
-              host: 'h1',
-              level: 'UNKNOWN',
-              logtime: currentTime.clone().subtract(31, 'd').valueOf(),
-              ip: '192.168.0.4',
-              type: 'zookeeper_client',
-              _version_: 14,
-              id: 'id4',
-              file: 'zookeeper_client.log',
-              seq_num: 15,
-              bundle_id: 'b0',
-              case_id: 'c0',
-              log_message: 'Connection refused.\nPlease check ZooKeeper Client.\nCheck log file for details.',
-              logfile_line_number: 16,
-              message_md5: '1038027502',
-              cluster: 'cl1',
-              event_count: 2,
-              event_md5: '67589403',
-              event_dur_ms: 1000,
-              _ttl_: '+5DAYS',
-              _expire_at_: currentTime.clone().subtract(26, 'd').valueOf(),
-              _router_field_: 55
-            }
-          ],
-          aggregated: {
-            graphData: [
-              {
-                name: 'n0',
-                count: 100,
-                dataList: [
-                  {
-                    name: 'n1',
-                    count: 50,
-                    dataList: null
-                  },
-                  {
-                    name: 'n2',
-                    count: 200,
-                    dataList: null
-                  }
-                ]
-              },
-              {
-                name: 'n3',
-                count: 10,
-                dataList: [
-                  {
-                    name: 'n4',
-                    count: 5,
-                    dataList: null
-                  },
-                  {
-                    name: 'n5',
-                    count: 20,
-                    dataList: null
-                  }
-                ]
-              }
-            ]
-          },
-          components: {
-            count: {
-              anygraph: {
-                graphData: [
-                  {
-                    dataCount: [
-                      {
-                        name: 'n8',
-                        value: 50
-                      },
-                      {
-                        name: 'n9',
-                        value: 100
-                      }
-                    ],
-                    name: 'graph4'
-                  },
-                  {
-                    dataCount: [
-                      {
-                        name: 'n10',
-                        value: 5
-                      },
-                      {
-                        name: 'n11',
-                        value: 10
-                      }
-                    ],
-                    name: 'graph5'
-                  }
-                ]
-              }
-            },
-            levels: {
-              counts: {
-                vNodeList: [
-                  {
-                    name: 'ambari',
-                    type: 0,
-                    logLevelCount: [
-                      {
-                        name: 'ERROR',
-                        value: '10'
-                      },
-                      {
-                        name: 'WARN',
-                        value: '50'
-                      }
-                    ],
-                    childs: [
-                      {
-                        name: 'hdfs',
-                        type: 2,
-                        logLevelCount: [
-                          {
-                            name: 'ERROR',
-                            value: '10'
-                          },
-                          {
-                            name: 'WARN',
-                            value: '20'
-                          }
-                        ],
-                        isParent: false,
-                        isRoot: false
-                      },
-                      {
-                        name: 'zookeeper',
-                        type: 3,
-                        logLevelCount: [
-                          {
-                            name: 'ERROR',
-                            value: '20'
-                          },
-                          {
-                            name: 'WARN',
-                            value: '40'
-                          }
-                        ],
-                        isParent: false,
-                        isRoot: false
-                      }
-                    ],
-                    isParent: true,
-                    isRoot: false
-                  },
-                  {
-                    name: 'ambari_agent',
-                    type: 1,
-                    logLevelCount: [
-                      {
-                        name: 'ERROR',
-                        value: '100'
-                      },
-                      {
-                        name: 'WARN',
-                        value: '500'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  }
-                ]
-              }
-            },
-            groupList: [
-              {
-                type: 'ams_collector'
-              },
-              {
-                type: 'ambari_agent'
-              },
-              {
-                type: 'zookeeper_server'
-              },
-              {
-                type: 'zookeeper_client'
-              }
-            ]
-          },
-          files: {
-            hostLogFiles: {
-              clusters: [
-                'c0',
-                'c1'
-              ],
-              services: [
-                'hdfs',
-                'zookeeper'
-              ]
-            }
-          },
-          histogram: {
-            graphData: [
-              {
-                dataCount: [
-                  {
-                    name: currentTime.toISOString(),
-                    value: '1000'
-                  },
-                  {
-                    name: currentTime.clone().subtract(1, 'h').toISOString(),
-                    value: '2000'
-                  }
-                ],
-                name: 'ERROR'
-              },
-              {
-                dataCount: [
-                  {
-                    name: currentTime.toISOString(),
-                    value: '700'
-                  },
-                  {
-                    name: currentTime.clone().subtract(1, 'h').toISOString(),
-                    value: '900'
-                  }
-                ],
-                name: 'WARN'
-              }
-            ]
-          },
-          hosts: {
-            groupList: [
-              {
-                host: 'h0'
-              },
-              {
-                host: 'h1'
-              }
-            ],
-            components: {
-              vNodeList: [
-                {
-                  name: 'ambari',
-                  type: 0,
-                  logLevelCount: [
-                    {
-                      name: 'ERROR',
-                      value: '100'
-                    },
-                    {
-                      name: 'WARN',
-                      value: '500'
-                    }
-                  ],
-                  childs: [
-                    {
-                      name: 'ambari_metrics',
-                      type: 2,
-                      logLevelCount: [
-                        {
-                          name: 'ERROR',
-                          value: '100'
-                        },
-                        {
-                          name: 'WARN',
-                          value: '200'
-                        }
-                      ],
-                      isParent: false,
-                      isRoot: false
-                    },
-                    {
-                      name: 'hbase',
-                      type: 3,
-                      logLevelCount: [
-                        {
-                          name: 'ERROR',
-                          value: '200'
-                        },
-                        {
-                          name: 'WARN',
-                          value: '400'
-                        }
-                      ],
-                      isParent: false,
-                      isRoot: false
-                    }
-                  ],
-                  isParent: true,
-                  isRoot: false
-                },
-                {
-                  name: 'ambari_server',
-                  type: 1,
-                  logLevelCount: [
-                    {
-                      name: 'ERROR',
-                      value: '1000'
-                    },
-                    {
-                      name: 'WARN',
-                      value: '5000'
-                    }
-                  ],
-                  isParent: false,
-                  isRoot: false
-                }
-              ]
-            },
-            count: {
-              getvCounts: [
-                {
-                  name: 'n20',
-                  count: 100
-                },
-                {
-                  name: 'n21',
-                  count: 200
-                }
-              ]
-            }
-          },
-          levels: {
-            counts: {
-              getvNameValues: [
-                {
-                  name: 'n22',
-                  count: 1000
-                },
-                {
-                  name: 'n23',
-                  count: 2000
-                }
-              ]
-            }
-          },
-          schema: {
-            fields: {
-              cluster: 'key_lower_case',
-              method: 'key_lower_case',
-              level: 'key_lower_case',
-              event_count: 'tlong',
-              ip: 'string',
-              rowtype: 'key_lower_case',
-              key_log_message: 'key_lower_case',
-              type: 'key_lower_case',
-              seq_num: 'tlong',
-              path: 'key_lower_case',
-              logtype: 'key_lower_case',
-              file: 'key_lower_case',
-              line_number: 'tint',
-              thread_name: 'key_lower_case',
-              bundle_id: 'key_lower_case',
-              host: 'key_lower_case',
-              case_id: 'key_lower_case',
-              log_message: 'text_std_token_lower_case',
-              id: 'string',
-              logger_name: 'key_lower_case',
-              text: 'text_std_token_lower_case',
-              logfile_line_number: 'tint',
-              logtime: 'tdate'
-            }
-          },
-          serviceconfig: '',
-          tree: {
-            vNodeList: [
-              {
-                name: 'h0',
-                type: 'H',
-                value: '1',
-                childs: [
-                  {
-                    name: 'ams_collector',
-                    type: 'C',
-                    value: '1',
-                    logLevelCount: [
-                      {
-                        name: 'WARN',
-                        value: '1'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  }
-                ],
-                logLevelCount: [
-                  {
-                    name: 'WARN',
-                    value: '1'
-                  }
-                ],
-                isParent: true,
-                isRoot: true
-              },
-              {
-                name: 'h1',
-                type: 'H',
-                value: '6',
-                childs: [
-                  {
-                    name: 'ams_collector',
-                    type: 'C',
-                    value: '1',
-                    logLevelCount: [
-                      {
-                        name: 'ERROR',
-                        value: '1'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  },
-                  {
-                    name: 'ambari_agent',
-                    type: 'C',
-                    value: '1',
-                    logLevelCount: [
-                      {
-                        name: 'FATAL',
-                        value: '1'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  },
-                  {
-                    name: 'zookeeper_server',
-                    type: 'C',
-                    value: '2',
-                    logLevelCount: [
-                      {
-                        name: 'INFO',
-                        value: '1'
-                      },
-                      {
-                        name: 'DEBUG',
-                        value: '1'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  },
-                  {
-                    name: 'zookeeper_client',
-                    type: 'C',
-                    value: '2',
-                    logLevelCount: [
-                      {
-                        name: 'TRACE',
-                        value: '1'
-                      },
-                      {
-                        name: 'UNKNOWN',
-                        value: '1'
-                      }
-                    ],
-                    isParent: false,
-                    isRoot: false
-                  }
-                ],
-                logLevelCount: [
-                  {
-                    name: 'ERROR',
-                    value: '1'
-                  },
-                  {
-                    name: 'FATAL',
-                    value: '1'
-                  },
-                  {
-                    name: 'INFO',
-                    value: '1'
-                  },
-                  {
-                    name: 'DEBUG',
-                    value: '1'
-                  },
-                  {
-                    name: 'TRACE',
-                    value: '1'
-                  },
-                  {
-                    name: 'UNKNOWN',
-                    value: '1'
-                  }
-                ],
-                isParent: true,
-                isRoot: true
-              }
-            ]
-          },
-          truncated: {
-            logList: [
-              {
-                path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
-                host: 'h0',
-                level: 'WARN',
-                logtime: currentTime.valueOf(),
-                ip: '192.168.0.1',
-                logfile_line_number: 8,
-                type: 'ams_collector',
-                _version_: 9,
-                id: 'id2',
-                file: 'ambari-metrics-collector.log',
-                seq_num: 10,
-                bundle_id: 'b2',
-                case_id: 'c2',
-                log_message: 'Connection refused',
-                message_md5: '1357908642',
-                cluster: 'cl2',
-                event_count: 5,
-                event_md5: '1908755391',
-                event_dur_ms: 200,
-                _ttl_: '+5DAYS',
-                _expire_at_: currentTime.clone().add(1, 'd').valueOf(),
-                _router_field_: 20
-              },
-              {
-                path: '/var/log/ambari-metrics-collector/ambari-metrics-collector.log',
-                host: 'h1',
-                level: 'ERROR',
-                logtime: currentTime.clone().subtract(1, 'd').valueOf(),
-                ip: '192.168.0.2',
-                type: 'ams_collector',
-                _version_: 14,
-                id: 'id3',
-                file: 'ambari-metrics-collector.log',
-                seq_num: 15,
-                bundle_id: 'b3',
-                case_id: 'c3',
-                log_message: 'Connection refused',
-                logfile_line_number: 16,
-                message_md5: '1357908642',
-                cluster: 'cl3',
-                event_count: 2,
-                event_md5: '1029384756',
-                event_dur_ms: 700,
-                _ttl_: '+5DAYS',
-                _expire_at_: currentTime.clone().add(2, 'd').valueOf(),
-                _router_field_: 5
-              }
-            ]
-          },
-          clusters: [
-            'cl0',
-            'cl1',
-            'cl2',
-            'cl3',
-            'cl4'
-          ]
-        }
-      },
-      status: {
-        auditlogs: {
-          znodeReady: true,
-          solrCollectionReady: true,
-          solrAliasReady: false,
-          configurationUploaded: true
-        },
-        servicelogs: {
-          znodeReady: true,
-          solrCollectionReady: true,
-          configurationUploaded: true
-        },
-        userconfig: {
-          znodeReady: true,
-          solrCollectionReady: true,
-          configurationUploaded: true
-        }
-      },
-      shipper: {
-        filters: {
-          cl0: {
-            level: {
-              filter: {
-                ambari_agent: {
-                  label: 'ambari_agent',
-                  hosts: [
-                    'h0'
-                  ],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [
-                    'FATAL'
-                  ],
-                  expiryTime: currentTime.clone().add(1, 'd').toISOString()
-                },
-                ambari_alerts: {
-                  label: 'ambari_alerts',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_audit: {
-                  label: 'ambari_audit',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_config_changes: {
-                  label: 'ambari_config_changes',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_eclipselink: {
-                  label: 'ambari_eclipselink',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server: {
-                  label: 'ambari_server',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server_check_database: {
-                  label: 'ambari_server_check_database',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_collector: {
-                  label: 'ams_collector',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_grafana: {
-                  label: 'ams_grafana',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_master: {
-                  label: 'ams_hbase_master',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_regionserver: {
-                  label: 'ams_hbase_regionserver',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_monitor: {
-                  label: 'ams_monitor',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_datanode: {
-                  label: 'hdfs_datanode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_journalnode: {
-                  label: 'hdfs_journalnode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_namenode: {
-                  label: 'hdfs_namenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_nfs3: {
-                  label: 'hdfs_nfs3',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_secondarynamenode: {
-                  label: 'hdfs_secondarynamenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_zkfc: {
-                  label: 'hdfs_zkfc',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                infra_solr: {
-                  label: 'infra_solr',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_app: {
-                  label: 'logsearch_app',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_feeder: {
-                  label: 'logsearch_feeder',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_perf: {
-                  label: 'logsearch_perf',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                zookeeper: {
-                  label: 'zookeeper',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                }
-              }
-            }
-          },
-          cl1: {
-            level: {
-              filter: {
-                ambari_agent: {
-                  label: 'ambari_agent',
-                  hosts: [
-                    'h0'
-                  ],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [
-                    'FATAL'
-                  ],
-                  expiryTime: currentTime.clone().add(1, 'd').toISOString()
-                },
-                ambari_alerts: {
-                  label: 'ambari_alerts',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_audit: {
-                  label: 'ambari_audit',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_config_changes: {
-                  label: 'ambari_config_changes',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_eclipselink: {
-                  label: 'ambari_eclipselink',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server: {
-                  label: 'ambari_server',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server_check_database: {
-                  label: 'ambari_server_check_database',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_collector: {
-                  label: 'ams_collector',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_grafana: {
-                  label: 'ams_grafana',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_master: {
-                  label: 'ams_hbase_master',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_regionserver: {
-                  label: 'ams_hbase_regionserver',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_monitor: {
-                  label: 'ams_monitor',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_datanode: {
-                  label: 'hdfs_datanode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_journalnode: {
-                  label: 'hdfs_journalnode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_namenode: {
-                  label: 'hdfs_namenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_nfs3: {
-                  label: 'hdfs_nfs3',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_secondarynamenode: {
-                  label: 'hdfs_secondarynamenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_zkfc: {
-                  label: 'hdfs_zkfc',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                infra_solr: {
-                  label: 'infra_solr',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_app: {
-                  label: 'logsearch_app',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_feeder: {
-                  label: 'logsearch_feeder',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_perf: {
-                  label: 'logsearch_perf',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                zookeeper: {
-                  label: 'zookeeper',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                }
-              }
-            }
-          },
-          cl2: {
-            level: {
-              filter: {
-                ambari_agent: {
-                  label: 'ambari_agent',
-                  hosts: [
-                    'h0'
-                  ],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [
-                    'FATAL'
-                  ],
-                  expiryTime: currentTime.clone().add(1, 'd').toISOString()
-                },
-                ambari_alerts: {
-                  label: 'ambari_alerts',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_audit: {
-                  label: 'ambari_audit',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_config_changes: {
-                  label: 'ambari_config_changes',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_eclipselink: {
-                  label: 'ambari_eclipselink',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server: {
-                  label: 'ambari_server',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server_check_database: {
-                  label: 'ambari_server_check_database',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_collector: {
-                  label: 'ams_collector',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_grafana: {
-                  label: 'ams_grafana',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_master: {
-                  label: 'ams_hbase_master',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_regionserver: {
-                  label: 'ams_hbase_regionserver',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_monitor: {
-                  label: 'ams_monitor',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_datanode: {
-                  label: 'hdfs_datanode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_journalnode: {
-                  label: 'hdfs_journalnode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_namenode: {
-                  label: 'hdfs_namenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_nfs3: {
-                  label: 'hdfs_nfs3',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_secondarynamenode: {
-                  label: 'hdfs_secondarynamenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_zkfc: {
-                  label: 'hdfs_zkfc',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                infra_solr: {
-                  label: 'infra_solr',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_app: {
-                  label: 'logsearch_app',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_feeder: {
-                  label: 'logsearch_feeder',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_perf: {
-                  label: 'logsearch_perf',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                zookeeper: {
-                  label: 'zookeeper',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                }
-              }
-            }
-          },
-          cl3: {
-            level: {
-              filter: {
-                ambari_agent: {
-                  label: 'ambari_agent',
-                  hosts: [
-                    'h0'
-                  ],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [
-                    'FATAL'
-                  ],
-                  expiryTime: currentTime.clone().add(1, 'd').toISOString()
-                },
-                ambari_alerts: {
-                  label: 'ambari_alerts',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_audit: {
-                  label: 'ambari_audit',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_config_changes: {
-                  label: 'ambari_config_changes',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_eclipselink: {
-                  label: 'ambari_eclipselink',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server: {
-                  label: 'ambari_server',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server_check_database: {
-                  label: 'ambari_server_check_database',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_collector: {
-                  label: 'ams_collector',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_grafana: {
-                  label: 'ams_grafana',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_master: {
-                  label: 'ams_hbase_master',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_regionserver: {
-                  label: 'ams_hbase_regionserver',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_monitor: {
-                  label: 'ams_monitor',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_datanode: {
-                  label: 'hdfs_datanode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_journalnode: {
-                  label: 'hdfs_journalnode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_namenode: {
-                  label: 'hdfs_namenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_nfs3: {
-                  label: 'hdfs_nfs3',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_secondarynamenode: {
-                  label: 'hdfs_secondarynamenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_zkfc: {
-                  label: 'hdfs_zkfc',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                infra_solr: {
-                  label: 'infra_solr',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_app: {
-                  label: 'logsearch_app',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_feeder: {
-                  label: 'logsearch_feeder',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_perf: {
-                  label: 'logsearch_perf',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                zookeeper: {
-                  label: 'zookeeper',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                }
-              }
-            }
-          },
-          cl4: {
-            level: {
-              filter: {
-                ambari_agent: {
-                  label: 'ambari_agent',
-                  hosts: [
-                    'h0'
-                  ],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [
-                    'FATAL'
-                  ],
-                  expiryTime: currentTime.clone().add(1, 'd').toISOString()
-                },
-                ambari_alerts: {
-                  label: 'ambari_alerts',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_audit: {
-                  label: 'ambari_audit',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_config_changes: {
-                  label: 'ambari_config_changes',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_eclipselink: {
-                  label: 'ambari_eclipselink',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server: {
-                  label: 'ambari_server',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ambari_server_check_database: {
-                  label: 'ambari_server_check_database',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_collector: {
-                  label: 'ams_collector',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_grafana: {
-                  label: 'ams_grafana',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_master: {
-                  label: 'ams_hbase_master',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_hbase_regionserver: {
-                  label: 'ams_hbase_regionserver',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                ams_monitor: {
-                  label: 'ams_monitor',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_datanode: {
-                  label: 'hdfs_datanode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_journalnode: {
-                  label: 'hdfs_journalnode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_namenode: {
-                  label: 'hdfs_namenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_nfs3: {
-                  label: 'hdfs_nfs3',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_secondarynamenode: {
-                  label: 'hdfs_secondarynamenode',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                hdfs_zkfc: {
-                  label: 'hdfs_zkfc',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                infra_solr: {
-                  label: 'infra_solr',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_app: {
-                  label: 'logsearch_app',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_feeder: {
-                  label: 'logsearch_feeder',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                logsearch_perf: {
-                  label: 'logsearch_perf',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                },
-                zookeeper: {
-                  label: 'zookeeper',
-                  hosts: [],
-                  defaultLevels: [
-                    'FATAL',
-                    'ERROR',
-                    'WARN',
-                    'INFO'
-                  ],
-                  overrideLevels: [],
-                  expiryTime: null
-                }
-              }
-            }
-          }
-        },
-        names: []
-      }
-    }
-  }
-};
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.spec.ts
index b87fa8c..b9f079d 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.spec.ts
@@ -17,7 +17,6 @@
  */
 
 import {TestBed, inject} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
@@ -35,21 +34,14 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
+
 import {ComponentGeneratorService} from './component-generator.service';
 
 describe('ComponentGeneratorService', () => {
   beforeEach(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       imports: [
         StoreModule.provideStore({
@@ -70,12 +62,9 @@ describe('ComponentGeneratorService', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         ComponentGeneratorService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         UtilsService,
         HostsService,
         AuditLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.ts
index bf06525..8e79aca 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/component-generator.service.ts
@@ -27,7 +27,8 @@ import {LogLevelObject} from '@app/classes/object';
 @Injectable()
 export class ComponentGeneratorService {
 
-  constructor(private resolver: ComponentFactoryResolver, private hostsStorage: HostsService, private componentsStorage: ComponentsService, private logsContainer: LogsContainerService) {
+  constructor(private resolver: ComponentFactoryResolver, private hostsStorage: HostsService,
+              private componentsStorage: ComponentsService, private logsContainer: LogsContainerService) {
   }
 
   private get logLevels(): LogLevelObject[] {
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/history-manager.service.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/history-manager.service.spec.ts
index 68a0e99..0a7902c5 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/history-manager.service.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/history-manager.service.spec.ts
@@ -17,7 +17,6 @@
  */
 
 import {TestBed, inject} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -34,22 +33,16 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UtilsService} from '@app/services/utils.service';
 
 import {HistoryManagerService} from './history-manager.service';
 
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
+
 describe('HistoryService', () => {
   beforeEach(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
+
     TestBed.configureTestingModule({
       imports: [
         ...TranslationModules,
@@ -70,11 +63,8 @@ describe('HistoryService', () => {
         })
       ],
       providers: [
+        ...MockHttpRequestModules,
         HistoryManagerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         LogsContainerService,
         UtilsService,
         AuditLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.spec.ts
index 2f83935..266f7fc 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.spec.ts
@@ -17,7 +17,7 @@
  */
 
 import {TestBed, inject} from '@angular/core/testing';
-import {TranslationModules} from '@app/test-config.spec';
+import {MockHttpRequestModules, TranslationModules} from '@app/test-config.spec';
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -34,21 +34,12 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 
 import {LogsContainerService} from './logs-container.service';
 
 describe('LogsContainerService', () => {
   beforeEach(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       imports: [
         StoreModule.provideStore({
@@ -69,6 +60,7 @@ describe('LogsContainerService', () => {
         ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         AuditLogsService,
         ServiceLogsService,
         AuditLogsFieldsService,
@@ -83,10 +75,6 @@ describe('LogsContainerService', () => {
         ServiceLogsTruncatedService,
         TabsService,
         LogsContainerService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         UtilsService
       ]
     });
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
index 3c2493b..ce13e09 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
@@ -31,7 +31,7 @@ import * as moment from 'moment-timezone';
 import {HttpClientService} from '@app/services/http-client.service';
 import {UtilsService} from '@app/services/utils.service';
 import {AuditLogsService} from '@app/services/storage/audit-logs.service';
-import {AuditLogsFieldsService} from '@app/services/storage/audit-logs-fields.service';
+import {AuditLogsFieldsService, ResponseRootProperties} from '@app/services/storage/audit-logs-fields.service';
 import {AuditLogsGraphDataService} from '@app/services/storage/audit-logs-graph-data.service';
 import {ServiceLogsService} from '@app/services/storage/service-logs.service';
 import {ServiceLogsFieldsService} from '@app/services/storage/service-logs-fields.service';
@@ -51,11 +51,9 @@ import {ListItem} from '@app/classes/list-item';
 import {HomogeneousObject, LogLevelObject} from '@app/classes/object';
 import {LogsType, ScrollType, SortingType} from '@app/classes/string';
 import {Tab} from '@app/classes/models/tab';
-import {LogField} from '@app/classes/models/log-field';
+import {AuditFieldsDefinitionSet} from "@app/classes/object";
 import {AuditLog} from '@app/classes/models/audit-log';
-import {AuditLogField} from '@app/classes/models/audit-log-field';
 import {ServiceLog} from '@app/classes/models/service-log';
-import {ServiceLogField} from '@app/classes/models/service-log-field';
 import {BarGraph} from '@app/classes/models/bar-graph';
 import {NodeItem} from '@app/classes/models/node-item';
 import {CommonEntry} from '@app/classes/models/common-entry';
@@ -601,17 +599,10 @@ export class LogsContainerService {
 
   activeLogsType: LogsType;
 
-  filtersFormChange: Subject<void> = new Subject();
+  // Todo move this prop to a state of the audit log container
+  activeAuditGroup: string = ResponseRootProperties.DEFAULTS;
 
-  private columnsMapper<FieldT extends LogField>(fields: FieldT[]): ListItem[] {
-    return fields.filter((field: FieldT): boolean => field.isAvailable).map((field: FieldT): ListItem => {
-      return {
-        value: field.name,
-        label: field.displayName || field.name,
-        isChecked: field.isDisplayed
-      };
-    });
-  }
+  filtersFormChange: Subject<void> = new Subject();
 
   private logsMapper<LogT extends AuditLog & ServiceLog>(result: [LogT[], ListItem[]]): LogT[] {
     const [logs, fields] = result;
@@ -631,9 +622,9 @@ export class LogsContainerService {
 
   private serviceLogsSource: Observable<ServiceLog[]> = this.serviceLogsStorage.getAll();
 
-  auditLogsColumns: Observable<ListItem[]> = this.auditLogsFieldsStorage.getAll().map(this.columnsMapper);
+  auditLogsColumns: Observable<ListItem[]> = this.auditLogsFieldsStorage.getParameter(ResponseRootProperties.DEFAULTS).map(this.utils.logFieldToListItemMapper);
 
-  serviceLogsColumns: Observable<ListItem[]> = this.serviceLogsFieldsStorage.getAll().map(this.columnsMapper);
+  serviceLogsColumns: Observable<ListItem[]> = this.serviceLogsFieldsStorage.getAll().map(this.utils.logFieldToListItemMapper);
 
   serviceLogs: Observable<ServiceLog[]> = Observable.combineLatest(
     this.serviceLogsSource, this.serviceLogsColumns
@@ -827,21 +818,17 @@ export class LogsContainerService {
     this.httpClient.get('serviceLogsFields').subscribe((response: Response): void => {
       const jsonResponse = response.json();
       if (jsonResponse) {
-        this.serviceLogsFieldsStorage.addInstances(this.getColumnsArray(jsonResponse, ServiceLogField));
+        this.serviceLogsFieldsStorage.addInstances(jsonResponse);
       }
     });
     this.httpClient.get('auditLogsFields').subscribe((response: Response): void => {
-      const jsonResponse = response.json();
+      const jsonResponse:AuditFieldsDefinitionSet = response.json();
       if (jsonResponse) {
-        this.auditLogsFieldsStorage.addInstances(this.getColumnsArray(jsonResponse, AuditLogField));
+        this.auditLogsFieldsStorage.setParameters(jsonResponse);
       }
     });
   }
 
-  private getColumnsArray(keysObject: any, fieldClass: any): any[] {
-    return Object.keys(keysObject).map((key: string): {fieldClass} => new fieldClass(key));
-  }
-
   getStartTimeMoment = (selection: TimeUnitListItem, end: moment.Moment): moment.Moment | undefined => {
     let time;
     const value = selection && selection.value;
@@ -1000,13 +987,13 @@ export class LogsContainerService {
     const requestComponentsData:Observable<Response> = this.httpClient.get('components');
     const requestComponentsName:Observable<Response> = this.httpClient.get('serviceComponentsName');
     const requests = Observable.combineLatest(requestComponentsName, requestComponentsData);
-    requests.subscribe((responses:Response[]) => {
-      const componentsNames = responses[0].json();
-      const componentsData = responses[1].json();
+    requests.subscribe(([componentsNamesResponse, componentsDataResponse]:Response[]) => {
+      const componentsNames = componentsNamesResponse.json();
+      const componentsData = componentsDataResponse.json();
       const components = componentsData && componentsData.vNodeList.map((item): NodeItem => {
         const component = componentsNames.metadata.find(component => component.name === item.name);
         return Object.assign(item, {
-          label: component.label || item.name,
+          label: component && (component.label || item.name),
           group: component && component.group && {
             name: component.group,
             label: componentsNames.groups[component.group]
@@ -1064,9 +1051,12 @@ export class LogsContainerService {
   }
 
   updateSelectedColumns(columnNames: string[], logsType: string): void {
-    this.logsTypeMap[logsType].fieldsModel.mapCollection(item => Object.assign({}, item, {
-      isDisplayed: columnNames.indexOf(item.name) > -1
-    }));
+    const functionName: string = logsType === 'auditLogs' ? 'mapFieldSetGroup' : 'mapCollection';
+    const modifierFn: Function = (item) => Object.assign({}, item, {
+      visible: columnNames.indexOf(item.name) > -1
+    });
+    const params = [modifierFn, logsType === 'auditLogs' ? this.activeAuditGroup : undefined];
+    this.logsTypeMap[logsType].fieldsModel[functionName](...params);
   }
 
   openServiceLog(log: ServiceLog): void {
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/mock-api-data.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/mock-api-data.service.ts
index b7c93a1..6ac075a 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/mock-api-data.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/mock-api-data.service.ts
@@ -20,8 +20,9 @@ import {URLSearchParams, Response, ResponseOptions} from '@angular/http';
 import {InMemoryDbService, InMemoryBackendService, createErrorResponse} from 'angular-in-memory-web-api';
 import {Observable} from 'rxjs/Observable';
 import {Subscriber} from 'rxjs/Subscriber';
+import 'rxjs/add/operator/delay';
 import * as moment from 'moment';
-import {mockData} from '@app/mock-data';
+import {mockDataByUrl} from '@app/mock-data-by-url';
 
 export class mockBackendService extends InMemoryBackendService {
   getLocation(url: string): any {
@@ -123,24 +124,30 @@ export class mockApiDataService implements InMemoryDbService {
     };
   }
 
+  private findDataByUrlPatter(path: string): {[key: string]: any} | undefined | Function {
+    const paths: string[] = Object.keys(mockDataByUrl);
+    const matchedPath:string = paths.find((key:string):boolean => {
+      const test:RegExp = new RegExp(key);
+      return test.test(path);
+    });
+    return mockDataByUrl[matchedPath];
+  }
+
   get(interceptorArgs: any): Observable<Response> {
-    const query = interceptorArgs.requestInfo.query,
-      path = interceptorArgs.requestInfo.base + interceptorArgs.requestInfo.collectionName,
-      pathArray = path.split('/').filter(part => part !== '');
+    const query = interceptorArgs.requestInfo.query;
+    const path = interceptorArgs.requestInfo.base + interceptorArgs.requestInfo.collectionName;
     if (query && query.paramsMap.has('static') && interceptorArgs.passThruBackend) {
       return interceptorArgs.passThruBackend.createConnection(interceptorArgs.requestInfo.req).response;
     } else {
-      let is404 = false;
-      const allData = pathArray.reduce((currentObject, currentKey, index, array) => {
-        if (!currentObject && index < array.length - 1) {
-          return {};
-        } else if (currentObject.hasOwnProperty(currentKey)) {
-          return currentObject[currentKey];
-        } else {
-          is404 = true;
-          return {};
-        }
-      }, interceptorArgs.db);
+      let allData = mockDataByUrl[path];
+      if (!allData) {
+        allData = this.findDataByUrlPatter(path);
+      }
+      if (typeof allData === 'function') {
+        allData = allData(query);
+      }
+      let is404 = !allData;
+
       if (is404) {
         return new Observable<Response>((subscriber: Subscriber<Response>) => subscriber.error(
           new Response(createErrorResponse(
@@ -216,6 +223,6 @@ export class mockApiDataService implements InMemoryDbService {
   }
 
   createDb() {
-    return mockData;
+    return {};
   }
 }
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/storage/audit-logs-fields.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/storage/audit-logs-fields.service.ts
index 0950de6..b061a53 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/storage/audit-logs-fields.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/storage/audit-logs-fields.service.ts
@@ -18,15 +18,58 @@
 
 import {Injectable} from '@angular/core';
 import {Store} from '@ngrx/store';
-import {AppStore, CollectionModelService, getCollectionReducer} from '@app/classes/models/store';
+import {AppStore, ObjectModelService, getObjectReducer} from '@app/classes/models/store';
+import {LogField} from "@app/classes/object";
+import {Observable} from "rxjs/Observable";
 
 export const modelName = 'auditLogsFields';
 
+export const enum ResponseRootProperties {
+  DEFAULTS = 'defaults',
+  OVERRIDES = 'overrides'
+};
+
 @Injectable()
-export class AuditLogsFieldsService extends CollectionModelService {
+export class AuditLogsFieldsService extends ObjectModelService {
   constructor(store: Store<AppStore>) {
     super(modelName, store);
   }
+
+  /**
+   * The goal is to return with the proper fieldset for a given group/service and to return with the default fieldset
+   * when the group has no overrides.
+   * @param {string} group The name of the group/service
+   * @returns {Observable<LogField[]>}
+   */
+  getFieldSetForGroup(group: string): Observable<LogField[]> {
+    return Observable.combineLatest(this.getParameter(ResponseRootProperties.DEFAULTS), this.getParameter(ResponseRootProperties.OVERRIDES))
+      .map(([defaults, overrides]): LogField[] => {
+        return overrides[group] || defaults;
+      });
+  }
+
+  /**
+   * The goal is to update the given fieldset group with the given modifier function. It will map over the selected
+   * group. Right now we let to change the defaults fieldset.
+   * @param {Function} modifier Called by the map method.
+   * @param {string} group The service/group name owner of the fieldset
+   */
+  mapFieldSetGroup(modifier: Function, group: string) {
+    Observable.combineLatest(
+      this.getParameter(ResponseRootProperties.DEFAULTS),
+      this.getParameter(ResponseRootProperties.OVERRIDES)
+    ).first().subscribe(([defaults, overrides]) => {
+      const fieldset = (overrides[group] || defaults).map(modifier);
+      const payload = group === ResponseRootProperties.DEFAULTS ? fieldset : Object.assign({}, overrides, {
+        [group]: fieldset
+      });
+      this.setParameter(
+        group === ResponseRootProperties.DEFAULTS ? ResponseRootProperties.DEFAULTS : ResponseRootProperties.OVERRIDES,
+        payload
+      );
+    });
+  }
+
 }
 
-export const auditLogsFields = getCollectionReducer(modelName);
+export const auditLogsFields = getObjectReducer(modelName);
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/user-settings.service.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/user-settings.service.spec.ts
index 33c0459..08a83aa 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/user-settings.service.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/user-settings.service.spec.ts
@@ -17,6 +17,7 @@
  */
 
 import {TestBed, inject} from '@angular/core/testing';
+import {MockHttpRequestModules, TranslationModules} from "@app/test-config.spec";
 import {StoreModule} from '@ngrx/store';
 import {AuditLogsService, auditLogs} from '@app/services/storage/audit-logs.service';
 import {ServiceLogsService, serviceLogs} from '@app/services/storage/service-logs.service';
@@ -33,7 +34,6 @@ import {ComponentsService, components} from '@app/services/storage/components.se
 import {HostsService, hosts} from '@app/services/storage/hosts.service';
 import {ServiceLogsTruncatedService, serviceLogsTruncated} from '@app/services/storage/service-logs-truncated.service';
 import {TabsService, tabs} from '@app/services/storage/tabs.service';
-import {HttpClientService} from '@app/services/http-client.service';
 import {LogsContainerService} from '@app/services/logs-container.service';
 import {UtilsService} from '@app/services/utils.service';
 
@@ -41,14 +41,6 @@ import {UserSettingsService} from './user-settings.service';
 
 describe('UserSettingsService', () => {
   beforeEach(() => {
-    const httpClient = {
-      get: () => {
-        return {
-          subscribe: () => {
-          }
-        }
-      }
-    };
     TestBed.configureTestingModule({
       imports: [
         StoreModule.provideStore({
@@ -65,14 +57,12 @@ describe('UserSettingsService', () => {
           hosts,
           serviceLogsTruncated,
           tabs
-        })
+        }),
+        ...TranslationModules
       ],
       providers: [
+        ...MockHttpRequestModules,
         UserSettingsService,
-        {
-          provide: HttpClientService,
-          useValue: httpClient
-        },
         LogsContainerService,
         UtilsService,
         AuditLogsService,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
index eae8928..5940b0f 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
@@ -19,7 +19,7 @@
 import {Injectable} from '@angular/core';
 import * as moment from 'moment-timezone';
 import {ListItem} from '@app/classes/list-item';
-import {HomogeneousObject} from '@app/classes/object';
+import {HomogeneousObject, LogField} from '@app/classes/object';
 import {NodeItem} from '@app/classes/models/node-item';
 
 @Injectable()
@@ -133,6 +133,16 @@ export class UtilsService {
     };
   }
 
+  logFieldToListItemMapper<FieldT extends LogField>(fields: FieldT[]): ListItem[] {
+    return fields ? fields.map((field: FieldT): ListItem => {
+      return {
+        value: field.name,
+        label: field.label || field.name,
+        isChecked: field.visible
+      };
+    }) : [];
+  }
+
   /**
    * Method that updates source array with only the values which aren't already present there
    * @param {Array} sourceArray
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/test-config.spec.ts b/ambari-logsearch/ambari-logsearch-web/src/app/test-config.spec.ts
index 8fc6c87..4ae8df1 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/test-config.spec.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/test-config.spec.ts
@@ -16,9 +16,13 @@
  * limitations under the License.
  */
 
-import {HttpModule, Http} from '@angular/http';
+import {HttpModule, Http, BrowserXhr, XSRFStrategy, ResponseOptions, XHRBackend} from '@angular/http';
 import {TranslateModule, TranslateLoader} from '@ngx-translate/core';
 import {TranslateHttpLoader} from '@ngx-translate/http-loader';
+import {Injector} from "@angular/core";
+import {InMemoryBackendService} from "angular-in-memory-web-api";
+import {mockApiDataService} from "@app/services/mock-api-data.service";
+import {HttpClientService} from "@app/services/http-client.service";
 
 function HttpLoaderFactory(http: Http) {
   return new TranslateHttpLoader(http, 'assets/i18n/', '.json');
@@ -34,3 +38,23 @@ export const TranslationModules = [
     }
   })
 ];
+
+export const MockHttpRequestModules = [
+  HttpClientService,
+  {
+    provide: XHRBackend,
+    useFactory: getTestXHRBackend,
+    deps: [Injector, BrowserXhr, XSRFStrategy, ResponseOptions]
+  }
+];
+
+export function getTestXHRBackend(injector: Injector, browser: BrowserXhr, xsrf: XSRFStrategy, options: ResponseOptions) {
+  return new InMemoryBackendService(
+    injector,
+    new mockApiDataService(),
+    {
+      passThruUnknownUrl: true,
+      rootPath: ''
+    }
+  )
+}
diff --git a/ambari-logsearch/ambari-logsearch-web/yarn.lock b/ambari-logsearch/ambari-logsearch-web/yarn.lock
index 9eb5d04..66150e2 100644
--- a/ambari-logsearch/ambari-logsearch-web/yarn.lock
+++ b/ambari-logsearch/ambari-logsearch-web/yarn.lock
@@ -528,6 +528,10 @@ angular2-moment@^1.4.0:
   dependencies:
     moment "^2.16.0"
 
+angular2-take-until-destroy@^2.0.1:
+  version "2.0.1"
+  resolved "https://registry.yarnpkg.com/angular2-take-until-destroy/-/angular2-take-until-destroy-2.0.1.tgz#6b502a55f7859f0fca1a7d1357c472162ffad969"
+
 ansi-align@^2.0.0:
   version "2.0.0"
   resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f"
@@ -3321,6 +3325,10 @@ is-number@^2.0.2, is-number@^2.1.0:
   dependencies:
     kind-of "^3.0.2"
 
+is-number@^4.0.0:
+  version "4.0.0"
+  resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
+
 is-obj@^1.0.0:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
@@ -3732,6 +3740,10 @@ kind-of@^3.0.2, kind-of@^3.2.2:
   dependencies:
     is-buffer "^1.1.5"
 
+kind-of@^6.0.0:
+  version "6.0.2"
+  resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
+
 klaw@^1.0.0:
   version "1.3.1"
   resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
@@ -3954,6 +3966,10 @@ math-expression-evaluator@^1.2.14:
   version "1.2.17"
   resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac"
 
+math-random@^1.0.1:
+  version "1.0.1"
+  resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac"
+
 md5.js@^1.3.4:
   version "1.3.4"
   resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d"
@@ -5094,6 +5110,14 @@ randomatic@^1.1.3:
     is-number "^2.0.2"
     kind-of "^3.0.2"
 
+randomatic@^3.0.0:
+  version "3.0.0"
+  resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923"
+  dependencies:
+    is-number "^4.0.0"
+    kind-of "^6.0.0"
+    math-random "^1.0.1"
+
 randombytes@^2.0.0, randombytes@^2.0.1:
   version "2.0.5"
   resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.5.tgz#dc009a246b8d09a177b4b7a0ae77bc570f4b1b79"

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.

[ambari] 01/03: AMBARI-22842. Provide field / component UI metadata from backend

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

oleewere pushed a commit to branch branch-feature-AMBARI-22842
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 794bc557e4910815a51b27c8dab015beda6ea4db
Author: Oliver Szabo <ol...@gmail.com>
AuthorDate: Wed Jan 24 17:47:32 2018 +0100

    AMBARI-22842. Provide field / component UI metadata from backend
---
 ambari-logsearch/.gitignore                        |  10 +
 .../api/model/inputconfig/InputDescriptor.java     |   2 +
 .../inputconfig/impl/InputDescriptorImpl.java      |  20 +-
 .../ambari/logfeeder/plugin/filter/Filter.java     |   2 +-
 .../ambari/logfeeder/plugin/input/Input.java       |   2 +-
 .../ambari/logfeeder/output/OutputManagerImpl.java |   3 +
 .../shipper-conf/input.config-sample.json          |   3 +-
 .../configsets/hadoop_logs/conf/managed-schema     |   1 +
 .../common/HadoopServiceConfigHelper.java          |  80 ----
 .../logsearch/common/LabelFallbackHandler.java     | 110 +++++
 .../logsearch/common/LogSearchConstants.java       |  22 +
 .../logsearch/common/PropertiesSplitter.java       |  93 ++++
 .../ambari/logsearch/conf/UIMappingConfig.java     | 431 ++++++++++++++++++
 .../apache/ambari/logsearch/doc/DocConstants.java  |   1 -
 .../ambari/logsearch/manager/AuditLogsManager.java |  75 +++-
 .../logsearch/manager/ServiceLogsManager.java      |  55 ++-
 .../metadata/AuditFieldMetadataResponse.java}      |  41 +-
 .../model/metadata/ComponentMetadata.java}         |  44 +-
 .../logsearch/model/metadata/FieldMetadata.java}   |  59 ++-
 .../logsearch/model/metadata/Filterable.java}      |  33 +-
 .../logsearch/model/metadata/Groupable.java}       |  33 +-
 .../logsearch/model/metadata/Labelable.java}       |  33 +-
 .../ambari/logsearch/model/metadata/Metadata.java} |  44 +-
 .../metadata/ServiceComponentMetadataWrapper.java} |  45 +-
 .../ambari/logsearch/model/metadata/Visible.java}  |  33 +-
 .../logsearch/model/response/ServiceLogData.java   |   5 +
 .../ambari/logsearch/rest/AuditLogsResource.java   |  15 +-
 .../ambari/logsearch/rest/ServiceLogsResource.java |  17 +-
 .../logsearch/solr/ResponseDataGenerator.java      |  73 ++-
 .../ambari/logsearch/solr/SolrConstants.java       |   1 +
 .../logsearch/solr/model/SolrServiceLogData.java   |  13 +
 .../src/main/resources/HadoopServiceConfig.json    | 488 ---------------------
 .../logsearch/common/LabelFallbackHandlerTest.java | 129 ++++++
 .../logsearch/common/PropertiesSplitterTest.java   | 123 ++++++
 .../src/test/resources/HadoopServiceConfig.json    |  17 -
 .../shipper-conf/input.config-ambari.json          |  18 +-
 .../logfeeder/shipper-conf/input.config-hst.json   |   3 +-
 .../shipper-conf/input.config-secure_log.json      |   3 +-
 .../shipper-conf/input.config-system_message.json  |   3 +-
 .../shipper-conf/input.config-zookeeper.json       |   3 +-
 40 files changed, 1284 insertions(+), 902 deletions(-)

diff --git a/ambari-logsearch/.gitignore b/ambari-logsearch/.gitignore
new file mode 100644
index 0000000..7ea6a1f
--- /dev/null
+++ b/ambari-logsearch/.gitignore
@@ -0,0 +1,10 @@
+target
+.settings
+.classpath
+.project
+/bin/
+node_modules/
+logs/
+node/
+*.pid
+
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
index 82e9504..d3a43c1 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
@@ -49,4 +49,6 @@ public interface InputDescriptor {
   Long getCacheDedupInterval();
 
   Boolean isEnabled();
+
+  String getGroup();
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-zookeeper/src/main/java/org/apache/ambari/logsearch/config/zookeeper/model/inputconfig/impl/InputDescriptorImpl.java b/ambari-logsearch/ambari-logsearch-config-zookeeper/src/main/java/org/apache/ambari/logsearch/config/zookeeper/model/inputconfig/impl/InputDescriptorImpl.java
index 2e3405d..0994b9f 100644
--- a/ambari-logsearch/ambari-logsearch-config-zookeeper/src/main/java/org/apache/ambari/logsearch/config/zookeeper/model/inputconfig/impl/InputDescriptorImpl.java
+++ b/ambari-logsearch/ambari-logsearch-config-zookeeper/src/main/java/org/apache/ambari/logsearch/config/zookeeper/model/inputconfig/impl/InputDescriptorImpl.java
@@ -54,6 +54,15 @@ public abstract class InputDescriptorImpl implements InputDescriptor {
   private String rowtype;
 
   @ShipperConfigElementDescription(
+    path = "/input/[]/group",
+    type = "string",
+    description = "Group of the input type.",
+    examples = {"Ambari", "Yarn"}
+  )
+  @Expose
+  private String group;
+
+  @ShipperConfigElementDescription(
     path = "/input/[]/path",
     type = "string",
     description = "The path of the source, may contain '*' characters too.",
@@ -179,8 +188,6 @@ public abstract class InputDescriptorImpl implements InputDescriptor {
   @SerializedName("is_enabled")
   private Boolean isEnabled;
 
-  private Map<String, Object> allProperties;
-
   public String getType() {
     return type;
   }
@@ -292,4 +299,13 @@ public abstract class InputDescriptorImpl implements InputDescriptor {
   public void setIsEnabled(Boolean isEnabled) {
     this.isEnabled = isEnabled;
   }
+
+  @Override
+  public String getGroup() {
+    return this.group;
+  }
+
+  public void setGroup(String group) {
+    this.group = group;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/filter/Filter.java b/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/filter/Filter.java
index 9bf69b9..e2180d7 100644
--- a/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/filter/Filter.java
+++ b/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/filter/Filter.java
@@ -162,7 +162,7 @@ public abstract class Filter<PROP_TYPE extends LogFeederProperties> extends Conf
 
   @Override
   public boolean isEnabled() {
-    return filterDescriptor.isEnabled();
+    return filterDescriptor.isEnabled() != null ? filterDescriptor.isEnabled() : true;
   }
 
   @Override
diff --git a/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/input/Input.java b/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/input/Input.java
index e2158bc..368f7d5 100644
--- a/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/input/Input.java
+++ b/ambari-logsearch/ambari-logsearch-logfeeder-plugin-api/src/main/java/org/apache/ambari/logfeeder/plugin/input/Input.java
@@ -154,7 +154,7 @@ public abstract class Input<PROP_TYPE extends LogFeederProperties, INPUT_MARKER
 
   @Override
   public boolean isEnabled() {
-    return inputDescriptor.isEnabled();
+    return inputDescriptor.isEnabled() != null ? inputDescriptor.isEnabled() : true;
   }
 
   @Override
diff --git a/ambari-logsearch/ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/output/OutputManagerImpl.java b/ambari-logsearch/ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/output/OutputManagerImpl.java
index 47135b6..e7e0eef 100644
--- a/ambari-logsearch/ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/output/OutputManagerImpl.java
+++ b/ambari-logsearch/ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/output/OutputManagerImpl.java
@@ -149,6 +149,9 @@ public class OutputManagerImpl extends OutputManager {
     if (jsonObj.get("event_count") == null) {
       jsonObj.put("event_count", new Integer(1));
     }
+    if (StringUtils.isNotBlank(input.getInputDescriptor().getGroup())) {
+      jsonObj.put("group", input.getInputDescriptor().getGroup());
+    }
     if (inputMarker.getAllProperties().containsKey("line_number") &&
       (Integer) inputMarker.getAllProperties().get("line_number") > 0) {
       jsonObj.put("logfile_line_number", inputMarker.getAllProperties().get("line_number"));
diff --git a/ambari-logsearch/ambari-logsearch-logfeeder/src/main/resources/log-samples/shipper-conf/input.config-sample.json b/ambari-logsearch/ambari-logsearch-logfeeder/src/main/resources/log-samples/shipper-conf/input.config-sample.json
index e54c974..3951e4b 100644
--- a/ambari-logsearch/ambari-logsearch-logfeeder/src/main/resources/log-samples/shipper-conf/input.config-sample.json
+++ b/ambari-logsearch/ambari-logsearch-logfeeder/src/main/resources/log-samples/shipper-conf/input.config-sample.json
@@ -3,7 +3,8 @@
     {
       "type": "service_sample",
       "rowtype": "service",
-      "path": "target/classes/log-samples/logs/service_sample.txt"
+      "path": "target/classes/log-samples/logs/service_sample.txt",
+      "group": "Ambari"
     }
   ],
   "filter": [
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema b/ambari-logsearch/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
index 93b2d6b..9fb0cf7 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/configsets/hadoop_logs/conf/managed-schema
@@ -110,6 +110,7 @@
   <field name="text" type="text_std_token_lower_case" multiValued="true" indexed="true" stored="false"/>
   <field name="thread_name" type="key_lower_case" multiValued="false" omitNorms="false"/>
   <field name="type" type="key_lower_case" multiValued="false"/>
+  <field name="group" type="string" multiValued="false" docValues="true" stored="true"/>
   
   <dynamicField name='ngram_*' type="n_gram" multiValued="false" stored="false"/>
   <dynamicField name='std_*' type="text_std_token_lower_case" multiValued="false" stored="false"/>
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/HadoopServiceConfigHelper.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/HadoopServiceConfigHelper.java
deleted file mode 100644
index 0e2087f..0000000
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/HadoopServiceConfigHelper.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- * http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.ambari.logsearch.common;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.Set;
-import java.util.TreeSet;
-
-import org.apache.ambari.logsearch.util.JSONUtil;
-import org.apache.commons.io.FileUtils;
-import org.apache.log4j.Logger;
-import org.codehaus.jettison.json.JSONArray;
-import org.codehaus.jettison.json.JSONException;
-import org.codehaus.jettison.json.JSONObject;
-
-import com.google.gson.JsonParseException;
-
-public class HadoopServiceConfigHelper {
-  private static final Logger LOG = Logger.getLogger(HadoopServiceConfigHelper.class);
-  
-  public static String getHadoopServiceConfigJSON() {
-    String fileContent = null;
-
-    try {
-      ClassLoader classLoader = HadoopServiceConfigHelper.class.getClassLoader();
-      File file = new File(classLoader.getResource("HadoopServiceConfig.json").getFile());
-      fileContent = FileUtils.readFileToString(file);
-    } catch (IOException e) {
-      LOG.error("Unable to read HadoopServiceConfig.json", e);
-    }
-
-    return JSONUtil.isJSONValid(fileContent) ? fileContent : null;
-  }
-  
-  @SuppressWarnings("unchecked")
-  public static Set<String> getAllLogIds() {
-    Set<String> logIds = new TreeSet<>();
-    
-    String key = null;
-    JSONArray componentArray = null;
-    try {
-      String hadoopServiceConfigJSON = getHadoopServiceConfigJSON();
-      JSONObject hadoopServiceJsonObject = new JSONObject(hadoopServiceConfigJSON).getJSONObject("service");
-      Iterator<String> hadoopSerivceKeys = hadoopServiceJsonObject.keys();
-      while (hadoopSerivceKeys.hasNext()) {
-        key = hadoopSerivceKeys.next();
-        componentArray = hadoopServiceJsonObject.getJSONObject(key).getJSONArray("components");
-        for (int i = 0; i < componentArray.length(); i++) {
-          JSONObject componentJsonObject = (JSONObject) componentArray.get(i);
-          String logId = componentJsonObject.getString("name");
-          logIds.add(logId);
-        }
-      }
-    } catch (JsonParseException | JSONException je) {
-      LOG.error("Error parsing JSON. key=" + key + ", componentArray=" + componentArray, je);
-      return null;
-    }
-
-    return logIds;
-  }
-}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LabelFallbackHandler.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LabelFallbackHandler.java
new file mode 100644
index 0000000..5549343
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LabelFallbackHandler.java
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ambari.logsearch.common;
+
+import org.apache.ambari.logsearch.conf.UIMappingConfig;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.text.WordUtils;
+
+import javax.inject.Inject;
+import javax.inject.Named;
+import java.util.List;
+
+@Named
+public class LabelFallbackHandler {
+
+  private final UIMappingConfig uiMappingConfig;
+
+  @Inject
+  public LabelFallbackHandler(UIMappingConfig uiMappingConfig) {
+    this.uiMappingConfig = uiMappingConfig;
+  }
+
+  public String fallbackIfRequired(String field, String label, boolean replaceUnderscore,
+                                   boolean replaceUppercaseInWord, boolean capitalizeAll) {
+    if (isEnabled() && StringUtils.isBlank(label)) {
+      return fallback(field,replaceUnderscore, replaceUppercaseInWord, capitalizeAll);
+    }
+    return label;
+  }
+
+  public String fallbackIfRequired(String field, String label, boolean replaceUnderscore,
+                                   boolean replaceUppercaseInWord, boolean capitalizeAll, List<String> prefixesToRemove) {
+    if (isEnabled() && StringUtils.isBlank(label)) {
+      return fallback(field,replaceUnderscore, replaceUppercaseInWord, capitalizeAll, prefixesToRemove);
+    }
+    return label;
+  }
+
+  public String fallback(String field, boolean replaceUnderscore, boolean replaceUppercaseInWord, boolean capitalizeAll) {
+    String result = null;
+    if (StringUtils.isNotBlank(field)) {
+     if (replaceUppercaseInWord) {
+       result = capitalize(deCamelCase(field), false);
+     }
+     if (replaceUnderscore) {
+       result = capitalize(deUnderScore(result != null ? result : field), capitalizeAll);
+     }
+    }
+    return result;
+  }
+
+  public String fallback(String field, boolean replaceUnderscore, boolean replaceUppercaseInWord, boolean capitalizeAll, List<String> prefixesToRemove) {
+    String fieldWithoutPrefix =  null;
+    if (!CollectionUtils.isEmpty(prefixesToRemove)) {
+      for (String prefix : prefixesToRemove) {
+        if (StringUtils.isNotBlank(field) && field.startsWith(prefix)) {
+          fieldWithoutPrefix = field.substring(prefix.length());
+        }
+      }
+    }
+    return fallback(fieldWithoutPrefix != null ? fieldWithoutPrefix : field, replaceUnderscore, replaceUppercaseInWord, capitalizeAll);
+  }
+
+  private String deUnderScore(String input) {
+    return input.replaceAll("_", " ");
+  }
+
+  private String capitalize(String input, boolean capitalizeAll) {
+    if (capitalizeAll) {
+      return WordUtils.capitalizeFully(input);
+    } else {
+      Character firstLetter = Character.toUpperCase(input.charAt(0));
+      return input.length() > 1 ? firstLetter + input.substring(1) : firstLetter.toString();
+    }
+  }
+
+  private String deCamelCase(String input) {
+    StringBuilder result = new StringBuilder();
+    for(int i=0 ; i < input.length() ; i++) {
+      char c = input.charAt(i);
+      if(i != 0 && Character.isUpperCase(c)) {
+        result.append(' ');
+      }
+      result.append(c);
+    }
+    return result.toString();
+  }
+
+  public boolean isEnabled() {
+    return uiMappingConfig.isLabelFallbackEnabled();
+  }
+
+}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LogSearchConstants.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LogSearchConstants.java
index 4722b79..82dfcd5 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LogSearchConstants.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/LogSearchConstants.java
@@ -65,6 +65,28 @@ public class LogSearchConstants {
   public static final String SHIPPER_CONFIG_API_KEY = "metadata_patterns";
   public static final String AUTH_FEATURE_KEY = "auth";
 
+  // service  field / component label defaults
+  public static final String SERVICE_GROUP_LABELS_DEFAULTS = "";
+  public static final String SERVICE_COMPONENT_LABELS_DEFAULTS = "";
+  public static final String SERVICE_FIELD_LABELS_DEFAULTS = "log_message:Message,type:Component,logtime:Log Time,thread_name:Thread";
+  public static final String SERVICE_FIELD_VISIBLE_DEFAULTS = "log_message,level,logtime,type";
+  public static final String SERVICE_FIELD_EXCLUDES_DEFAULTS = "id,tags,text,message,seq_num,case_id,bundle_id,rowtype,event_count";
+  public static final String SERVICE_FIELD_FILTERABLE_EXLUDE_DEFAULTS = "";
+  public static final String SERVICE_FIELD_FALLBACK_PREFIX_DEFAULTS = "ws_,sdi_";
+
+  // audit  field / component label defaults
+  public static final String AUDIT_COMPONENT_LABELS_DEFAULTS = "ambari:Ambari,hdfs:Hdfs,RangerAudit:Ranger";
+  public static final String AUDIT_FIELD_LABELS_DEFAULTS = "";
+  public static final String AUDIT_FIELD_COMMON_LABELS_DEFAULTS = "enforcer:Access Enforcer,access:Access Type,cliIP:Client Ip,cliType:Client Type," +
+    "dst:DST,evtTime:Event Time,ip:IP,logtime:Log Time,sess:Session,ugi:UGI,reqUser:User";
+  public static final String AUDIT_FIELD_VISIBLE_DEFAULTS = "";
+  public static final String AUDIT_FIELD_VISIBLE_COMMON_DEFAULTS = "access,cliIP,evtTime,repo,resource,result,reqUser";
+  public static final String AUDIT_FIELD_EXCLUDES_DEFAULTS = "";
+  public static final String AUDIT_FIELD_EXCLUDES_COMMON_DEFAULTS = "tags,tags_str,seq_num";
+  public static final String AUDIT_FIELD_FILTERABLE_EXCLUDES_DEFAULTS = "";
+  public static final String AUDIT_FIELD_FILTERABLE_EXCLUDES_COMMON_DEFAULTS = "";
+  public static final String AUDIT_FIELD_FALLBACK_PREFIX_DEFAULTS = "ws_,std_";
+
   //Facet Constant
   public static final String FACET_FIELD = "facet.field";
   public static final String FACET_PIVOT = "facet.pivot";
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/PropertiesSplitter.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/PropertiesSplitter.java
new file mode 100644
index 0000000..57e33e9
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/common/PropertiesSplitter.java
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ambari.logsearch.common;
+
+import com.google.common.base.Splitter;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.lang.StringUtils;
+
+import javax.inject.Named;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Named
+public class PropertiesSplitter {
+
+  public List<String> parseList(String listStr) {
+    return parseList(listStr, ",");
+  }
+
+  public Map<String, String> parseMap(String mapStr) {
+    return parseMap(mapStr, ",", ":");
+  }
+
+  private List<String> parseList(String listStr, String separator) {
+    return StringUtils.isNotBlank(listStr) ? Splitter.on(separator).splitToList(listStr) : new ArrayList<>();
+  }
+
+  public Map<String, String> parseMap(String mapStr, String separator, String keyValueSeparator) {
+    Map<String, String> resultMap = new HashMap<>();
+    if (StringUtils.isNotBlank(mapStr)) {
+      List<String> keyValueList = parseList(mapStr, separator);
+      if (!keyValueList.isEmpty()) {
+        for (String keyValueElement : keyValueList) {
+          if (StringUtils.isNotEmpty(keyValueElement)) {
+            List<String> keyValueElementList = parseList(keyValueElement, keyValueSeparator);
+            if (!CollectionUtils.isEmpty(keyValueElementList) && keyValueElementList.size() >= 2
+              && StringUtils.isNotBlank(keyValueElementList.get(0))) {
+              resultMap.put(keyValueElementList.get(0), keyValueElementList.get(1));
+            }
+          }
+        }
+      }
+    }
+    return resultMap;
+  }
+
+  public Map<String, Map<String, String>> parseMapInMap(String mapInMapStr) {
+    Map<String, Map<String, String>> mapInMap = new HashMap<>();
+    Map<String, String> outerMap = parseMap(mapInMapStr, ";", "#");
+    if (!outerMap.isEmpty()) {
+      for (Map.Entry<String, String> entry : outerMap.entrySet()) {
+        Map<String, String> keyValueMap = parseMap(entry.getValue());
+        if (!keyValueMap.isEmpty()) {
+          mapInMap.put(entry.getKey(), keyValueMap);
+        }
+      }
+    }
+    return mapInMap;
+  }
+
+  public Map<String, List<String>> parseListInMap(String listInMapStr) {
+    return parseListInMap(listInMapStr, ";", ":", ",");
+  }
+
+  public Map<String, List<String>> parseListInMap(String listInMapStr, String mapSeparator, String keyValueSeparator, String listSeparator) {
+    Map<String, List<String>> listInMap = new HashMap<>();
+    Map<String, String> typeKeyValueMap = parseMap(listInMapStr, mapSeparator, keyValueSeparator);
+    for (Map.Entry<String, String> entry : typeKeyValueMap.entrySet()) {
+      List<String> valuesList = parseList(entry.getValue(), listSeparator);
+      listInMap.put(entry.getKey(), valuesList);
+    }
+    return listInMap;
+  }
+
+}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/conf/UIMappingConfig.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/conf/UIMappingConfig.java
new file mode 100644
index 0000000..57abe16
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/conf/UIMappingConfig.java
@@ -0,0 +1,431 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ambari.logsearch.conf;
+
+import org.apache.ambari.logsearch.common.LogSearchConstants;
+import org.apache.ambari.logsearch.config.api.LogSearchPropertyDescription;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Configuration;
+
+import javax.annotation.PostConstruct;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_COMPONENT_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_COMMON_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_EXCLUDES_COMMON_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_EXCLUDES_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_FALLBACK_PREFIX_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_FILTERABLE_EXCLUDES_COMMON_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_FILTERABLE_EXCLUDES_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_VISIBLE_COMMON_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.AUDIT_FIELD_VISIBLE_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.LOGSEARCH_PROPERTIES_FILE;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_FIELD_FALLBACK_PREFIX_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_FIELD_FILTERABLE_EXLUDE_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_GROUP_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_COMPONENT_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_FIELD_LABELS_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_FIELD_EXCLUDES_DEFAULTS;
+import static org.apache.ambari.logsearch.common.LogSearchConstants.SERVICE_FIELD_VISIBLE_DEFAULTS;
+
+@Configuration
+public class UIMappingConfig {
+
+  @Value("#{propertiesSplitter.parseMap('${logsearch.web.service_logs.group.labels:" + SERVICE_GROUP_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.group.labels",
+    description = "Map of serivce group labels",
+    examples = {"ambari:Ambari,yarn:YARN"},
+    defaultValue = SERVICE_GROUP_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, String> serviceGroupLabels;
+
+  @Value("#{propertiesSplitter.parseMap('${logsearch.web.service_logs.component.labels:" + SERVICE_COMPONENT_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.component.labels",
+    description = "Map of serivce component labels.",
+    examples = {"ambari_agent:Ambari Agent,ambari_server:Ambari Servcer"},
+    defaultValue = SERVICE_COMPONENT_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, String> serviceComponentLabels;
+
+  @Value("#{propertiesSplitter.parseMap('${logsearch.web.service_logs.field.labels:" + SERVICE_FIELD_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.field.labels",
+    description = "Map of serivce field labels.",
+    examples = {"log_message:Message,ip:IP Address"},
+    defaultValue = SERVICE_FIELD_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, String> serviceFieldLabels;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.service_logs.field.excludes:" + SERVICE_FIELD_EXCLUDES_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.field.excludes",
+    description = "List of fields that will be excluded from metadata schema responses.",
+    examples = {"seq_num,tag"},
+    defaultValue = SERVICE_FIELD_EXCLUDES_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> serviceFieldExcludeList;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.service_logs.field.visible:" + SERVICE_FIELD_VISIBLE_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.field.visible",
+    description = "List of fields that will be displayed by default on the UI.",
+    examples = {"log_message,path,logtime"},
+    defaultValue = SERVICE_FIELD_VISIBLE_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> serviceFieldVisibleList;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.service_logs.field.filterable.excludes:" + SERVICE_FIELD_FILTERABLE_EXLUDE_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.service_logs.field.filterable.excludes",
+    description = "List of fields that will be excluded from filter selection on the UI.",
+    examples = {"path,method,logger_name"},
+    defaultValue = SERVICE_FIELD_FILTERABLE_EXLUDE_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> serviceFieldFilterableExcludesList;
+
+  @Value("#{propertiesSplitter.parseMap('${logsearch.web.audit_logs.component.labels:" + AUDIT_COMPONENT_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.component.labels",
+    description = "Map of component component labels.",
+    examples = {"ambari:Ambari,RangerAudit:ranger"},
+    defaultValue = AUDIT_COMPONENT_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, String> auditComponentLabels;
+
+  @Value("#{propertiesSplitter.parseMapInMap('${logsearch.web.audit_logs.field.labels:" + AUDIT_FIELD_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.labels",
+    description = "Map of fields (key-value pairs) labels for different component types.",
+    examples = {"ambari#reqUser:Ambari User,ws_response:Response;RangerAudit#reqUser:Req User"},
+    defaultValue = AUDIT_FIELD_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, Map<String, String>> auditFieldLabels;
+
+  @Value("#{propertiesSplitter.parseMap('${logsearch.web.audit_logs.field.common.labels:" + AUDIT_FIELD_COMMON_LABELS_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.common.labels",
+    description = "Map of fields labels for audits (common).",
+    examples = {"reqUser:Req User,resp:Response"},
+    defaultValue = AUDIT_FIELD_COMMON_LABELS_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, String> auditFieldCommonLabels;
+
+  @Value("#{propertiesSplitter.parseListInMap('${logsearch.web.audit_logs.field.visible:" + AUDIT_FIELD_VISIBLE_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.visible",
+    description = "List of fields that will be displayed by default on the UI for different audit components.",
+    examples = {"ambari:reqUser,resp;RangerAudit:reqUser,repo"},
+    defaultValue = AUDIT_FIELD_VISIBLE_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, List<String>> auditFieldVisibleleMap;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.audit_logs.field.common.visible:" + AUDIT_FIELD_VISIBLE_COMMON_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.common.visible",
+    description = "List of fields that will be displayed by default on the UI for every audit components.",
+    examples = {"reqUser,resp"},
+    defaultValue = AUDIT_FIELD_VISIBLE_COMMON_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> auditFieldCommonVisibleList;
+
+  @Value("#{propertiesSplitter.parseListInMap('${logsearch.web.audit_logs.field.excludes:" + AUDIT_FIELD_EXCLUDES_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.excludes",
+    description = "List of fields that will be excluded from metadata schema responses for different audit components.",
+    examples = {"ambari:reqUser,resp,hdfs:ws_user,ws_role"},
+    defaultValue = AUDIT_FIELD_EXCLUDES_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, List<String>> auditFieldExcludeMap;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.audit_logs.field.common.excludes:" + AUDIT_FIELD_EXCLUDES_COMMON_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.common.excludes",
+    description = "List of fields that will be excluded from metadata schema responses for every audit components.",
+    examples = {"reqUser,resp,tag_str"},
+    defaultValue = AUDIT_FIELD_EXCLUDES_COMMON_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> auditFieldCommonExcludeList;
+
+  @Value("#{propertiesSplitter.parseListInMap('${logsearch.web.audit_logs.field.filterable.excludes:" + AUDIT_FIELD_FILTERABLE_EXCLUDES_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.filterable.excludes",
+    description = "List of fields that will be excluded from filter selection on the UI for different audit components.",
+    examples = {"ambari:tag_str,resp,tag_str;RangerAudit:path,ip"},
+    defaultValue = AUDIT_FIELD_FILTERABLE_EXCLUDES_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private Map<String, List<String>> auditFieldFilterableExcludeMap;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.audit_logs.field.common.filterable.common.excludes:" + AUDIT_FIELD_FILTERABLE_EXCLUDES_COMMON_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.common.filterable.common.excludes",
+    description = "List of fields that will be excluded from filter selection on the UI for every audit components.",
+    examples = {"tag_str,resp,tag_str"},
+    defaultValue = AUDIT_FIELD_FILTERABLE_EXCLUDES_COMMON_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> auditFieldCommonFilterableExcludeList;
+
+  @Value("${logsearch.web.labels.fallback.enabled:true}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.audit_logs.field.filterable.excludes",
+    description = "Enable label fallback. (replace _ with spaces and capitalize properly)",
+    examples = {"false"},
+    defaultValue = "true",
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private boolean labelFallbackEnabled;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.labels.service_logs.field.fallback.prefixes:" + SERVICE_FIELD_FALLBACK_PREFIX_DEFAULTS +"}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.labels.service_logs.field.fallback.prefixes",
+    description = "List of prefixes that should be removed during fallback of service field labels.",
+    examples = {"ws_,std_,sdi_"},
+    defaultValue = SERVICE_FIELD_FALLBACK_PREFIX_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> serviceFieldFallbackPrefixes;
+
+  @Value("#{propertiesSplitter.parseList('${logsearch.web.labels.service_logs.field.fallback.prefixes:" + AUDIT_FIELD_FALLBACK_PREFIX_DEFAULTS + "}')}")
+  @LogSearchPropertyDescription(
+    name = "logsearch.web.labels.service_logs.field.fallback.prefixes",
+    description = "List of prefixes that should be removed during fallback of audit field labels.",
+    examples = {"ws_,std_,sdi_"},
+    defaultValue = AUDIT_FIELD_FALLBACK_PREFIX_DEFAULTS,
+    sources = {LOGSEARCH_PROPERTIES_FILE}
+  )
+  private List<String> auditFieldFallbackPrefixes;
+
+  private final Map<String, Map<String, String>> mergedAuditFieldLabelMap = new HashMap<>();
+
+  private final Map<String, List<String>> mergedAuditFieldVisibleMap = new HashMap<>();
+
+  private final Map<String, List<String>> mergedAuditFieldExcludeMap = new HashMap<>();
+
+  private final Map<String, List<String>> mergedAuditFieldFilterableExcludesMap = new HashMap<>();
+
+  public Map<String, String> getServiceGroupLabels() {
+    return serviceGroupLabels;
+  }
+
+  public void setServiceGroupLabels(Map<String, String> serviceGroupLabels) {
+    this.serviceGroupLabels = serviceGroupLabels;
+  }
+
+  public Map<String, String> getServiceComponentLabels() {
+    return serviceComponentLabels;
+  }
+
+  public void setServiceComponentLabels(Map<String, String> serviceComponentLabels) {
+    this.serviceComponentLabels = serviceComponentLabels;
+  }
+
+  public Map<String, String> getAuditComponentLabels() {
+    return auditComponentLabels;
+  }
+
+  public void setAuditComponentLabels(Map<String, String> auditComponentLabels) {
+    this.auditComponentLabels = auditComponentLabels;
+  }
+
+  public Map<String, String> getServiceFieldLabels() {
+    return serviceFieldLabels;
+  }
+
+  public void setServiceFieldLabels(Map<String, String> serviceFieldLabels) {
+    this.serviceFieldLabels = serviceFieldLabels;
+  }
+
+  public Map<String, Map<String, String>> getAuditFieldLabels() {
+    return auditFieldLabels;
+  }
+
+  public void setAuditFieldLabels(Map<String, Map<String, String>> auditFieldLabels) {
+    this.auditFieldLabels = auditFieldLabels;
+  }
+
+  public List<String> getServiceFieldExcludeList() {
+    return serviceFieldExcludeList;
+  }
+
+  public void setServiceFieldExcludeList(List<String> serviceFieldExcludeList) {
+    this.serviceFieldExcludeList = serviceFieldExcludeList;
+  }
+
+  public List<String> getServiceFieldVisibleList() {
+    return serviceFieldVisibleList;
+  }
+
+  public void setServiceFieldVisibleList(List<String> serviceFieldVisibleList) {
+    this.serviceFieldVisibleList = serviceFieldVisibleList;
+  }
+
+  public Map<String, List<String>> getAuditFieldVisibleleMap() {
+    return auditFieldVisibleleMap;
+  }
+
+  public void setAuditFieldVisibleleMap(Map<String, List<String>> auditFieldVisibleleMap) {
+    this.auditFieldVisibleleMap = auditFieldVisibleleMap;
+  }
+
+  public List<String> getAuditFieldCommonVisibleList() {
+    return auditFieldCommonVisibleList;
+  }
+
+  public void setAuditFieldCommonVisibleList(List<String> auditFieldCommonVisibleList) {
+    this.auditFieldCommonVisibleList = auditFieldCommonVisibleList;
+  }
+
+  public Map<String, List<String>> getAuditFieldExcludeMap() {
+    return auditFieldExcludeMap;
+  }
+
+  public void setAuditFieldExcludeMap(Map<String, List<String>> auditFieldExcludeMap) {
+    this.auditFieldExcludeMap = auditFieldExcludeMap;
+  }
+
+  public List<String> getAuditFieldCommonExcludeList() {
+    return auditFieldCommonExcludeList;
+  }
+
+  public void setAuditFieldCommonExcludeList(List<String> auditFieldCommonExcludeList) {
+    this.auditFieldCommonExcludeList = auditFieldCommonExcludeList;
+  }
+
+  public Map<String, String> getAuditFieldCommonLabels() {
+    return auditFieldCommonLabels;
+  }
+
+  public void setAuditFieldCommonLabels(Map<String, String> auditFieldCommonLabels) {
+    this.auditFieldCommonLabels = auditFieldCommonLabels;
+  }
+
+  public boolean isLabelFallbackEnabled() {
+    return labelFallbackEnabled;
+  }
+
+  public void setLabelFallbackEnabled(boolean labelFallbackEnabled) {
+    this.labelFallbackEnabled = labelFallbackEnabled;
+  }
+
+  public List<String> getServiceFieldFallbackPrefixes() {
+    return serviceFieldFallbackPrefixes;
+  }
+
+  public void setServiceFieldFallbackPrefixes(List<String> serviceFieldFallbackPrefixes) {
+    this.serviceFieldFallbackPrefixes = serviceFieldFallbackPrefixes;
+  }
+
+  public List<String> getAuditFieldFallbackPrefixes() {
+    return auditFieldFallbackPrefixes;
+  }
+
+  public void setAuditFieldFallbackPrefixes(List<String> auditFieldFallbackPrefixes) {
+    this.auditFieldFallbackPrefixes = auditFieldFallbackPrefixes;
+  }
+
+  public List<String> getServiceFieldFilterableExcludesList() {
+    return serviceFieldFilterableExcludesList;
+  }
+
+  public void setServiceFieldFilterableExcludesList(List<String> serviceFieldFilterableExcludesList) {
+    this.serviceFieldFilterableExcludesList = serviceFieldFilterableExcludesList;
+  }
+
+  public Map<String, List<String>> getMergedAuditFieldVisibleMap() {
+    return mergedAuditFieldVisibleMap;
+  }
+
+  public Map<String, List<String>> getMergedAuditFieldExcludeMap() {
+    return mergedAuditFieldExcludeMap;
+  }
+
+  public Map<String, Map<String, String>> getMergedAuditFieldLabelMap() {
+    return mergedAuditFieldLabelMap;
+  }
+
+  public Map<String, List<String>> getMergedAuditFieldFilterableExcludesMap() {
+    return mergedAuditFieldFilterableExcludesMap;
+  }
+
+  @PostConstruct
+  public void init() {
+    mergeCommonAndSpecMapValues(auditFieldLabels, auditFieldCommonLabels, mergedAuditFieldLabelMap);
+    mergeCommonAndSpecListValues(auditFieldVisibleleMap, auditFieldCommonVisibleList, mergedAuditFieldVisibleMap);
+    mergeCommonAndSpecListValues(auditFieldExcludeMap, auditFieldCommonExcludeList, mergedAuditFieldExcludeMap);
+    mergeCommonAndSpecListValues(auditFieldFilterableExcludeMap, auditFieldCommonFilterableExcludeList, mergedAuditFieldFilterableExcludesMap);
+  }
+
+  private void mergeCommonAndSpecListValues(Map<String, List<String>> specMap, List<String> commonList,
+                                            Map<String, List<String>> mergedMap) {
+    Set<String> componentFilterableKeys = specMap.keySet();
+    for (String component : componentFilterableKeys) {
+      List<String> specAuditDataList = specMap.get(component);
+      List<String> mergedDataList = new ArrayList<>();
+      if (specAuditDataList != null) {
+        mergedDataList.addAll(specAuditDataList);
+        for (String commonData : commonList) {
+          if (!specAuditDataList.contains(commonData)) {
+            mergedDataList.add(commonData);
+          }
+        }
+        mergedMap.put(component, mergedDataList);
+      }
+    }
+  }
+
+  private void mergeCommonAndSpecMapValues(Map<String, Map<String, String>> specMap, Map<String, String> commonMap,
+                                           Map<String, Map<String, String>> mergedMap) {
+    Set<String> componentFilterableKeys = specMap.keySet();
+    for (String component : componentFilterableKeys) {
+      Map<String, String> specAuditDataMap = specMap.get(component);
+      Map<String, String> mergedAuditDataMap = new HashMap<>();
+      if (specAuditDataMap != null) {
+        mergedAuditDataMap.putAll(specAuditDataMap);
+        for (Map.Entry<String, String> entry : commonMap.entrySet()) {
+          if (!specAuditDataMap.containsKey(entry.getKey())) {
+            mergedAuditDataMap.put(entry.getKey(), entry.getValue());
+          }
+        }
+        mergedMap.put(component, mergedAuditDataMap);
+      }
+    }
+  }
+
+}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/doc/DocConstants.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/doc/DocConstants.java
index 0563d79..b0fdeb4 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/doc/DocConstants.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/doc/DocConstants.java
@@ -95,7 +95,6 @@ public class DocConstants {
     public static final String GET_ANY_GRAPH_COUNT_DATA_OD = "Get the data generic enough to use for graph plots (yAzis is always count)";
     public static final String GET_HOST_LIST_BY_COMPONENT_OD = "Get host list of components";
     public static final String GET_SERVICE_LOGS_SCHEMA_FIELD_NAME_OD = "Get service logs schema fields";
-    public static final String GET_HADOOP_SERVICE_CONFIG_JSON_OD = "Get the json having meta data of services supported by logsearch";
     public static final String GET_AFTER_BEFORE_LOGS_OD = "Preview feature data";
     public static final String REQUEST_CANCEL = "Cancel an ongoing solr request";
     public static final String GET_HOST_LOGFILES_OD = "Get the log files of the components of a host";
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/AuditLogsManager.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/AuditLogsManager.java
index 4f3fcbb..412366d 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/AuditLogsManager.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/AuditLogsManager.java
@@ -40,8 +40,12 @@ import freemarker.template.TemplateException;
 import org.apache.ambari.logsearch.common.LogType;
 import org.apache.ambari.logsearch.common.MessageEnums;
 import org.apache.ambari.logsearch.common.StatusMessage;
+import org.apache.ambari.logsearch.common.LabelFallbackHandler;
+import org.apache.ambari.logsearch.conf.UIMappingConfig;
 import org.apache.ambari.logsearch.dao.AuditSolrDao;
 import org.apache.ambari.logsearch.dao.SolrSchemaFieldDao;
+import org.apache.ambari.logsearch.model.metadata.AuditFieldMetadataResponse;
+import org.apache.ambari.logsearch.model.metadata.FieldMetadata;
 import org.apache.ambari.logsearch.model.request.impl.AuditBarGraphRequest;
 import org.apache.ambari.logsearch.model.request.impl.AuditComponentRequest;
 import org.apache.ambari.logsearch.model.request.impl.AuditLogRequest;
@@ -51,7 +55,6 @@ import org.apache.ambari.logsearch.model.request.impl.UserExportRequest;
 import org.apache.ambari.logsearch.model.response.AuditLogData;
 import org.apache.ambari.logsearch.model.response.AuditLogResponse;
 import org.apache.ambari.logsearch.model.response.BarGraphDataListResponse;
-import org.apache.ambari.logsearch.model.response.GroupListResponse;
 import org.apache.ambari.logsearch.model.response.LogData;
 import org.apache.ambari.logsearch.solr.ResponseDataGenerator;
 import org.apache.ambari.logsearch.solr.SolrConstants;
@@ -59,6 +62,7 @@ import org.apache.ambari.logsearch.solr.model.SolrAuditLogData;
 import org.apache.ambari.logsearch.solr.model.SolrComponentTypeLogData;
 import org.apache.ambari.logsearch.util.DownloadUtil;
 import org.apache.ambari.logsearch.util.RESTErrorUtil;
+import org.apache.ambari.logsearch.util.SolrUtil;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.ambari.logsearch.common.VResponse;
 import org.apache.log4j.Logger;
@@ -89,6 +93,10 @@ public class AuditLogsManager extends ManagerBase<AuditLogData, AuditLogResponse
   private Configuration freemarkerConfiguration;
   @Inject
   private SolrSchemaFieldDao solrSchemaFieldDao;
+  @Inject
+  private UIMappingConfig uiMappingConfig;
+  @Inject
+  private LabelFallbackHandler labelFallbackHandler;
 
   public AuditLogResponse getLogs(AuditLogRequest request) {
     String event = "/audit/logs";
@@ -123,11 +131,14 @@ public class AuditLogsManager extends ManagerBase<AuditLogData, AuditLogResponse
     return docList;
   }
 
-  public GroupListResponse getAuditComponents(AuditComponentRequest request) {
-    GroupListResponse componentResponse = new GroupListResponse();
-    List<LogData> docList = getComponents(request);
-    componentResponse.setGroupList(docList);
-    return componentResponse;
+  public Map<String, String> getAuditComponents(String clusters) {
+    SolrQuery solrQuery = new SolrQuery();
+    solrQuery.setQuery("*:*");
+    solrQuery.setRows(0);
+    SolrUtil.setFacetField(solrQuery, AUDIT_COMPONENT);
+    QueryResponse queryResponse = auditSolrDao.process(solrQuery);
+    return responseDataGenerator.generateComponentMetadata(queryResponse, AUDIT_COMPONENT,
+      uiMappingConfig.getAuditComponentLabels());
   }
 
   public BarGraphDataListResponse getAuditBarGraphData(AuditBarGraphRequest request) {
@@ -142,8 +153,56 @@ public class AuditLogsManager extends ManagerBase<AuditLogData, AuditLogResponse
     return responseDataGenerator.generateSecondLevelBarGraphDataResponse(queryResponse, 0);
   }
 
-  public String getAuditLogsSchemaFieldsName() {
-    return convertObjToString(solrSchemaFieldDao.getSchemaFieldNameMap(LogType.AUDIT));
+  public AuditFieldMetadataResponse getAuditLogSchemaMetadata() {
+    Map<String, List<FieldMetadata>> overrides = new HashMap<>();
+    List<FieldMetadata> defaults = new ArrayList<>();
+
+    Map<String, String> schemaFieldsMap = solrSchemaFieldDao.getSchemaFieldNameMap(LogType.AUDIT);
+
+    Map<String, Map<String, String>> fieldLabelMap = uiMappingConfig.getMergedAuditFieldLabelMap();
+    Map<String, List<String>> fieldVisibleeMap = uiMappingConfig.getMergedAuditFieldVisibleMap();
+    Map<String, List<String>> fieldExcludeMap = uiMappingConfig.getMergedAuditFieldExcludeMap();
+    Map<String, List<String>> fieldFilterableExcludeMap = uiMappingConfig.getMergedAuditFieldFilterableExcludesMap();
+
+    Map<String, String> commonFieldLabels = uiMappingConfig.getAuditFieldCommonLabels();
+    List<String> commonFieldVisibleList = uiMappingConfig.getAuditFieldCommonVisibleList();
+    List<String> commonFieldExcludeList = uiMappingConfig.getAuditFieldCommonExcludeList();
+    List<String> commonFieldFilterableExcludeList = uiMappingConfig.getAuditFieldCommonExcludeList();
+
+    Map<String, String> componentLabels = uiMappingConfig.getAuditComponentLabels();
+
+    for (Map.Entry<String, String> component : componentLabels.entrySet()) {
+      String componentName = component.getKey();
+      List<FieldMetadata> auditComponentFieldMetadataList = new ArrayList<>();
+      for (Map.Entry<String, String> fieldEntry : schemaFieldsMap.entrySet()) {
+        String field = fieldEntry.getKey();
+        if (!fieldExcludeMap.containsKey(field) && !commonFieldExcludeList.contains(field)) {
+          String fieldLabel = fieldLabelMap.get(componentName) != null ? fieldLabelMap.get(componentName).get(field): null;
+          String fallbackedFieldLabel = labelFallbackHandler.fallbackIfRequired(field, fieldLabel,
+            true, true, true,
+            uiMappingConfig.getAuditFieldFallbackPrefixes());
+
+          Boolean excludeFromFilter = fieldFilterableExcludeMap.get(componentName) != null && fieldFilterableExcludeMap.get(componentName).contains(field);
+          Boolean visible = fieldVisibleeMap.get(componentName) != null && fieldVisibleeMap.get(componentName).contains(field);
+          auditComponentFieldMetadataList.add(new FieldMetadata(field, fallbackedFieldLabel, !excludeFromFilter, visible));
+        }
+        overrides.put(componentName, auditComponentFieldMetadataList);
+      }
+    }
+
+    for (Map.Entry<String, String> fieldEntry : schemaFieldsMap.entrySet()) {
+      String field = fieldEntry.getKey();
+      if (!commonFieldExcludeList.contains(field)) {
+        String fieldLabel = commonFieldLabels.get(field);
+        Boolean visible = commonFieldVisibleList.contains(field);
+        Boolean excludeFromFilter = commonFieldFilterableExcludeList.contains(field);
+        String fallbackedFieldLabel = labelFallbackHandler.fallbackIfRequired(field, fieldLabel,
+          true, true, true,
+          uiMappingConfig.getAuditFieldFallbackPrefixes());
+        defaults.add(new FieldMetadata(field, fallbackedFieldLabel, !excludeFromFilter, visible));
+      }
+    }
+    return new AuditFieldMetadataResponse(defaults, overrides);
   }
 
   public BarGraphDataListResponse getServiceLoad(AuditServiceLoadRequest request) {
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
index 061cc2c..d022b4d 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/manager/ServiceLogsManager.java
@@ -28,6 +28,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
+import java.util.stream.Collectors;
 
 import javax.inject.Inject;
 import javax.inject.Named;
@@ -40,13 +41,16 @@ import freemarker.template.Configuration;
 import freemarker.template.Template;
 import freemarker.template.TemplateException;
 
-import org.apache.ambari.logsearch.common.HadoopServiceConfigHelper;
+import org.apache.ambari.logsearch.common.LabelFallbackHandler;
 import org.apache.ambari.logsearch.common.LogSearchConstants;
 import org.apache.ambari.logsearch.common.LogType;
 import org.apache.ambari.logsearch.common.MessageEnums;
 import org.apache.ambari.logsearch.common.StatusMessage;
+import org.apache.ambari.logsearch.conf.UIMappingConfig;
 import org.apache.ambari.logsearch.dao.ServiceLogsSolrDao;
 import org.apache.ambari.logsearch.dao.SolrSchemaFieldDao;
+import org.apache.ambari.logsearch.model.metadata.FieldMetadata;
+import org.apache.ambari.logsearch.model.metadata.ServiceComponentMetadataWrapper;
 import org.apache.ambari.logsearch.model.request.impl.HostLogFilesRequest;
 import org.apache.ambari.logsearch.model.request.impl.ServiceAnyGraphRequest;
 import org.apache.ambari.logsearch.model.request.impl.ServiceGraphRequest;
@@ -124,6 +128,10 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
   private Configuration freemarkerConfiguration;
   @Inject
   private SolrSchemaFieldDao solrSchemaFieldDao;
+  @Inject
+  private UIMappingConfig uiMappingConfig;
+  @Inject
+  private LabelFallbackHandler labelFallbackHandler;
 
   public ServiceLogResponse searchLogs(ServiceLogRequest request) {
     String event = "/service/logs";
@@ -161,10 +169,6 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
     return getFields(HOST, clusters, SolrHostLogData.class);
   }
 
-  public GroupListResponse getComponents(String clusters) {
-    return getFields(COMPONENT, clusters, SolrComponentTypeLogData.class);
-  }
-
   public GraphDataListResponse getAggregatedInfo(ServiceLogAggregatedInfoRequest request) {
     SimpleQuery solrDataQuery = new BaseServiceLogRequestQueryConverter().convert(request);
     SolrQuery solrQuery = new DefaultQueryParser().doConstructSolrQuery(solrDataQuery);
@@ -439,8 +443,22 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
     return responseDataGenerator.generateOneLevelServiceNodeTree(response, String.format("%s,%s", COMPONENT, LEVEL));
   }
 
-  public String getServiceLogsSchemaFieldsName() {
-    return convertObjToString(solrSchemaFieldDao.getSchemaFieldNameMap(LogType.SERVICE));
+  public List<FieldMetadata> getServiceLogsSchemaFieldsName() {
+    Map<String, String> schemaFieldsMap = solrSchemaFieldDao.getSchemaFieldNameMap(LogType.SERVICE);
+    return schemaFieldsMap
+      .entrySet()
+      .stream()
+      .filter(e -> !uiMappingConfig.getServiceFieldExcludeList().contains(e.getKey()))
+      .map(e ->
+        new FieldMetadata(
+          e.getKey(),
+          labelFallbackHandler.fallbackIfRequired(
+            e.getKey(), uiMappingConfig.getServiceFieldLabels().get(e.getKey()),
+            true, false, true,
+            uiMappingConfig.getServiceFieldFallbackPrefixes()),
+          !uiMappingConfig.getServiceFieldFilterableExcludesList().contains(e.getKey()),
+          uiMappingConfig.getServiceFieldVisibleList().contains(e.getKey())))
+      .collect(Collectors.toList());
   }
 
   public BarGraphDataListResponse getAnyGraphCountData(ServiceAnyGraphRequest request) {
@@ -596,15 +614,6 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
     
     return (T)result;
   }
-  
-
-  public String getHadoopServiceConfigJSON() {
-    String hadoopServiceConfigJSON = HadoopServiceConfigHelper.getHadoopServiceConfigJSON();
-    if (hadoopServiceConfigJSON == null) {
-      throw RESTErrorUtil.createRESTException("Could not load HadoopServiceConfig.json", MessageEnums.ERROR_SYSTEM);
-    }
-    return hadoopServiceConfigJSON;
-  }
 
   public HostLogFilesResponse getHostLogFileData(HostLogFilesRequest request) {
     SimpleFacetQuery facetQuery = conversionService.convert(request, SimpleFacetQuery.class);
@@ -621,4 +630,18 @@ public class ServiceLogsManager extends ManagerBase<ServiceLogData, ServiceLogRe
   public List<String> getClusters() {
     return getClusters(serviceLogsSolrDao, CLUSTER, "/service/logs/clusters");
   }
+
+
+  public ServiceComponentMetadataWrapper getComponentMetadata(String clusters) {
+    String pivotFields = COMPONENT + ",group";
+    SolrQuery solrQuery = new SolrQuery();
+    solrQuery.setQuery("*:*");
+    solrQuery.setRows(0);
+    solrQuery.set("facet", true);
+    solrQuery.set("facet.pivot", pivotFields);
+    SolrUtil.addListFilterToSolrQuery(solrQuery, CLUSTER, clusters);
+    QueryResponse queryResponse = serviceLogsSolrDao.process(solrQuery, "/serivce/logs/components");
+    return responseDataGenerator.generateGroupedComponentMetadataResponse(
+      queryResponse, pivotFields, uiMappingConfig.getServiceGroupLabels(), uiMappingConfig.getServiceComponentLabels());
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/AuditFieldMetadataResponse.java
similarity index 58%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/AuditFieldMetadataResponse.java
index 82e9504..3ef96ff 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/AuditFieldMetadataResponse.java
@@ -16,37 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+import io.swagger.annotations.ApiModel;
 
+import java.util.List;
 import java.util.Map;
 
-public interface InputDescriptor {
-  String getType();
+@ApiModel
+public class AuditFieldMetadataResponse {
 
-  String getRowtype();
+  private final List<FieldMetadata> defaults;
 
-  String getPath();
+  private final Map<String, List<FieldMetadata>> overrides;
 
-  Map<String, String> getAddFields();
+  public AuditFieldMetadataResponse(List<FieldMetadata> defaults, Map<String, List<FieldMetadata>> overrides) {
+    this.defaults = defaults;
+    this.overrides = overrides;
+  }
 
-  String getSource();
+  public List<FieldMetadata> getDefaults() {
+    return defaults;
+  }
 
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
+  public Map<String, List<FieldMetadata>> getOverrides() {
+    return overrides;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ComponentMetadata.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ComponentMetadata.java
index 82e9504..41b6b2d 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ComponentMetadata.java
@@ -16,37 +16,23 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import io.swagger.annotations.ApiModel;
 
-import java.util.Map;
+@ApiModel
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ComponentMetadata extends Metadata implements Groupable {
+  private final String group;
 
-public interface InputDescriptor {
-  String getType();
+  public ComponentMetadata(String name, String label, String group) {
+    super(name, label);
+    this.group = group;
+  }
 
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
+  @Override
+  public String getGroup() {
+    return group;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/FieldMetadata.java
similarity index 54%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/FieldMetadata.java
index 82e9504..2eec14f 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/FieldMetadata.java
@@ -16,37 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
-
-import java.util.Map;
-
-public interface InputDescriptor {
-  String getType();
-
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
+package org.apache.ambari.logsearch.model.metadata;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import io.swagger.annotations.ApiModel;
+
+@ApiModel
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class FieldMetadata extends Metadata implements Filterable, Visible {
+  private final boolean filterable;
+  private final boolean visible;
+
+  public FieldMetadata(String name, String label, Boolean filterable, Boolean visible) {
+    super(name, label);
+    this.visible = visible;
+    this.filterable = filterable;
+  }
+
+  @Override
+  public Boolean isFilterable() {
+    return this.filterable;
+  }
+
+  @Override
+  public boolean isVisible() {
+    return this.visible;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Filterable.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Filterable.java
index 82e9504..e076e81e 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Filterable.java
@@ -16,37 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+public interface Filterable {
 
-import java.util.Map;
+  Boolean isFilterable();
 
-public interface InputDescriptor {
-  String getType();
-
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Groupable.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Groupable.java
index 82e9504..49d9f71 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Groupable.java
@@ -16,37 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+public interface Groupable {
 
-import java.util.Map;
+  String getGroup();
 
-public interface InputDescriptor {
-  String getType();
-
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Labelable.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Labelable.java
index 82e9504..eb82b81 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Labelable.java
@@ -16,37 +16,12 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+public interface Labelable {
 
-import java.util.Map;
+  String getName();
 
-public interface InputDescriptor {
-  String getType();
+  String getLabel();
 
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Metadata.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Metadata.java
index 82e9504..12fd664 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Metadata.java
@@ -16,37 +16,25 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+public class Metadata implements Labelable {
 
-import java.util.Map;
+  private final String name;
+  private final String label;
 
-public interface InputDescriptor {
-  String getType();
+  Metadata(String name, String label) {
+    this.name = name;
+    this.label = label;
+  }
 
-  String getRowtype();
+  @Override
+  public String getName() {
+    return name;
+  }
 
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
+  @Override
+  public String getLabel() {
+    return label;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ServiceComponentMetadataWrapper.java
similarity index 55%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ServiceComponentMetadataWrapper.java
index 82e9504..0c537c3 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/ServiceComponentMetadataWrapper.java
@@ -16,37 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import io.swagger.annotations.ApiModel;
 
+import java.util.List;
 import java.util.Map;
 
-public interface InputDescriptor {
-  String getType();
+@ApiModel
+@JsonIgnoreProperties(ignoreUnknown = true)
+public class ServiceComponentMetadataWrapper {
+  private final Map<String, String> groups;
+  private final List<ComponentMetadata> metadata;
 
-  String getRowtype();
+  public ServiceComponentMetadataWrapper(List<ComponentMetadata> metadata, Map<String, String> groups) {
+    this.groups = groups;
+    this.metadata = metadata;
+  }
 
-  String getPath();
+  public Map<String, String> getGroups() {
+    return groups;
+  }
 
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
+  public List<ComponentMetadata> getMetadata() {
+    return metadata;
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Visible.java
similarity index 61%
copy from ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
copy to ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Visible.java
index 82e9504..f105b73 100644
--- a/ambari-logsearch/ambari-logsearch-config-api/src/main/java/org/apache/ambari/logsearch/config/api/model/inputconfig/InputDescriptor.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/metadata/Visible.java
@@ -16,37 +16,10 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.ambari.logsearch.model.metadata;
 
-package org.apache.ambari.logsearch.config.api.model.inputconfig;
+public interface Visible {
 
-import java.util.Map;
+  boolean isVisible();
 
-public interface InputDescriptor {
-  String getType();
-
-  String getRowtype();
-
-  String getPath();
-
-  Map<String, String> getAddFields();
-
-  String getSource();
-
-  Boolean isTail();
-
-  Boolean isGenEventMd5();
-
-  Boolean isUseEventMd5AsId();
-
-  Boolean isCacheEnabled();
-
-  String getCacheKeyField();
-
-  Boolean getCacheLastDedupEnabled();
-
-  Integer getCacheSize();
-
-  Long getCacheDedupInterval();
-
-  Boolean isEnabled();
 }
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/response/ServiceLogData.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/response/ServiceLogData.java
index 16aed16..e17b87d 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/response/ServiceLogData.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/model/response/ServiceLogData.java
@@ -60,4 +60,9 @@ public interface ServiceLogData extends CommonLogData, ComponentTypeLogData, Hos
   String getHost();
 
   void setHost(String host);
+
+  @JsonProperty("group")
+  String getGroup();
+
+  void setGroup(String group);
 }
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/AuditLogsResource.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/AuditLogsResource.java
index 27a3e83..66863c9 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/AuditLogsResource.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/AuditLogsResource.java
@@ -19,6 +19,7 @@
 
 package org.apache.ambari.logsearch.rest;
 
+import javax.annotation.Nullable;
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.ws.rs.BeanParam;
@@ -26,25 +27,27 @@ import javax.ws.rs.DELETE;
 import javax.ws.rs.GET;
 import javax.ws.rs.Path;
 import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.Response;
 
 import freemarker.template.TemplateException;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import org.apache.ambari.logsearch.common.LogSearchConstants;
 import org.apache.ambari.logsearch.common.StatusMessage;
+import org.apache.ambari.logsearch.model.metadata.AuditFieldMetadataResponse;
 import org.apache.ambari.logsearch.model.request.impl.AuditBarGraphRequest;
-import org.apache.ambari.logsearch.model.request.impl.AuditComponentRequest;
 import org.apache.ambari.logsearch.model.request.impl.AuditServiceLoadRequest;
 import org.apache.ambari.logsearch.model.request.impl.TopFieldAuditLogRequest;
 import org.apache.ambari.logsearch.model.request.impl.UserExportRequest;
 import org.apache.ambari.logsearch.model.response.AuditLogResponse;
 import org.apache.ambari.logsearch.model.response.BarGraphDataListResponse;
-import org.apache.ambari.logsearch.model.response.GroupListResponse;
 import org.apache.ambari.logsearch.model.request.impl.AuditLogRequest;
 import org.apache.ambari.logsearch.manager.AuditLogsManager;
 import org.springframework.context.annotation.Scope;
 
 import java.util.List;
+import java.util.Map;
 
 import static org.apache.ambari.logsearch.doc.DocConstants.AuditOperationDescriptions.*;
 
@@ -61,8 +64,8 @@ public class AuditLogsResource {
   @Path("/schema/fields")
   @Produces({"application/json"})
   @ApiOperation(GET_AUDIT_SCHEMA_FIELD_LIST_OD)
-  public String getSolrFieldList() {
-    return auditLogsManager.getAuditLogsSchemaFieldsName();
+  public AuditFieldMetadataResponse getSolrFieldList() {
+    return auditLogsManager.getAuditLogSchemaMetadata();
   }
 
   @GET
@@ -83,8 +86,8 @@ public class AuditLogsResource {
   @Path("/components")
   @Produces({"application/json"})
   @ApiOperation(GET_AUDIT_COMPONENTS_OD)
-  public GroupListResponse getAuditComponents(@BeanParam AuditComponentRequest request) {
-    return auditLogsManager.getAuditComponents(request);
+  public Map<String, String> getAuditComponents(@QueryParam(LogSearchConstants.REQUEST_PARAM_CLUSTER_NAMES) @Nullable String clusters) {
+    return auditLogsManager.getAuditComponents(clusters);
   }
 
   @GET
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/ServiceLogsResource.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/ServiceLogsResource.java
index e02acb8..a891671 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/ServiceLogsResource.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/rest/ServiceLogsResource.java
@@ -36,6 +36,8 @@ import io.swagger.annotations.ApiOperation;
 
 import org.apache.ambari.logsearch.common.LogSearchConstants;
 import org.apache.ambari.logsearch.common.StatusMessage;
+import org.apache.ambari.logsearch.model.metadata.FieldMetadata;
+import org.apache.ambari.logsearch.model.metadata.ServiceComponentMetadataWrapper;
 import org.apache.ambari.logsearch.model.request.impl.HostLogFilesRequest;
 import org.apache.ambari.logsearch.model.request.impl.ServiceAnyGraphRequest;
 import org.apache.ambari.logsearch.model.request.impl.ServiceGraphRequest;
@@ -97,8 +99,8 @@ public class ServiceLogsResource {
   @Path("/components")
   @Produces({"application/json"})
   @ApiOperation(GET_COMPONENTS_OD)
-  public GroupListResponse getComponents(@QueryParam(LogSearchConstants.REQUEST_PARAM_CLUSTER_NAMES) @Nullable String clusters) {
-    return serviceLogsManager.getComponents(clusters);
+  public ServiceComponentMetadataWrapper getComponents(@QueryParam(LogSearchConstants.REQUEST_PARAM_CLUSTER_NAMES) @Nullable String clusters) {
+    return serviceLogsManager.getComponentMetadata(clusters);
   }
 
   @GET
@@ -172,11 +174,12 @@ public class ServiceLogsResource {
   public NodeListResponse getComponentListWithLevelCounts(@BeanParam ServiceLogComponentLevelRequest request) {
     return serviceLogsManager.getComponentListWithLevelCounts(request);
   }
+
   @GET
   @Path("/schema/fields")
   @Produces({"application/json"})
   @ApiOperation(GET_SERVICE_LOGS_SCHEMA_FIELD_NAME_OD)
-  public String getServiceLogsSchemaFieldsName() {
+  public List<FieldMetadata> getServiceLogsSchemaFieldsName() {
     return serviceLogsManager.getServiceLogsSchemaFieldsName();
   }
 
@@ -197,14 +200,6 @@ public class ServiceLogsResource {
   }
 
   @GET
-  @Path("/serviceconfig")
-  @Produces({"application/json"})
-  @ApiOperation(GET_HADOOP_SERVICE_CONFIG_JSON_OD)
-  public String getHadoopServiceConfigJSON() {
-    return serviceLogsManager.getHadoopServiceConfigJSON();
-  }
-
-  @GET
   @Path("/request/cancel")
   @Produces({"application/json"})
   @ApiOperation(REQUEST_CANCEL)
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/ResponseDataGenerator.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/ResponseDataGenerator.java
index e3c1a24..ad0e6dc 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/ResponseDataGenerator.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/ResponseDataGenerator.java
@@ -24,6 +24,7 @@ import static org.apache.ambari.logsearch.solr.SolrConstants.ServiceLogConstants
 
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
@@ -31,6 +32,9 @@ import java.util.Map;
 import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 
+import org.apache.ambari.logsearch.common.LabelFallbackHandler;
+import org.apache.ambari.logsearch.model.metadata.ComponentMetadata;
+import org.apache.ambari.logsearch.model.metadata.ServiceComponentMetadataWrapper;
 import org.apache.ambari.logsearch.model.response.BarGraphData;
 import org.apache.ambari.logsearch.model.response.BarGraphDataListResponse;
 import org.apache.ambari.logsearch.model.response.CountData;
@@ -49,13 +53,18 @@ import org.apache.solr.client.solrj.response.FacetField.Count;
 import org.apache.solr.client.solrj.response.PivotField;
 import org.apache.solr.client.solrj.response.QueryResponse;
 import org.apache.solr.client.solrj.response.RangeFacet;
+import org.apache.solr.common.SolrDocument;
 import org.apache.solr.common.util.NamedList;
 
+import javax.inject.Inject;
 import javax.inject.Named;
 
 @Named
 public class ResponseDataGenerator {
 
+  @Inject
+  private LabelFallbackHandler labelFallbackHandler;
+
   public BarGraphDataListResponse generateBarGraphDataResponseWithRanges(QueryResponse response, String typeField, boolean typeUppercase) {
     BarGraphDataListResponse dataList = new BarGraphDataListResponse();
     if (response == null) {
@@ -396,7 +405,7 @@ public class ResponseDataGenerator {
     if (response == null) {
       return graphInfo;
     }
-    List<List<PivotField>> hirarchicalPivotField = new ArrayList<List<PivotField>>();
+    List<List<PivotField>> hirarchicalPivotField = new ArrayList<>();
     List<GraphData> dataList = new ArrayList<>();
     NamedList<List<PivotField>> namedList = response.getFacetPivot();
     if (namedList != null) {
@@ -450,4 +459,66 @@ public class ResponseDataGenerator {
     
     return response;
   }
+
+  public Map<String, String> generateComponentMetadata(QueryResponse queryResponse,
+                                                       String facetField, Map<String, String> componetnLabels) {
+    Map<String, String> result = new HashMap<>();
+    if (queryResponse == null) {
+      return result;
+    }
+    FacetField facetFields = queryResponse.getFacetField(facetField);
+    if (facetFields == null) {
+      return result;
+    }
+    List<Count> counts = facetFields.getValues();
+    if (counts == null) {
+      return result;
+    }
+    for (Count count : counts) {
+      if (count.getName() != null) {
+        String label = componetnLabels.get(count.getName());
+        String fallbackedLabel = labelFallbackHandler.fallbackIfRequired(count.getName(), label, true, false, true);
+        result.put(count.getName(), fallbackedLabel);
+      }
+    }
+    return result;
+  }
+
+  public ServiceComponentMetadataWrapper generateGroupedComponentMetadataResponse(QueryResponse queryResponse, String pivotFields,
+                                                                                  Map<String, String> groupLabels,
+                                                                                  Map<String, String> componentLabels) {
+    List<ComponentMetadata> componentMetadata = new ArrayList<>();
+    Map<String, String> groupsMetadata = new HashMap<>();
+
+    if (queryResponse == null) {
+      return new ServiceComponentMetadataWrapper(componentMetadata, groupsMetadata);
+    }
+    NamedList<List<PivotField>> facetPivotResponse = queryResponse.getFacetPivot();
+    if (facetPivotResponse == null || facetPivotResponse.size() < 1) {
+      return new ServiceComponentMetadataWrapper(componentMetadata, groupsMetadata);
+    }
+    if (CollectionUtils.isEmpty(facetPivotResponse.get(pivotFields))) {
+      return new ServiceComponentMetadataWrapper(componentMetadata, groupsMetadata);
+    }
+
+    for (PivotField pivotField : facetPivotResponse.get(pivotFields)) {
+      if (pivotField != null && pivotField.getValue() != null) {
+        String componentName = pivotField.getValue().toString();
+        String groupName = null;
+        if (CollectionUtils.isNotEmpty(pivotField.getPivot())) {
+          Object groupValue = pivotField.getPivot().get(0).getValue();
+          if (groupValue != null) {
+            groupName = groupValue.toString();
+            groupsMetadata.put(groupName, groupLabels.getOrDefault(groupName, null));
+          }
+        }
+        String label = componentLabels.get(componentName);
+        String fallbackedLabel = labelFallbackHandler.fallbackIfRequired(componentName, label, true, false, true);
+        componentMetadata.add((new ComponentMetadata(componentName, fallbackedLabel, groupName)));
+
+      }
+    }
+
+    return new ServiceComponentMetadataWrapper(componentMetadata, groupsMetadata);
+  }
 }
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/SolrConstants.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/SolrConstants.java
index 6554bcf..6b2669b 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/SolrConstants.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/SolrConstants.java
@@ -57,6 +57,7 @@ public class SolrConstants {
     public static final String LOG_MESSAGE = "log_message";
     public static final String KEY_LOG_MESSAGE = "key_log_message";
     public static final String HOST = "host";
+    public static final String GROUP = "group";
     public static final String LEVEL = "level";
     public static final String THREAD_NAME = "thread_name";
     public static final String LOGGER_NAME = "logger_name";
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/model/SolrServiceLogData.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/model/SolrServiceLogData.java
index 224ed8c..5db04ee 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/model/SolrServiceLogData.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/solr/model/SolrServiceLogData.java
@@ -49,6 +49,9 @@ public class SolrServiceLogData extends SolrCommonLogData implements ServiceLogD
   @Field(HOST)
   private String host;
 
+  @Field(GROUP)
+  private String group;
+
   @Field(SDI_DYNAMIC_FIELDS)
   private Map<String, Object> sdiDynamicFields;
 
@@ -93,6 +96,16 @@ public class SolrServiceLogData extends SolrCommonLogData implements ServiceLogD
   }
 
   @Override
+  public String getGroup() {
+    return group;
+  }
+
+  @Override
+  public void setGroup(String group) {
+    this.group = group;
+  }
+
+  @Override
   public Date getLogTime() {
     return logTime;
   }
diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/resources/HadoopServiceConfig.json b/ambari-logsearch/ambari-logsearch-server/src/main/resources/HadoopServiceConfig.json
deleted file mode 100644
index dd4bf6b..0000000
--- a/ambari-logsearch/ambari-logsearch-server/src/main/resources/HadoopServiceConfig.json
+++ /dev/null
@@ -1,488 +0,0 @@
-{
-  "service": {
-    "accumulo": {
-      "label": "Accumulo",
-      "components": [
-        {
-          "name": "accumulo_gc"
-        },
-        {
-          "name": "accumulo_master"
-        },
-        {
-          "name": "accumulo_monitor"
-        },
-        {
-          "name": "accumulo_tracer"
-        },
-        {
-          "name": "accumulo_tserver"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "atlas": {
-      "label": "Atlas",
-      "components": [
-        {
-          "name": "atlas_app"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "ambari": {
-      "label": "Ambari",
-      "components": [
-        {
-          "name": "ambari_agent"
-        },
-        {
-          "name": "ambari_server"
-        },
-        {
-          "name": "ambari_alerts"
-        },
-        {
-          "name": "ambari_audit"
-        },
-        {
-          "name": "ambari_config_changes"
-        },
-        {
-          "name": "ambari_eclipselink"
-        },
-        {
-          "name": "ambari_server_check_database"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "ams": {
-      "label": "AMS",
-      "components": [
-        {
-          "name": "ams_hbase_master"
-        },
-        {
-          "name": "ams_hbase_regionserver"
-        },
-        {
-          "name": "ams_collector"
-        },
-        {
-          "name": "ams_monitor"
-        },
-        {
-          "name": "ams_grafana"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "falcon": {
-      "label": "Falcon",
-      "components": [
-        {
-          "name": "falcon_app"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "flume": {
-      "label": "Flume",
-      "components": [
-        {
-          "name": "flume_handler"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "hbase": {
-      "label": "HBase",
-      "components": [
-        {
-          "name": "hbase_master"
-        },
-        {
-          "name": "hbase_regionserver"
-        },
-        {
-          "name": "hbase_phoenix_server"
-        }
-      ],
-      "dependencies": [
-        {
-          "service": "hdfs",
-          "components": [
-            "hdfs_namenode"
-          ]
-        }
-      ]
-    },
-    "hdfs": {
-      "label": "HDFS",
-      "components": [
-        {
-          "name": "hdfs_datanode"
-        },
-        {
-          "name": "hdfs_namenode"
-        },
-        {
-          "name": "hdfs_journalnode"
-        },
-        {
-          "name": "hdfs_secondarynamenode"
-        },
-        {
-          "name": "hdfs_zkfc"
-        },
-        {
-          "name": "hdfs_nfs3"
-        },
-        {
-          "name": "hdfs_audit",
-          "rowtype": "audit"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "hive": {
-      "label": "Hive",
-      "components": [
-        {
-          "name": "hive_hiveserver2"
-        },
-        {
-          "name": "hive_metastore"
-        },
-        {
-          "name": "webhcat_server"
-        }
-      ],
-      "dependencies": [
-        {
-          "service": "hdfs",
-          "components": [
-            "hdfs_namenode"
-          ]
-        }
-      ]
-    },
-    "infra" : {
-      "label" : "Infra",
-      "components": [
-        {
-          "name": "infra_solr"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "kafka": {
-      "label": "Kafka",
-      "components": [
-        {
-          "name": "kafka_controller"
-        },
-        {
-          "name": "kafka_request"
-        },
-        {
-          "name": "kafka_logcleaner"
-        },
-        {
-          "name": "kafka_server"
-        },
-        {
-          "name": "kafka_statechange"
-        }
-      ],
-      "dependencies": [
-        {
-          "service": "zookeeper",
-          "components": [
-            "zookeeper"
-          ]
-        }
-      ]
-    },
-    "knox": {
-      "label": "Knox",
-      "components": [
-        {
-          "name": "knox_gateway"
-        },
-        {
-          "name": "knox_cli"
-        },
-        {
-          "name": "knox_ldap"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "nifi": {
-      "label": "NiFi",
-      "components": [
-        {
-          "name": "nifi_app"
-        },
-        {
-          "name": "nifi_bootstrap"
-        },
-        {
-          "name": "nifi_setup"
-        },
-        {
-          "name": "nifi_user"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "mapred": {
-      "label": "MapReduce",
-      "components": [
-        {
-          "name": "mapred_historyserver"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "logsearch": {
-      "label": "Logsearch",
-      "components": [
-        {
-          "name": "logsearch_app"
-        },
-        {
-          "name": "logsearch_feeder"
-        },
-        {
-          "name": "logsearch_perf"
-        },
-        {
-          "name": "logsearch_solr"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "ranger": {
-      "label": "Ranger",
-      "components": [
-        {
-          "name": "ranger_admin"
-        },
-        {
-          "name": "ranger_dbpatch"
-        },
-        {
-          "name": "ranger_kms"
-        },
-        {
-          "name": "ranger_usersync"
-        }
-      ],
-      "dependencies": [
-        {
-          "service": "hdfs",
-          "required": "optional",
-          "components": [
-            "hdfs_namenode"
-          ]
-        },
-        {
-          "service": "hbase",
-          "required": "optional",
-          "components": [
-            "hbase_master",
-            "hbase_regionserver"
-          ]
-        },
-        {
-          "service": "hive",
-          "required": "optional",
-          "components": [
-            "hive_hiveserver2"
-          ]
-        },
-        {
-          "service": "kafka",
-          "required": "optional",
-          "components": [
-            "kafka_ranger"
-          ]
-        },
-        {
-          "service": "knox",
-          "required": "optional",
-          "components": [
-            "knox_gateway"
-          ]
-        },
-        {
-          "service": "storm",
-          "required": "optional",
-          "components": [
-            "storm_supervisor"
-          ]
-        },
-        {
-          "service": "yarn",
-          "required": "optional",
-          "components": [
-            "yarn_resourcemanager"
-          ]
-        }
-      ]
-    },
-    "oozie": {
-      "label": "Oozie",
-      "components": [
-        {
-          "name": "oozie_app"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "hst": {
-      "label": "SmartSense",
-      "components": [
-        {
-          "name": "hst_server"
-        },
-        {
-          "name": "hst_agent"
-        },
-        {
-          "name": "activity_analyzer"
-        },
-        {
-          "name": "activity_explorer"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "spark": {
-      "label": "Spark",
-      "components": [
-        {
-          "name": "spark_jobhistory_server"
-        },
-        {
-          "name": "spark_thriftserver"
-        },
-        {
-          "name": "livy_server"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "spark2": {
-      "label": "Spark 2",
-      "components": [
-        {
-          "name": "spark2_jobhistory_server"
-        },
-        {
-          "name": "spark2_thriftserver"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "storm": {
-      "label": "Storm",
-      "components": [
-        {
-          "name": "storm_drpc"
-        },
-        {
-          "name": "storm_logviewer"
-        },
-        {
-          "name": "storm_nimbus"
-        },
-        {
-          "name": "storm_supervisor"
-        },
-        {
-          "name": "storm_ui"
-        },
-        {
-          "name": "storm_worker"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "yarn": {
-      "label": "YARN",
-      "components": [
-        {
-          "name": "yarn_nodemanager"
-        },
-        {
-          "name": "yarn_resourcemanager"
-        },
-        {
-          "name": "yarn_timelineserver"
-        },
-        {
-          "name": "yarn_historyserver"
-        },
-        {
-          "name": "yarn_jobsummary"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "zeppelin": {
-      "label": "Zeppelin",
-      "components": [
-        {
-          "name": "zeppelin"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-    "zookeeper": {
-      "label": "ZooKeeper",
-      "components": [
-        {
-          "name": "zookeeper"
-        }
-      ],
-      "dependencies": [
-      ]
-    },
-   "System": {
-      "label": "System",
-      "components": [
-        {
-          "name": "system_message"
-        },
-        {
-          "name": "secure_log"
-        }
-      ],
-      "dependencies": [
-      ]
-    }
-  }
-}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/LabelFallbackHandlerTest.java b/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/LabelFallbackHandlerTest.java
new file mode 100644
index 0000000..e765f96
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/LabelFallbackHandlerTest.java
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ambari.logsearch.common;
+
+import org.apache.ambari.logsearch.conf.UIMappingConfig;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.Arrays;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+
+public class LabelFallbackHandlerTest {
+
+  private LabelFallbackHandler underTest;
+
+  @Before
+  public void setUp() {
+    final UIMappingConfig uiMappingConfig = new UIMappingConfig();
+    uiMappingConfig.setLabelFallbackEnabled(true);
+    underTest = new LabelFallbackHandler(uiMappingConfig);
+  }
+
+  @Test
+  public void testFallbackIgnore() {
+    // GIVEN
+    String testInput = "my_field";
+    // WHEN
+    String result = underTest.fallbackIfRequired(testInput, "spec label", true, false, true, null);
+    // THEN
+    assertEquals("spec label", result);
+  }
+
+  @Test
+  public void testFallbackUnderscore() {
+    // GIVEN
+    String testInput = "my_field";
+    // WHEN
+    String result = underTest.fallback(testInput, true, false, true);
+    // THEN
+    assertEquals("My Field", result);
+  }
+
+  @Test
+  public void testFallbackUnderscoreWithNull() {
+    // GIVEN
+    // WHEN
+    String result = underTest.fallback(null, true, false, true);
+    // THEN
+    assertNull(result);
+  }
+
+  @Test
+  public void testFallbackCamelCase() {
+    // GIVEN
+    String testInput = "myField";
+    // WHEN
+    String result = underTest.fallback(testInput, false, true, true);
+    // THEN
+    assertEquals("My Field", result);
+  }
+
+  @Test
+  public void testFallbackCamelCaseWithEmptyString() {
+    // GIVEN
+    String testInput = "";
+    // WHEN
+    String result = underTest.fallback(testInput, true, true, true);
+    // THEN
+    assertNull(result);
+  }
+
+  @Test
+  public void testFallbackCamelCaseWithNull() {
+    // GIVEN
+    // WHEN
+    String result = underTest.fallback(null, true, true, true);
+    // THEN
+    assertNull(result);
+  }
+
+  @Test
+  public void testFallbackCamelCaseWith1Letter() {
+    // GIVEN
+    String testInput = "d";
+    // WHEN
+    String result = underTest.fallback(testInput, true, true, true);
+    // THEN
+    assertEquals("D", result);
+  }
+
+  @Test
+  public void testFallbackWithRemovingPrefixes() {
+    // GIVEN
+    String testInput = "ws_request_id";
+    // WHEN
+    String result = underTest.fallback(testInput, true, true, true, Arrays.asList("ws_", "std_"));
+    // THEN
+    assertEquals("Request Id", result);
+  }
+
+  @Test
+  public void testFallbackWithRemovingPrefixesWithoutAnyPrefix() {
+    // GIVEN
+    String testInput = "request_id";
+    // WHEN
+    String result = underTest.fallback(testInput, true, true, true, Arrays.asList("ws_", "std_"));
+    // THEN
+    assertEquals("Request Id", result);
+  }
+
+}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/PropertiesSplitterTest.java b/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/PropertiesSplitterTest.java
new file mode 100644
index 0000000..30cd76f
--- /dev/null
+++ b/ambari-logsearch/ambari-logsearch-server/src/test/java/org/apache/ambari/logsearch/common/PropertiesSplitterTest.java
@@ -0,0 +1,123 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ambari.logsearch.common;
+
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.List;
+import java.util.Map;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+
+public class PropertiesSplitterTest {
+
+  private PropertiesSplitter underTest;
+
+  @Before
+  public void setUp() {
+    underTest = new PropertiesSplitter();
+  }
+
+  @Test
+  public void testParseList() {
+    // GIVEN
+    // WHEN
+    List<String> values = underTest.parseList("v1,v2");
+    // THEN
+    assertTrue(values.contains("v1"));
+    assertTrue(values.contains("v2"));
+  }
+
+  @Test
+  public void testParseListWithEmptyString() {
+    // GIVEN
+    // WHEN
+    List<String> values = underTest.parseList("");
+    // THEN
+    assertTrue(values.isEmpty());
+  }
+
+  @Test
+  public void testParseMap() {
+    // GIVEN
+    // WHEN
+    Map<String, String> keyValues = underTest.parseMap("k1:v1,k2:v2");
+    // THEN
+    assertEquals("v1", keyValues.get("k1"));
+    assertEquals("v2", keyValues.get("k2"));
+  }
+
+  @Test
+  public void testParseMapWithEmptyValue() {
+    // GIVEN
+    // WHEN
+    Map<String, String> keyValues = underTest.parseMap("k1:v1,k2:");
+    // THEN
+    assertEquals("v1", keyValues.get("k1"));
+    assertEquals("", keyValues.get("k2"));
+  }
+
+  @Test
+  public void testParseMapWithMissingKey() {
+    // GIVEN
+    // WHEN
+    Map<String, String> keyValues = underTest.parseMap("k1:v1,:v2");
+    // THEN
+    assertEquals("v1", keyValues.get("k1"));
+    assertNull(keyValues.get("k2"));
+    assertEquals(1, keyValues.size());
+  }
+
+  @Test
+  public void testParseMapInMap() {
+    // GIVEN
+    // WHEN
+    Map<String, Map<String, String>> keyMapValues = underTest.parseMapInMap("K1#k1:v1,k2:v2;K2#k3:v3,k4:v4");
+    // THEN
+    Map<String, String> keyValues1 = keyMapValues.get("K1");
+    Map<String, String> keyValues2 = keyMapValues.get("K2");
+    assertNotNull(keyValues1);
+    assertNotNull(keyValues2);
+    assertEquals("v1", keyValues1.get("k1"));
+    assertEquals("v2", keyValues1.get("k2"));
+    assertEquals("v3", keyValues2.get("k3"));
+    assertEquals("v4", keyValues2.get("k4"));
+  }
+
+  @Test
+  public void testParseListInMap() {
+    // GIVEN
+    // WHEN
+    Map<String, List<String>> listInMap = underTest.parseListInMap("K1:v1,v2;K2:v3,v4");
+    // THEN
+    List<String> valueList1 = listInMap.get("K1");
+    List<String> valueList2 = listInMap.get("K2");
+    assertNotNull(valueList1);
+    assertNotNull(valueList2);
+    assertEquals("v1", valueList1.get(0));
+    assertEquals("v2", valueList1.get(1));
+    assertEquals("v3", valueList2.get(0));
+    assertEquals("v4", valueList2.get(1));
+  }
+
+}
diff --git a/ambari-logsearch/ambari-logsearch-server/src/test/resources/HadoopServiceConfig.json b/ambari-logsearch/ambari-logsearch-server/src/test/resources/HadoopServiceConfig.json
deleted file mode 100644
index 344dc3d..0000000
--- a/ambari-logsearch/ambari-logsearch-server/src/test/resources/HadoopServiceConfig.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-  "service": {
-    "accumulo": {
-      "label": "TestService",
-      "components": [
-        {
-          "name": "test_component1"
-        },
-        {
-          "name": "test_component2"
-        }
-      ],
-      "dependencies": [
-      ]
-    }
-  }
-}
\ No newline at end of file
diff --git a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-ambari.json b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-ambari.json
index 2dfe6d3..e3f6f12 100644
--- a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-ambari.json
+++ b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-ambari.json
@@ -3,12 +3,14 @@
     {
       "type":"ambari_agent",
       "rowtype":"service",
-      "path":"/root/test-logs/ambari-server/ambari-agent.log"
+      "path":"/root/test-logs/ambari-server/ambari-agent.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_server",
       "rowtype":"service",
-      "path":"/root/test-logs/ambari-server/ambari-server.log"
+      "path":"/root/test-logs/ambari-server/ambari-server.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_alerts",
@@ -16,22 +18,26 @@
       "add_fields":{
         "level":"INFO"
       },
-      "path":"/root/test-logs/ambari-server/ambari-alerts.log"
+      "path":"/root/test-logs/ambari-server/ambari-alerts.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_config_changes",
       "rowtype":"service",
-      "path":"/root/test-logs/ambari-server/ambari-config-changes.log"
+      "path":"/root/test-logs/ambari-server/ambari-config-changes.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_eclipselink",
       "rowtype":"service",
-      "path":"/root/test-logs/ambari-server/ambari-eclipselink.log"
+      "path":"/root/test-logs/ambari-server/ambari-eclipselink.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_server_check_database",
       "rowtype":"service",
-      "path":"/root/test-logs/ambari-server/ambari-server-check-database.log"
+      "path":"/root/test-logs/ambari-server/ambari-server-check-database.log",
+      "group": "Ambari"
     },
     {
       "type":"ambari_audit",
diff --git a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-hst.json b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-hst.json
index 2ef13a2..9ec78d6 100644
--- a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-hst.json
+++ b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-hst.json
@@ -3,7 +3,8 @@
     {
       "type": "hst_agent",
       "rowtype": "service",
-      "path": "/root/test-logs/smartsense/hst-agent-test-log.txt"
+      "path": "/root/test-logs/smartsense/hst-agent-test-log.txt",
+      "group": "Smartsense"
     }
   ],
   "filter": [
diff --git a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-secure_log.json b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-secure_log.json
index 93f6b1e..99412e6 100644
--- a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-secure_log.json
+++ b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-secure_log.json
@@ -3,7 +3,8 @@
     {
       "type": "secure_log",
       "rowtype": "service",
-      "path": "/root/test-logs/secure_log/secure-log.txt"
+      "path": "/root/test-logs/secure_log/secure-log.txt",
+      "group": "System"
     }
   ],
   "filter": [
diff --git a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-system_message.json b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-system_message.json
index aef586d..065ef87 100644
--- a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-system_message.json
+++ b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-system_message.json
@@ -3,7 +3,8 @@
     {
       "type": "system_message",
       "rowtype": "service",
-      "path": "/root/test-logs/system_message/message_logs.txt"
+      "path": "/root/test-logs/system_message/message_logs.txt",
+      "group": "System"
     }
   ],
   "filter": [
diff --git a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-zookeeper.json b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-zookeeper.json
index fd1af97..65185a1 100644
--- a/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-zookeeper.json
+++ b/ambari-logsearch/docker/test-config/logfeeder/shipper-conf/input.config-zookeeper.json
@@ -6,7 +6,8 @@
       "path": "/root/test-logs/zookeeper/zookeeper-test-log.txt",
       "cache_enabled" : "true",
       "cache_size" : "10",
-      "cache_dedup_interval" : "1000"
+      "cache_dedup_interval" : "1000",
+      "group": "Zookeeper"
     }
   ],
   "filter": [

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.

[ambari] 02/03: AMBARI-22814 Add different options of component name display

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

oleewere pushed a commit to branch branch-feature-AMBARI-22842
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 7883bc522eac3da3f998258f91851693913d08ef
Author: Istvan Tobias <to...@gmail.com>
AuthorDate: Sun Feb 11 23:57:41 2018 +0100

    AMBARI-22814 Add different options of component name display
---
 .../ambari-logsearch-web/src/app/app.module.ts     |  4 ++-
 .../classes/models/{node-item.ts => node-group.ts} | 15 ++++------
 .../src/app/classes/models/node-item.ts            |  3 ++
 .../service-logs-table.component.html              |  2 +-
 .../node-item.ts => pipes/component-label.ts}      | 26 ++++++++++-------
 .../src/app/services/http-client.service.ts        |  3 ++
 .../src/app/services/logs-container.service.ts     | 33 ++++++++++++++--------
 .../src/app/services/utils.service.ts              |  6 ++--
 8 files changed, 57 insertions(+), 35 deletions(-)

diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/app.module.ts b/ambari-logsearch/ambari-logsearch-web/src/app/app.module.ts
index 5a2b59d..1c85681 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/app.module.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/app.module.ts
@@ -101,6 +101,7 @@ import {LogIndexFilterComponent} from '@app/components/log-index-filter/log-inde
 
 import {TimeZoneAbbrPipe} from '@app/pipes/timezone-abbr.pipe';
 import {TimerSecondsPipe} from '@app/pipes/timer-seconds.pipe';
+import {ComponentLabelPipe} from "@app/pipes/component-label";
 
 export function HttpLoaderFactory(http: Http): TranslateHttpLoader {
   // adding 'static' parameter to step over mock data request
@@ -164,7 +165,8 @@ export function getXHRBackend(injector: Injector, browser: BrowserXhr, xsrf: XSR
     HistoryItemControlsComponent,
     LogIndexFilterComponent,
     TimeZoneAbbrPipe,
-    TimerSecondsPipe
+    TimerSecondsPipe,
+    ComponentLabelPipe
   ],
   imports: [
     BrowserModule,
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-group.ts
similarity index 76%
copy from ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
copy to ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-group.ts
index ef5f772..d461b23 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-group.ts
@@ -16,15 +16,10 @@
  * limitations under the License.
  */
 
-import {CommonEntry} from '@app/classes/models/common-entry';
-
-export interface NodeItem {
+/**
+ * A simple interface for the component's groups (aka services)
+ */
+export interface NodeGroup {
   name: string;
-  type?: string;
-  value: string;
-  isParent: boolean;
-  isRoot: boolean;
-  childs?: NodeItem[];
-  logLevelCount?: CommonEntry[];
-  vNodeList?: CommonEntry[];
+  label?: string;
 }
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
index ef5f772..ca10578 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
@@ -17,11 +17,14 @@
  */
 
 import {CommonEntry} from '@app/classes/models/common-entry';
+import {NodeGroup} from "@app/classes/models/node-group";
 
 export interface NodeItem {
   name: string;
   type?: string;
   value: string;
+  label?: string;
+  group?: NodeGroup;
   isParent: boolean;
   isRoot: boolean;
   childs?: NodeItem[];
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.html b/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.html
index 3110d9a..26ec1df 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.html
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/components/service-logs-table/service-logs-table.component.html
@@ -79,7 +79,7 @@
                 <log-level [logEntry]="log"></log-level>
               </td>
               <td *ngIf="isColumnDisplayed('type')" [ngClass]="'log-type'">
-                {{log.type}}
+                {{log.type | componentLabel | async}}
               </td>
               <ng-container *ngFor="let column of displayedColumns">
                 <td *ngIf="customStyledColumns.indexOf(column.value) === -1"
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts b/ambari-logsearch/ambari-logsearch-web/src/app/pipes/component-label.ts
similarity index 59%
copy from ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
copy to ambari-logsearch/ambari-logsearch-web/src/app/pipes/component-label.ts
index ef5f772..4a81abd 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/classes/models/node-item.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/pipes/component-label.ts
@@ -16,15 +16,21 @@
  * limitations under the License.
  */
 
-import {CommonEntry} from '@app/classes/models/common-entry';
+import {Pipe, PipeTransform} from '@angular/core';
+import {ComponentsService} from "@app/services/storage/components.service";
+import {Observable} from "rxjs/Observable";
+
+@Pipe({
+  name: 'componentLabel'
+})
+export class ComponentLabelPipe implements PipeTransform {
+
+  constructor(private componentService: ComponentsService) {
+  }
+
+  transform(name: string): Observable<string> {
+    return this.componentService.findInCollection(component => component.name === name)
+      .map(component => component ? component.label || component.name : name)
+  }
 
-export interface NodeItem {
-  name: string;
-  type?: string;
-  value: string;
-  isParent: boolean;
-  isRoot: boolean;
-  childs?: NodeItem[];
-  logLevelCount?: CommonEntry[];
-  vNodeList?: CommonEntry[];
 }
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/http-client.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/http-client.service.ts
index 52f4d5b..787eb57 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/http-client.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/http-client.service.ts
@@ -73,6 +73,9 @@ export class HttpClientService extends Http {
     components: {
       url: 'service/logs/components/levels/counts'
     },
+    serviceComponentsName: {
+      url: 'service/logs/components'
+    },
     clusters: {
       url: 'service/logs/clusters'
     },
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
index 7664b3d..3c2493b 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/logs-container.service.ts
@@ -996,21 +996,32 @@ export class LogsContainerService {
     return request;
   }
 
-  loadComponents(): Observable<Response> {
-    const request = this.httpClient.get('components');
-    request.subscribe((response: Response): void => {
-      const jsonResponse = response.json(),
-        components = jsonResponse && jsonResponse.vNodeList.map((item): NodeItem => Object.assign(item, {
-            value: item.logLevelCount.reduce((currentValue: number, currentItem): number => {
-              return currentValue + Number(currentItem.value);
-            }, 0)
-          }));
+  loadComponents(): Observable<Response[]> {
+    const requestComponentsData:Observable<Response> = this.httpClient.get('components');
+    const requestComponentsName:Observable<Response> = this.httpClient.get('serviceComponentsName');
+    const requests = Observable.combineLatest(requestComponentsName, requestComponentsData);
+    requests.subscribe((responses:Response[]) => {
+      const componentsNames = responses[0].json();
+      const componentsData = responses[1].json();
+      const components = componentsData && componentsData.vNodeList.map((item): NodeItem => {
+        const component = componentsNames.metadata.find(component => component.name === item.name);
+        return Object.assign(item, {
+          label: component.label || item.name,
+          group: component && component.group && {
+            name: component.group,
+            label: componentsNames.groups[component.group]
+          },
+          value: item.logLevelCount.reduce((currentValue: number, currentItem): number => {
+            return currentValue + Number(currentItem.value);
+          }, 0)
+        });
+      });
       if (components) {
-        this.utils.pushUniqueValues(this.filters.components.options, components.map(this.utils.getListItemFromNode));
+        this.utils.pushUniqueValues(this.filters.components.options, components.map(node => this.utils.getListItemFromNode(node, true) ));
         this.componentsStorage.addInstances(components);
       }
     });
-    return request;
+    return requests;
   }
 
   loadHosts(): Observable<Response> {
diff --git a/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts b/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
index c960cd1..eae8928 100644
--- a/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
+++ b/ambari-logsearch/ambari-logsearch-web/src/app/services/utils.service.ts
@@ -122,11 +122,13 @@ export class UtilsService {
   /**
    * Get instance for dropdown list from NodeItem object
    * @param node {NodeItem}
+   * @param addGroup {boolean}
    * @returns {ListItem}
    */
-  getListItemFromNode(node: NodeItem): ListItem {
+  getListItemFromNode(node: NodeItem, addGroup: boolean = false): ListItem {
+    const group: string = addGroup && node.group ? `${node.group.label || node.group.name}: ` : '';
     return {
-      label: `${node.name} (${node.value})`,
+      label: `${group}${node.label || node.name} (${node.value})`,
       value: node.name
     };
   }

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.