Log Reader

Overview

Plug-in Notes:

  • Allows only System Administrators or members of the Designers group to access log data.  
  • Does not load files outside the logs directory or files that do not end in .log.* or .csv.*.
  • On multi-application-server environments, logs will only be shown from a single application server.
  • Custom headers can be specified as an optional parameter. This is meant to be used for .csv files that don't contain a header.

Key Features & Functionality

The Appian Log Reader Plug-in contains functionality to:

  • Read files in the Appian /log folder (.csv or .log) and return them as structured data
  • Aggregate data from a .csv file
  • Serve as the source for a service-backed record for viewing logs
Anonymous
Parents
  • Hi All

    the plugin is failing to read logs for HA environments as the log path is different. for example the path for the login-audit.csv is at  /usr/local/appian/ae/shared-logs/login-audit.csv oppose to  /usr/local/appian/ae/logs/login-audit.csv.

    any way we can use the plugin or any alternate way to read the logs?

Comment
  • Hi All

    the plugin is failing to read logs for HA environments as the log path is different. for example the path for the login-audit.csv is at  /usr/local/appian/ae/shared-logs/login-audit.csv oppose to  /usr/local/appian/ae/logs/login-audit.csv.

    any way we can use the plugin or any alternate way to read the logs?

Children
  • Hi  , ti seems to be working for us. We tried to retrieve design_errors.csv and we was able to do it. We used the following.

    readcsvlogpagingwithheaders(
    "serverName/design_errors.csv",
    1,
    100,
    {},
    "",
    "",
    "",
    "Timestamp",
    adddays(now(), -3),
    now()
    )

    You will need to substitute serverName with your server name. In this way you will retrieve only the logs from serverName server, to retrieve the log for the others you need to substitute this with the other servers name, e.g. serverName-2 and serverName-3.

    Just check what the rule getlogpath() responds. In our HA environment it responds "LOG_DIR : /usr/local/appian/ae/shared-logs".