-
Notifications
You must be signed in to change notification settings - Fork 5
CLI reference
Anodot API token - You can copy it from Settings > API tokens > Data Collection in your Anodot account. Also here you can configure a proxy to connect to Anodot. For directory pipelines, you also need to use an API key Instructions
agent destination
Example:
> agent destination
Use proxy for connecting to Anodot? [y/N]: y
Proxy uri: http://squid:3181
Proxy username []:
Proxy password []:
Destination url [https://app.anodot.com]:
Anodot api data collection token: tokenhere
Anodot access key: apikey
Destination configured
Options:
-
-t,--tokenTEXT -
--proxy/--no-proxy -
--proxy-hostTEXT -
--proxy-userTEXT -
--proxy-passwordTEXT
StreamSets is an engine that runs pipelines. You can install multiple StreamSets instances on different hosts and they will be used by the agent to run pipelines
agent streamsets add [OPTIONS]
Options:
-
--urlTEXT -
--usernameTEXT -
--passwordTEXT -
--agent-ext-urlTEXT
agent streamsets edit [OPTIONS] URL
Arguments: URL - streamsets url, required argument
agent streamsets list
agent streamsets delete URL
Arguments: URL - streamsets url, required argument
Splits existing pipelines evenly between all StreamSets so every StreamSets instance runs the same number of pipelines
agent streamsets balance
Data sources management
agent source create [OPTIONS]
Options:
-a, --advanced-
-f, --file FILENAME- path to config file
agent source edit [OPTIONS] NAME
Options:
-a, --advanced-
-f, --file FILENAME- path to config file
Arguments: NAME - source name, required argument
agent source list
agent source delete NAME
Arguments: NAME - source name, required argument
Pipelines management
agent pipeline create [OPTIONS]
Options:
-a, --advanced-
-f, --file FILENAME- path to config file
agent pipeline edit [OPTIONS] PIPELINE_ID
Options:
-a, --advanced-
-f, --file FILENAME- path to config file
Arguments: PIPELINE_ID - pipeline id, required argument
agent pipeline list
agent pipeline delete PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
Show pipeline status, errors if any, statistics about the number of records sent
agent pipeline info [OPTIONS] PIPELINE_ID
Options: -l, --lines INTEGER
Arguments: PIPELINE_ID - pipeline id, required argument
agent pipeline logs [OPTIONS] PIPELINE_ID
Options:
-l, --lines INTEGER-s, --severity [INFO|ERROR]
Arguments: PIPELINE_ID - pipeline id, required argument
agent pipeline reset PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
agent pipeline start PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
agent pipeline stop PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
A pipeline can be force stopped only if it is in the STOPPING state
agent pipeline force-stop PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
Enable destination response logs for a pipeline (for debugging purposes only)
agent pipeline destination-logs [OPTIONS] PIPELINE_ID
Options:
--enable / --disable
Recreates a pipeline with existing configuration
agent pipeline update PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
Delete everything about pipeline if safe delete failed
agent pipeline force-delete PIPELINE_ID
Arguments: PIPELINE_ID - pipeline id, required argument
Backing up Agent's database into a single dump file
agent backup
Restores Agent's Database from the dump file. Just
agent restore database FILE_NAME
Arguments: FILE_NAME - absolute path to the database dump file
Recreates or updates existing pipelines, their offsets and statuses using database info. If StreamSets instance related to the pipeline is not available, the pipeline will not be restored
agent restore streamsets
Example Backup and Restore
- Home
- CLI reference
- API
- Kubernetes setup using Helm
- Podman setup
- Creating pipelines
- Test sources
- Data formats (JSON, CSV, AVRO, LOG)
- How to parse logs with grok patterns
- How to store sensitive information
- Automated pipelines creation
- Filtering
- Transformation files
- Fields
- DVP Configuration
- Integrations
- Sending events to Anodot