
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
log-to-slack
Advanced tools
Loads and parses logs from remote servers over SSH and sends some of them to a specified Slack channel
npm install -g log-to-slack
log-to-slack --config path/to/config.json
If you are on ubuntu you might need to symlink node
to nodejs
http://stackoverflow.com/a/18130296/1223319
sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
--debug
Run in debug mode
host
What host to use for the connection
port
What port to use for the connection
username
What username to use when connecting
password
What password to use when connecting
skipStrings
: Array of strings to match and skip if found.
Example
"skipStrings": [
"robots.txt",
"favicon.ico"
]
Default: []
useVulnList
: Use web-vuln-scan-list to exclude common paths used by vulnerability scanners from showing up as errors.
Example
"useVulnList": false
Default: true
lineCount
: The number of lines to lookback when parsing the log.
Example
"lineCount": 50000
Default: 500000
skipStrings
: Array of strings to match and skip if found.
Example
"skipStrings": [
"robots.txt",
"favicon.ico"
]
Default: []
skipCodes
: Array of response codes that we shouldn't report.
Example
"skipCodes": [
408
]
Default: []
useVulnList
: Use web-vuln-scan-list to exclude common paths used by vulnerability scanners from showing up as errors.
Example
"useVulnList": false
Default: true
path
: The path to the log file.
Example
"path": "/my/path/to/my/prod.log"
Default: ""
skipStrings
: Array of strings to match and skip if found.
Example
"skipStrings": [
"robots.txt",
"favicon.ico"
]
Default: []
useVulnList
: Use web-vuln-scan-list to exclude common paths used by vulnerability scanners from showing up as errors.
Example
"useVulnList": false
Default: true
skipStrings
: Array of strings to match and skip if found.
Example
"skipStrings": [
"robots.txt",
"favicon.ico"
]
Default: []
useVulnList
: Use web-vuln-scan-list to exclude common paths used by vulnerability scanners from showing up as errors.
Example
"useVulnList": false
Default: true
{
"slackApiToken": "my-slack-api-key",
"slackChannel": "#syslog",
"slackUsername": "Logan",
"slackIconUrl": "http://i.imgur.com/JKDkKU0.png",
"checkInterval": 30000,
"servers": [
{
"host": "myserver.myhost.com",
"port": "myport",
"username": "username",
"password": "password",
"services": {
"apache2": true,
"symfony": {
"path": "/path/to/my/prod.log"
}
}
},
{
"host": "54.175.129.157",
"username": "anotheruser",
"password": "anotherpassword",
"services": {
"apache2": true,
"apache2Access": {
"skipCodes": [
408
],
"skipStrings": [
"favicon.ico",
"robots.txt"
],
"lineCount": 50000
}
}
}
]
}
FAQs
Parse logs on remote servers and post some of them Slack
We found that log-to-slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.