Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log-to-slack

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-to-slack - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

9

lib/modules/apache2access.js

@@ -9,2 +9,6 @@ 'use strict';

if( !this.options.lineCount ){
this.options.lineCount = 50000;
}
this.messageList = [];

@@ -17,8 +21,7 @@ this.connection = connection;

apache2.prototype.icon = 'http://i.imgur.com/4cCZiwS.png';
apache2.prototype.messageCount = 100;
apache2.prototype.logCommand = 'cat /var/log/apache2/access.log | grep \'" [4-5][0-9][0-9] \'';
apache2.prototype.logCommand = 'tail -n LINECOUNT /var/log/apache2/access.log | grep \'" [4-5][0-9][0-9] \'';
apache2.prototype.runCommand = function( command ){
var _this = this;
var parsedCommand = command.replace( "\'", "'" );
var parsedCommand = command.replace( "\'", "'" ).replace( 'LINECOUNT', this.options.lineCount );

@@ -25,0 +28,0 @@ this.connection.exec( parsedCommand, function( error, stream ) {

{
"name": "log-to-slack",
"version": "1.3.4",
"version": "1.3.5",
"description": "Parse logs on remote servers and post new messages to Slack",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/kokarn/log-to-slack",

@@ -33,6 +33,13 @@ # Log to Slack

```lineCount```: The number of lines to lookback when parsing the log
Example
```
"lineCount": 50000
```
Default: ```500000```
```skipFiles```: Array of filenames to match and skip if found.
Example
```
skipFiles: [
"skipFiles": [
"robots.txt",

@@ -46,3 +53,3 @@ "favicon.ico"

```
skipCodes: [
"skipCodes": [
408

@@ -85,3 +92,4 @@ ]

"robots.txt"
]
],
"lineCount": 50000
}

@@ -88,0 +96,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc