You can use the command line to export a VMware Aria Operations for Logs archive to a regular raw text file or in JSON format.

Note: This is an advanced procedure. Command syntax and output formats might change in later releases of VMware Aria Operations for Logs without backward compatibility.

Prerequisites

  • Verify that you have the root user credentials to log in to the VMware Aria Operations for Logs virtual appliance.
  • Verify that the VMware Aria Operations for Logs virtual appliance has enough disk space to accommodate the exported files.

Procedure

  1. Establish an SSH connection to the VMware Aria Operations for Logs vApp and log in as the root user.
  2. Create an archive directory on the VMware Aria Operations for Logs vApp.
    mkdir /archive
  3. Mount the shared folder on the NFS server where the archived data resides by running the following command.
    mount -t nfs archive-fileshare:archive directory path /archive
  4. Check the available storage space on the VMware Aria Operations for Logs vApp.
    df -h
  5. Export a VMware Aria Operations for Logs archive to a raw text file.
    /usr/lib/loginsight/application/sbin/repo-exporter -d archive-file-directory output-file
    For example,
    /usr/lib/loginsight/application/sbin/repo-exporter -d /archive/2014/08/07/16/bd234b2d-df98-44ae-991a-e0562f10a49 /tmp/output.txt
  6. Export a VMware Aria Operations for Logs archive message content in JSON format.
    /usr/lib/loginsight/application/sbin/repo-exporter -F -d archive-file-directory output-file.
    For example,
    /usr/lib/loginsight/application/sbin/repo-exporter -F -d /archive/2014/08/07/16/bd234b2d-df98-44ae-991a-e0562f10a49 /tmp/output.json
  7. Close the SSH connection.