Papertrail
App · 25 actions
Search Papertrail logs, manage systems, groups, saved searches and users, check usage and archives, and follow new log events, saved search matches and systems that go quiet.
Actions
| Action | What it does |
|---|---|
| Add system to group | Add a system to a group. |
| Create group | Create a group of systems, by a name wildcard, by choosing them, or both. |
| Create saved search | Save a search, to rerun it or alert on it in Papertrail. |
| Delete group | Delete a group. |
| Delete saved search | Delete a saved search. |
| Delete system | Remove a system (sender). |
| Get account usage | Get how much log data the account has sent this billing period, against its plan's limit. |
| Get group | Get a group's name, wildcard and systems. |
| Get saved search | Get a saved search's name, query and group. |
| Get system | Get a system's name, hostname, IP address, syslog destination and when it last sent an event. |
| Invite user | Give someone access to the account by email. |
| List archives | List the account's daily or hourly log archives, with a download link for each. |
| List groups | List the account's groups and the systems in each. |
| List log destinations | List the account's log destinations: the syslog host and port systems send to. |
| List saved searches | List the account's saved searches with their query and group. |
| List systems | List the systems (senders) logging to the account, with when each last sent an event. |
| List users | List the people with access to the account. |
| Register system | Add a system (sender): one that logs to a log destination by hostname, or one that logs to the standard syslog port from a fixed IP address. |
| Remove system from group | Take a system out of a group. |
| Remove user | Take someone's access to the account away. |
| Search events | Search log events, newest first, by text, system, group or time range. |
| Update group | Rename a group or change its wildcard. |
| Update saved search | Change a saved search's name, query or group. |
| Update system | Rename a system or change its hostname, IP address, description or removal setting. |
| Update user | Change someone's email address or access. |
Add system to group
Add a system to a group.
Inputs
- System
system_idnumberRequired - The system (sender).At least 1.
- Group
group_idnumberRequired - The group.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"message": "example"
}
}Create group
Create a group of systems, by a name wildcard, by choosing them, or both.
Inputs
- Name
nametextRequired - The group's name.
- System name wildcard
system_wildcardtext - Systems whose names match this belong to the group, such as `*prod*`.
- Systems
system_idslist - Systems that belong to the group.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"id": 1,
"name": "example",
"system_wildcard": "example",
"systems": [
{
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
]
}
}Create saved search
Save a search, to rerun it or alert on it in Papertrail.
Inputs
- Name
nametextRequired - The search's name.
- Search
querytextRequired - The Papertrail search, such as `"access denied" OR ssh`.
- Group
group_idnumber - The group it searches. Leave empty for All Systems.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"group": {
"id": 1,
"name": "example"
},
"id": 1,
"name": "example",
"query": "example"
}
}Delete group
Delete a group. Its systems and their logs are kept.
Inputs
- Group
group_idnumberRequired - The group.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"message": "example"
}
}Delete saved search
Delete a saved search.
Inputs
- Saved search
search_idnumberRequired - The saved search.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"message": "example"
}
}Delete system
Remove a system (sender). Its events already received are kept.
Inputs
- System
system_idnumberRequired - The system (sender).At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"message": "example"
}
}Get account usage
Get how much log data the account has sent this billing period, against its plan's limit.
Inputs
None.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"log_data_transfer_hard_limit": 1,
"log_data_transfer_plan_limit": 1,
"log_data_transfer_used": 1,
"log_data_transfer_used_percent": 1
}
}Get group
Get a group's name, wildcard and systems.
Inputs
- Group
group_idnumberRequired - The group.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"id": 1,
"name": "example",
"system_wildcard": "example",
"systems": [
{
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
]
}
}Get saved search
Get a saved search's name, query and group.
Inputs
- Saved search
search_idnumberRequired - The saved search.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"group": {
"id": 1,
"name": "example"
},
"id": 1,
"name": "example",
"query": "example"
}
}Get system
Get a system's name, hostname, IP address, syslog destination and when it last sent an event.
Inputs
- System
system_idnumberRequired - The system (sender).At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
}Invite user
Give someone access to the account by email. Someone new to Papertrail gets an email invitation.
Inputs
- Email
emailtextRequired - Their email address.
- Read only
read_onlytrue/falseRequired - Let them only read logs, without changing settings.
- Can manage members
manage_memberstrue/false - Let them manage the account's members. This gives write access.
- Can manage billing
manage_billingtrue/false - Let them manage billing. This gives write access.
- Can purge logs
purge_logstrue/false - Let them purge logs. Needs write access to every group.
- All groups
can_access_all_groupstrue/false - Give them every group. Turn off and choose Groups to limit them to some.
- Groups
group_idslist - The groups they can see when All groups is off.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {}
}List archives
List the account's daily or hourly log archives, with a download link for each.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"_links": {
"download": {
"href": "example"
}
},
"duration_formatted": "example",
"end": "example",
"filename": "example",
"filesize": 1,
"start": "example",
"start_formatted": "example"
}
]
}List groups
List the account's groups and the systems in each.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"id": 1,
"name": "example",
"system_wildcard": "example",
"systems": [
{
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
]
}
]
}List log destinations
List the account's log destinations: the syslog host and port systems send to.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"filter": "example",
"id": 1,
"syslog": {
"description": "example",
"hostname": "example",
"port": 1
}
}
]
}List saved searches
List the account's saved searches with their query and group.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"group": {
"id": 1,
"name": "example"
},
"id": 1,
"name": "example",
"query": "example"
}
]
}List systems
List the systems (senders) logging to the account, with when each last sent an event.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
]
}List users
List the people with access to the account.
Inputs
None.
Outputs
datalist- The response from Papertrail.
Example output
{
"data": [
{
"email": "example",
"id": 1
}
]
}Register system
Add a system (sender): one that logs to a log destination by hostname, or one that logs to the standard syslog port from a fixed IP address.
Inputs
- Name
nametextRequired - The name to show for the system.
- Log destination
destination_idnumber - The log destination it sends to. Choose this or enter its port.At least 1.
- Log destination port
destination_portnumber - The port of the log destination it sends to, instead of choosing it.From 1 to 65535.
- Hostname
hostnametext - The hostname its logs carry. Required with a log destination.
- IP address
ip_addresstext - Its public IP address, for a system that logs to the standard syslog port `logs.papertrailapp.com:514` instead of a log destination.
- Last resort
last_resorttrue/false - Catch events to the log destination that no other system's hostname matches. Lets Hostname be empty.
- Description
descriptiontext - A description of the system.
- Remove when inactive
auto_deletetrue/false - Remove the system automatically once it stops sending logs. Leave empty to use the log destination's setting.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
}Remove system from group
Take a system out of a group.
Inputs
- System
system_idnumberRequired - The system (sender).At least 1.
- Group
group_idnumberRequired - The group.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"message": "example"
}
}Remove user
Take someone's access to the account away.
Inputs
- User
membernumberRequired - The user.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {}
}Search events
Search log events, newest first, by text, system, group or time range.
Inputs
- Search
querytext - A Papertrail search, such as `error OR timeout`. Leave empty for every event.
- System
system_idtext - Only events from this system.
- Group
group_idnumber - Only events from this group's systems.At least 1.
- From
min_timedate and time - Only events received at or after this time.
- Until
max_timedate and time - Only events received at or before this time.
- After event ID
min_idtext - Only events newer than this event ID, such as the last search's max_id.
- Before event ID
max_idtext - Only events older than this event ID, such as the last search's min_id.
- Events to return
limitnumber - How many events to return, up to 10,000. Leave empty for 1,000.From 1 to 10000.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"events": [
{
"display_received_at": "example",
"facility": "example",
"generated_at": "example",
"hostname": "example",
"id": "example",
"message": "example",
"program": "example",
"received_at": "example",
"severity": "example",
"source_id": 1,
"source_ip": "example",
"source_name": "example"
}
],
"max_id": "example",
"max_time_at": "example",
"min_id": "example",
"min_time_at": "example",
"reached_beginning": true,
"reached_end": true,
"reached_record_limit": true,
"reached_time_limit": true
}
}Update group
Rename a group or change its wildcard. Add and remove systems with their own steps.
Inputs
- Group
group_idnumberRequired - The group.At least 1.
- Name
nametext - The group's new name.
- System name wildcard
system_wildcardtext - Systems whose names match this belong to the group.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"id": 1,
"name": "example",
"system_wildcard": "example",
"systems": [
{
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
]
}
}Update saved search
Change a saved search's name, query or group.
Inputs
- Saved search
search_idnumberRequired - The saved search.At least 1.
- Name
nametextRequired - The search's name.
- Search
querytextRequired - The Papertrail search.
- Group
group_idnumber - The group it searches. Leave empty for All Systems.At least 1.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"group": {
"id": 1,
"name": "example"
},
"id": 1,
"name": "example",
"query": "example"
}
}Update system
Rename a system or change its hostname, IP address, description or removal setting. Only the fields filled in change.
Inputs
- System
system_idnumberRequired - The system (sender).At least 1.
- Name
nametext - The new name to show.
- Hostname
hostnametext - The hostname its logs carry.
- IP address
ip_addresstext - Its source IP address.
- Description
descriptiontext - A description of the system.
- Remove when inactive
auto_deletetrue/false - Remove the system automatically once it stops sending logs. Leave empty to use the log destination's setting.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {
"auto_delete": true,
"hostname": "example",
"id": 1,
"ip_address": "example",
"last_event_at": "example",
"name": "example",
"syslog": {
"hostname": "example",
"port": 1
}
}
}Update user
Change someone's email address or access. Send every permission they should have: one left out is taken away.
Inputs
- User
membernumberRequired - The user.At least 1.
- Email
emailtext - Their new email address.
- Read only
read_onlytrue/false - Let them only read logs, without changing settings.
- Can manage members
manage_memberstrue/false - Let them manage the account's members. This gives write access.
- Can manage billing
manage_billingtrue/false - Let them manage billing. This gives write access.
- Can purge logs
purge_logstrue/false - Let them purge logs. Needs write access to every group.
- All groups
can_access_all_groupstrue/false - Give them every group. Turn off and choose Groups to limit them to some.
- Groups
group_idslist - The groups they can see when All groups is off.
Outputs
dataobject- The response from Papertrail.
Example output
{
"data": {}
}