Papertrail
Import Papertrail log events that match a search query, over a retention period of 1 day to 1 month, with a Papertrail API token; loads are incremental.
This data source connector uses the Papertrail Search API (opens in a new tab) to import events matching the specified query from Papertrail (opens in a new tab) (logs from apps, servers, and cloud services).
Before you start
You need
- A Papertrail API token (opens in a new tab). You find it in your profile (opens in a new tab).
What each tab needs
- Prompt tab Kai, the Kai Agent button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai.
- UI tab a browser.
- CLI / API tab kbagent, connected to your project. The checks only read.
Configuration
Section titled “Configuration”Create a new configuration of the Papertrail connector.
To configure the connector, you need to provide a Papertrail API token, enter a search query and select a retention period. Then select the data you wish to extract.
First, provide your Papertrail API token.
Then enter your search query (opens in a new tab). And finally, select a desired retention period from the dropdown menu (from 1 day to 1 month).
To configure what data you want to extract, select the configuration template. The only template available at the moment is Basic. This option downloads all records matching the query within the retention period. It incrementally adds new records each run.

When done, Save the configuration. You can also switch to the JSON editor.
Click Run Component.
Check:
Did the latest job of my Papertrail configuration succeed, and did it load the events table? Give its row count.Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.
The job ends with status Success and Storage has the events table with the events your query
matches.
kbagent job list --component-id keboola.ex-papertrail --config-id 123456789 --limit 1kbagent storage tablesReplace 123456789 with your configuration ID: status shows whether the job succeeded, and the tables it loaded have the latest last_import_date, with their rows in rows_count.
Was this page helpful?
Thank you for helping improve Keboola's documentation!