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

ActionWhat it does
Add system to groupAdd a system to a group.
Create groupCreate a group of systems, by a name wildcard, by choosing them, or both.
Create saved searchSave a search, to rerun it or alert on it in Papertrail.
Delete groupDelete a group.
Delete saved searchDelete a saved search.
Delete systemRemove a system (sender).
Get account usageGet how much log data the account has sent this billing period, against its plan's limit.
Get groupGet a group's name, wildcard and systems.
Get saved searchGet a saved search's name, query and group.
Get systemGet a system's name, hostname, IP address, syslog destination and when it last sent an event.
Invite userGive someone access to the account by email.
List archivesList the account's daily or hourly log archives, with a download link for each.
List groupsList the account's groups and the systems in each.
List log destinationsList the account's log destinations: the syslog host and port systems send to.
List saved searchesList the account's saved searches with their query and group.
List systemsList the systems (senders) logging to the account, with when each last sent an event.
List usersList the people with access to the account.
Register systemAdd 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 groupTake a system out of a group.
Remove userTake someone's access to the account away.
Search eventsSearch log events, newest first, by text, system, group or time range.
Update groupRename a group or change its wildcard.
Update saved searchChange a saved search's name, query or group.
Update systemRename a system or change its hostname, IP address, description or removal setting.
Update userChange someone's email address or access.

Add system to group

Add a system to a group.

Inputs

Systemsystem_idnumberRequired
The system (sender).At least 1.
Groupgroup_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

NamenametextRequired
The group's name.
System name wildcardsystem_wildcardtext
Systems whose names match this belong to the group, such as `*prod*`.
Systemssystem_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
        }
      }
    ]
  }
}

Save a search, to rerun it or alert on it in Papertrail.

Inputs

NamenametextRequired
The search's name.
SearchquerytextRequired
The Papertrail search, such as `"access denied" OR ssh`.
Groupgroup_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

Groupgroup_idnumberRequired
The group.At least 1.

Outputs

dataobject
The response from Papertrail.
Example output
{
  "data": {
    "message": "example"
  }
}

Delete a saved search.

Inputs

Saved searchsearch_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

Systemsystem_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

Groupgroup_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 a saved search's name, query and group.

Inputs

Saved searchsearch_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

Systemsystem_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

EmailemailtextRequired
Their email address.
Read onlyread_onlytrue/falseRequired
Let them only read logs, without changing settings.
Can manage membersmanage_memberstrue/false
Let them manage the account's members. This gives write access.
Can manage billingmanage_billingtrue/false
Let them manage billing. This gives write access.
Can purge logspurge_logstrue/false
Let them purge logs. Needs write access to every group.
All groupscan_access_all_groupstrue/false
Give them every group. Turn off and choose Groups to limit them to some.
Groupsgroup_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

NamenametextRequired
The name to show for the system.
Log destinationdestination_idnumber
The log destination it sends to. Choose this or enter its port.At least 1.
Log destination portdestination_portnumber
The port of the log destination it sends to, instead of choosing it.From 1 to 65535.
Hostnamehostnametext
The hostname its logs carry. Required with a log destination.
IP addressip_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 resortlast_resorttrue/false
Catch events to the log destination that no other system's hostname matches. Lets Hostname be empty.
Descriptiondescriptiontext
A description of the system.
Remove when inactiveauto_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

Systemsystem_idnumberRequired
The system (sender).At least 1.
Groupgroup_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

UsermembernumberRequired
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

Searchquerytext
A Papertrail search, such as `error OR timeout`. Leave empty for every event.
Systemsystem_idtext
Only events from this system.
Groupgroup_idnumber
Only events from this group's systems.At least 1.
Frommin_timedate and time
Only events received at or after this time.
Untilmax_timedate and time
Only events received at or before this time.
After event IDmin_idtext
Only events newer than this event ID, such as the last search's max_id.
Before event IDmax_idtext
Only events older than this event ID, such as the last search's min_id.
Events to returnlimitnumber
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

Groupgroup_idnumberRequired
The group.At least 1.
Namenametext
The group's new name.
System name wildcardsystem_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
        }
      }
    ]
  }
}

Change a saved search's name, query or group.

Inputs

Saved searchsearch_idnumberRequired
The saved search.At least 1.
NamenametextRequired
The search's name.
SearchquerytextRequired
The Papertrail search.
Groupgroup_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

Systemsystem_idnumberRequired
The system (sender).At least 1.
Namenametext
The new name to show.
Hostnamehostnametext
The hostname its logs carry.
IP addressip_addresstext
Its source IP address.
Descriptiondescriptiontext
A description of the system.
Remove when inactiveauto_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

UsermembernumberRequired
The user.At least 1.
Emailemailtext
Their new email address.
Read onlyread_onlytrue/false
Let them only read logs, without changing settings.
Can manage membersmanage_memberstrue/false
Let them manage the account's members. This gives write access.
Can manage billingmanage_billingtrue/false
Let them manage billing. This gives write access.
Can purge logspurge_logstrue/false
Let them purge logs. Needs write access to every group.
All groupscan_access_all_groupstrue/false
Give them every group. Turn off and choose Groups to limit them to some.
Groupsgroup_idslist
The groups they can see when All groups is off.

Outputs

dataobject
The response from Papertrail.
Example output
{
  "data": {}
}

On this page