How to read login-audit.csv from 3 different servers?

Tried using the Log Reader Plugin but it does not read logs from all servers.

Any suggestion is appreciated.

Thanks 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to yogeshc

    Hi Yogesh,

    The original Q&A is a little vague; if you have multiple application servers in a single Appian instance then I'm not sure that I have an answer that's any better than what's above. 

    If you're in a High Availability config or other distributed topology, we've found a way to do that. It's fairly simple:

    • Determine HA node names from topology config
      • If you're on cloud, here's how
      • Navigate to your Appian Support portal
      • Go to Health tab --> Cloud Resources --> Metrics
      • Select the HA environment URL (e.g. our prod environment)
      • Your HA node names show up under "servers to display"
    • If the environment has more than once instance (e.g. when a cloud instance is high availability), prepend the server name to the log file name. Loop over the server names to get all 3 servers' logs.
      • e.g. concat([server name], "/", [log file name])
  • 0
    Certified Senior Developer
    in reply to Jesse Knight

    HI  

    Its working fine now.

    able to fetch logs from all the servers.

    Thank you Slight smile

  • 0
    Certified Associate Developer
    in reply to Jesse Knight

     , I would love to use this plugin to get the user audit logs, but I have not been able to figure out how to add the server name to get the function to read the logs.  Any help would be most appreciated.

    I tried using:

    readcsvlog(
        csvPath: concat(<servername>,"/","login-audit.csv")
    )

    and it returns totalcount: -1

  • 0
    Certified Associate Developer
    in reply to lesliem

     , found that the logs are in different folders on the prod server vs the dev server.  Was able to see it read the logs on the prod server with your concat().  The login-audit.csv doesn't have headers, but there doesn't see to be a way to tell the function no header.