Skip to main content
Version: 7.0

Generating A Support Bundle

The Support Bundle feature allows you to generate a compressed tarball containing relevant data (logs, configs, and metric data) for troubleshooting or analysis. These bundled files can then be sent to the ElastiFlow support team to help diagnose issues with the collector. To use the Support Bundle command line tool, run the flowcoll command with the --support-bundle or -s flag. When the command runs successfully, it will produce a compressed tarball named similarly to ef_support_bundle-20230831T164759.tar.gz.

Basic Example:

./flowcoll -s

Advanced Example:

./flowcoll -s -sc /my/config/dir -sl /my/log/dir -st 3 -si 3000

Command Line Options

If an option is not specified, its specified default value will be used.

OptionShorthandDefault ValueDescription
--support-bundle-sfalseEnables support bundle mode.
--support-bundle-config-dir-sc/etc/elastiflow/flowcollThe path to the collector's configuration directory.
--support-bundle-logs-dir-sl/var/log/elastiflow/flowcollThe path to the collector's log directory.
--support-bundle-metrics-interval-si1000The interval, in milliseconds, at which metrics should be collected.
--support-bundle-metrics-times-st1The number of times metrics should be collected.
--support-bundle-output-so<Working directory>The path to which the output file should be written.
note

By adjusting the collection interval (-si) and times (st), tracking and spotting trends in metrics over time can be easier.

Generate Support Bundle By Endpoint

HTTP Method

POST

URL

/support-bundle

Request Body

All fields in the request body are optional. Defaults will be used if not specified.

  • logDirPath (string): Directory path of the log files. Default: /var/log/juniper/flowcoll.
  • configDirPath (string): Directory path of the configuration file. Default: /etc/juniper.

Query Parameters

  • interval (integer): Interval at which the metrics will be fetched in milliseconds. Default: 1000.
  • times (integer): The number of times the metrics endpoint will be fetched. Default: 1.
note

By adjusting the collection interval (-si) and times (st), tracking and spotting trends in metrics over time can be easier.

Authentication

This endpoint supports Basic Authentication only if the collector is specifically configured for it. For configuration details, see the API reference.

Examples

Basic Example

Using the defaults, this example demonstrates a basic example without any query parameters or request body.

curl -X POST \
-H "Content-Type: application/json" \
-O -J \
http://localhost:8080/support-bundle

Advanced Example

This example demonstrates an advanced curl request with a filled request body and query parameters.

curl -X POST \
-H "Content-Type: application/json" \
-d '{
"logDirPath": "/path/to/log/dir",
"configDirPath": "/path/to/log/dir"
}' \
-O -J \
http://localhost:8080/support-bundle?interval=2000&times=2

Responses

CodeReasonDescription
200OKSuccessful response will return the support bundle file for download. The file will have a naming convention ef_support_bundle-YYYYMMDDTHHmmss.tar.gz, where YYYYMMDDTHHmmss is a timestamp indicating when the bundle was created.
400Bad RequestQuery parameters are invalid.
500Internal Server ErrorAn internal server error occurred while processing the request.