Github user d2r commented on a diff in the pull request:

    https://github.com/apache/storm/pull/949#discussion_r47959666
  
    --- Diff: docs/documentation/Logs.md ---
    @@ -0,0 +1,30 @@
    +---
    +title: Storm Logs
    +layout: documentation
    +documentation: true
    +---
    +Logs in Storm are essential for tracking the status, operations, error 
messages and debug information for all the 
    +daemons (nimbus, supervisor, logviewer, drpc, ui) and topologies' workers.
    +
    +### Location of the Logs
    +All the daemon logs are placed under ${storm.log.dir} directory, which a 
user can set in the System properties or
    +in the cluster configuration. By default, ${storm.log.dir} points to 
${storm.home}/logs.
    +
    +All the worker logs are placed under the workers-artifacts directory in a 
hierarchical manner, e.g.,
    +${workers-artifacts}/${topologyId}/${port}/worker.log. Users can set the 
workers-artifacts directory
    +by configuring the variable "storm.workers.artifacts.dir". By default, 
workers-artifacts directory
    +locates at ${storm.log.dir}/logs/workers-artifacts.
    +
    +### Using the Storm UI for Log View/Download and Log Search
    +Daemon and worker logs are allowed to view and download through Storm UI 
by authorized users.
    +
    +To improve the debugging of Storm, we provide the Log Search feature.
    +Log Search supports searching in a certain log file or in a topology's all 
log files:
    +
    +String search in a log file: In the log page for a worker, a user can 
search a certain string, e.g., "Exception", in for a certain worker log. This 
search can happen for both normal text log or rolled ziplog files. In the 
results, the offset and matched lines will be displayed.
    +
    +![Search in a log](images/search-for-a-single-worker-log.png "Search in a 
log")
    +
    +Search in a topology: a user can also search a string for a certain 
topology by clicking the icon of magnifying lens at the top right corner of the 
UI page. This means the UI will try to search on all the supervisor nodes in a 
distributed way to find the matched string in all logs for this topology. The 
search can happen for both normal text log or rolled zip log files by 
checking/unchecking the "Search archived logs:" box. Then the matched results 
can be shown on the UI with url links, directing the user to the certain logs 
on each supervisor node. This powerful feature is very helpful for users to 
find certain problematic supervisor nodes running this topology.
    +
    +![Seach in a topology](images/search-a-topology.png "Search in a topology")
    --- End diff --
    
    `Search`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to