Hortonworks Streaming Analytics Manager User Guide
Also available as:

Debugging an Application through Distributed Log Search

About This Task

In a distributed system, searching for logs on different hosts for different components can be extremely tedious and time consuming. With SAM, all the application logs are indexed via the Ambari Log Search Server via Solr. SAM makes it easy to drill into and search for logs for specific components directly from the DAG view. Follow the below steps to use distributed log search:


  1. To enable Log Search in SAM, perform the following actions in Ambari.

    1. In Ambari, select the Log Search service and select ‘Log Search UI’ from Quick Links

    2. Select the filter icon on the top right menu

    3. For the storm_worker component, configure the filter like the following and click Save.

  2. In SAM, you can dynamically change the logging level. For example, in SAM view mode of an application, click on the Log link, select the log level and the duration you want that log level.

  3. Then click on the component you want to search logs for and under Actions select Logs.

  4. This brings you to the Log Search page where you can search by component (s), log level(s) and search for strings using wildcard notation.