There is more to logs than just storing them. With Trunc, we try to give you context and more information about each log. That allows you to better detect attacks, troubleshoot problems and audit what is happening with your network and servers. From sysadmins to sysadmins.
Supports all server distributions (i.e., Windows, Linux, etc). Agent-less and Encrypted agent options available.
Consolidate logs from various sources, including servers, applications, and network devices, into a single, accessible location.
Monitor system activities in real-time and receive immediate alerts for potential security incidents, enabling prompt response.
Utilize powerful, Google-like search functionality to quickly parse and analyze logs, facilitating efficient troubleshooting and threat detection.
Choose between agent-less and encrypted agent deployment methods, supporting various server distributions including Windows and Linux.
Search is for when you know what you're looking for. Insights are for the rest of the time. Three pages, included on every plan, that read your logs and tell you what they found, including when they found nothing.
Fifteen checks over your authentication and system logs: logins through Tor, brute force that worked, root logins, accounts added, logs cleared. Each finding comes with evidence and a search one click away. Most detections carry MITRE ATT&CK technique IDs.
Learn more about Security InsightsErrors, traffic spikes, bots and AI crawlers, attack attempts and where your traffic comes from, read straight from nginx, Apache or HAProxy access logs.
Learn more about Web InsightsA short briefing on what changed: which systems stopped sending, what's failing, how volume moved and what started reporting.
Learn more about Operational InsightsBehavior rules. Alerts when someone logs in, runs sudo or su, adds a user or installs a Windows service outside your working hours, or logs in from outside your business countries.
Missing logs. Alerts when a cron job, scheduled SSH login, sudo or su doesn't show up in your logs on time, and when an always-on server goes quiet. Learned from your logs, with nothing to set up per job. Guides: log stop detection, cron monitoring.
Active response. Blocks the addresses that brute force or scan your servers at the firewall of each Linux server, about 25 seconds after the attack.
For people who'd rather not click.
Every account has an API key, on every plan. You'll find it in
Settings, API, along with your
account id. The URL is the same for everyone:
https://my.trunc.org/api. Calls are plain HTTPS GETs,
and responses are JSON. Anything that can fetch a URL can use it.
export TRUNC_API="https://my.trunc.org/api"
export TRUNC_ID="12345678" # your account id
export TRUNC_KEY="YOUR_API_KEY"
# Last 20 successful brute force logins, raw lines only
curl -sG "$TRUNC_API" \
--data-urlencode "id=$TRUNC_ID" \
--data-urlencode "apikey=$TRUNC_KEY" \
--data-urlencode "action=logs/search" \
--data-urlencode "pattern=category:auth_brute_force_success" \
--data-urlencode "limit=20" | jq -r '.logs[].full_log'
Nov 14 03:13:41 webserver sshd[21901]: Accepted password for deploy from 198.51.100.23 port 51190 ssh2
Without the jq, you get this:
{
"status": "success",
"logs": [
{
"full_log": "Nov 14 03:13:41 webserver sshd[21901]: Accepted password for deploy from 198.51.100.23 port 51190 ssh2",
"location": "webserver",
"srcip": "198.51.100.23",
"username": "deploy",
...
}
]
}
Each log also carries these fields:
day, timelogfilesrcipgeo (country and AS number)category, severity, descriptionhttp_code
A search with no matches returns "status": "not_found"
and an empty logs array. A bad key or id returns HTTP
403 with a reason, so check the body, not just the status code.
After 20 failed auth attempts from one IP in 10 minutes, the API
answers 429 with a Retry-After header. Don't let a
cron job retry a bad key in a loop.
action= |
What it does |
|---|---|
logs/tail |
The most recent logs, newest first. |
logs/search |
Search with pattern=, using the search page's syntax: words, "quoted phrases", AND / OR / NOT, and hostname:, category:, country:, asn:. |
config/syslog/ips/list |
The addresses allowed to send you syslog. |
config/syslog/ip/add |
Allow a new syslog sender (ip_address=). |
config/syslog/ip/delete |
Remove one (ip_address=). |
limit= sets how many lines come back. The default is
100.
Syslog from an address that isn't on your allowed list is dropped. That makes the last two actions the useful ones for automation: add the address from whatever builds the server.
$ curl -sG "$TRUNC_API" --data-urlencode "id=$TRUNC_ID" --data-urlencode "apikey=$TRUNC_KEY" \
--data-urlencode "action=config/syslog/ip/add" --data-urlencode "ip_address=203.0.113.40"
{"status":"success", "notice":"IP whitelisted: 203.0.113.40"}
The key goes in the query string, and it's the only thing
protecting the API. Keep it in an environment variable or a secrets
store, not in a script you commit. apikey and
action can be sent as POST fields instead. The
id has to be in the URL.
The dashboard also has a terminal (it opens in its own tab from the top bar) for when you'd rather type than click:
trunc> search "failed password" | tail -n 1000 | cut -d " " -f 10 | sort -u -r
702, 198.51.100.23
231, 203.0.113.9
67, 192.0.2.77
found 1,511 logs in 0.84 seconds. Displaying last 1,000
That command gives failed SSH passwords grouped by source address, busiest first.
| Command | What it does |
|---|---|
tail |
The last 20 lines received. |
search 'keyword' |
Searches your logs. It takes the same syntax as the search page and shows the last 200 matches. |
| grep 'regex' |
Keeps lines matching the regex. It's case-insensitive, and you can chain several. |
| tail -n NUM |
Show NUM matches instead of 200. |
| cut -d " " -f POS |
Print one field. |
| sort |
Collapse identical lines and count them. |
| sort -u |
Same, ordered by count. |
| sort -r |
Reverse the order. Combine with -u for busiest first. |
Some things a sysadmin will notice:
cut counts fields from 0,
not 1. In a classic syslog line, the source address of a
failed password is field 10. On a "Failed password for invalid
user" line it's field 12, and a single-digit day
(Nov 4) adds an empty field, so everything
after it moves along by one.
grep and cut
work on the lines the search returned. That's 200 by
default, or however many tail -n asked for. Raise
tail -n before you count anything.
grep sshd mylogs.log
works, for muscle memory.
date,
cal, whoami). Everything else gets
command not found.
Trunc provides an intuitive dashboard that makes log analysis straightforward, reducing the complexity often associated with traditional SIEM solutions.
With a transparent, flat-fee pricing model based on storage requirements, Trunc offers an affordable alternative to more expensive SIEM platforms.
By consolidating logs and providing real-time monitoring, Trunc helps organizations detect and respond to security threats more effectively, bolstering overall security.
Trunc assists in maintaining compliance with various regulations by providing necessary logging and reporting capabilities, simplifying the audit process.
Designed to handle large volumes of log data, Trunc scales with your organization's growth and adapts to diverse IT environments.
14 days free trial. No credit card required.