Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Log Insight Export

Project description

A command-line exporter of log events in VMware vRealize Log Insight. Exceed the 20k UI limit. Write local files.

# loginsight-export

## Installation 1. Open a command prompt. 2. pip install loginsight-export 3. loginsight-export -h

## Usage 1. In Log Insight Interactive Analytics, perform a query of arbitrary complexity and size. 2. Use the ![](exportshare.png) Share button to generate a short url for the current query. 3. loginsight-export

## Overview

[VMware vRealize Log Insight]( supports exporting query results to a file in the UI. However, a single export is limited to 20k results. To export more results, an operator can execute a sequence of queries with non-overlapping time-ranges, each of which contained less than 20k. As scale increases, this becomes cumbersome. This utility starts with a single UI-driven time-range, recursively breaks the full range down into sequential <=20k-sized chunks, and executes an export for each chunk.

## Prerequisites

## Secure Connections

The exporter verifies a remote server’s certificate against your CA trust chain by default. If Log Insight is using a valid certificate that’s not trusted by your local machine (e.g., self-signed), use the –save command-line argument to write a local PEM file and –verify to trust it. The certificate’s integrity is still verified.

If Log Insight is using the auto-generated certificate with a common name that doens’t match Log Insight’s hostname, the request will fail: ` loginsightexport: error: The remote SSL certificate isn't trusted: hostname '' doesn't match 'VMware vCenter Log Insight' ` It’s always recommended to use real certificates. To bypass this check in a test environment, use the –insecure command-line argument.

## Contributing

The loginsight-export project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our [FAQ]( For more detailed information, refer to [](

## License

[Distributed under the Apache Version 2.0 license](LICENSE.txt)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for loginsight-export, version 0.7.3
Filename, size File type Python version Upload date Hashes
Filename, size loginsight-export-0.7.3.tar.gz (20.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page