Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Solution to pull logs from Slack to Sumo Logic
This collector can be deployed both onprem and on cloud.
Get Token from Slack for your workspace/Team.
Add a Hosted Collector and one HTTP Logs Source
Using the sumologic-slack collector
Method 1 - Configuring the sumologic-slack collector
Below instructions assume pip is already installed if not then, see the pip docs on how to download and install pip. sumologic-slack is compatible with python 3.7. It has been tested on Ubuntu 18.04 LTS and Debian 4.9.130. Login to a Linux machine and download and follow the below steps:
Install the collector using below command
pip3 install sumologic-slack
Create a configuration file named slackcollector.yaml in home directory by copying the below snippet.
Slack:
TOKEN: <Paste the Token collected from Slack App from step 1.>
ENABLE_INFREQUENT_CHANNELS: < Default is false.
true -> Enable dividing channels into frequent and infrequent based on the last message time.
false -> Send all public channels messages.>
INFREQUENT_CHANNELS_THRESHOLD_IN_HOURS: < Default is 72.
Threshold in hours to make channels as infrequent based on last message time.
For eg, 12 hours means if the message is not recived for 12 hours, channel will be marked as infrequent.>
INFREQUENT_CHANNELS_MESSAGES_FETCH_TIME_IN_HOURS: < Default is 12.
Time in hours to fetch messages for InFrequent channels.
For eg, 12 hours means send infrequent channels messages every 12 hours.>
Collection:
BACKFILL_DAYS: <Enter the Number of days before the event collection will start.>
DBNAME: <New Database Name.>
SumoLogic:
HTTP_LOGS_ENDPOINT: <Paste the URL for the HTTP Logs source from step 2.>
Create a cron job for running the collector every 5 minutes by using the crontab -e and adding the below line
*/5 * * * * /usr/bin/python -m sumoslack.main > /dev/null 2>&1
Method 2 - Collection via an AWS Lambda function
To install Sumo Logic’s AWS Lambda script, follow the instructions below:
Search for “sumologic-slack” and select the app as shown below:
In the Configure application parameters panel, shown below:
Token: Paste the Token collected from Slack App from step 1.
HttpLogsEndpoint: Paste the URL for the HTTP Logs source from step 2.
BackfillDays: Enter the number of days for which logs should be collected. For eg, 2 means logs for last 2 days.
DatabaseName: DynamoDB Table Name. Use the table name to identify the Slack Workspace for which you are collecting logs. Do not use the same DataBase Name across multiple installations.
EnableInfrequentChannels: Default is false.
true -> Enable dividing channels into frequent and infrequent based on the last message time.
false -> Send all public channels messages.
CreateSecret: Default is No.
Yes -> Encrypt the Provided Environment variables HTTP_LOGS_ENDPOINT, TOKEN using KMS and Secret Manager.
No -> No encryption.
AwsKmsKeyARN: Please provide an existing KMS Key ARN to encrypt the Environment variables HTTP_LOGS_ENDPOINT, TOKEN. If kept empty, a new KMS Key ID will be created if CreateSecret is Yes.
Click Deploy.
*** For internal read only ***
To run use below command python -m sumoslack.main
To build use below command sumoappclient -e -d -c
FAQs
Sumo Logic collection solution for slack
We found that sumologic-slack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.