Sumo Logic collection solution for JFrog Xray.
Project description
sumologic-jfrog-xray
Solution to pull logs from JFrog Xray to Sumo Logic
Installation
This collector can be deployed both onprem and on cloud.
Deploying the collector on a VM
-
Get details for your JFrog Xray instance.
- Get Host Name and port for your JFrog Xray instance.
- For eg - URL is http://host-example:8000/web/#/login.
- Host Name = host-example
- port = 8000
- For eg - URL is http://host-example:8000/web/#/login.
- UserName and password for your JFrog Xray instance.
- Get Host Name and port for your JFrog Xray instance.
-
Add a Hosted Collector and one HTTP Logs Source
- To create a new Sumo Logic Hosted Collector, perform the steps in Configure a Hosted Collector.
- Add an HTTP Logs and Metrics Source.
-
Using the sumologic-jfrog-xrayy collector
-
Method 1 - Configuring the sumologic-jfrog-xray collector
Below instructions assume pip is already installed if not then, see the pip docs on how to download and install pip. sumologic-jfrog-xray is compatible with python 3.7 and python 2.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
pip install sumologic-jfrog-xray
-
Create a configuration file named jfrogxraycollector.yaml in home directory by copying the below snippet.
JFrogXray: HOSTNAME: "<Paste the Host of JFrog Xray Instance>" PORT: <Paste the Port of JFrog Xray Instance> USERNAME: <Paste the UserName of JFrog Xray Instance> PASSWORD: <Paste the password of JFrog Xray Instance> 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 sumojfrogxray.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-jfrog-xray” and select the app as shown below:
-
In the Configure application parameters panel, shown below:
Hostname: Paste the Host of JFrog Xray Instance from step 1. HttpLogsEndpoint: Paste the URL for the HTTP Logs source from step 2. Password: Paste the password of JFrog Xray Instance from step 1. Port: Paste the Port of JFrog Xray Instance from step 1. Usernname: Paste the UserName of JFrog Xray Instance from step 1.
-
Click Deploy.
-
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sumologic-jfrog-xray-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3505ddb88cb40d2a210736e0c21b39f419313723ccb4ce3d619f413d8e57986 |
|
MD5 | 848212ee3df20c8f2943d649a74abac3 |
|
BLAKE2b-256 | bfa5c9b732d8d526ddb3f13e3e26a6ab82f88feac9699a13076b728ac8d68ffc |
Hashes for sumologic_jfrog_xray-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7300a9df36e9888d59f1f81f77f9bc0090e58a0d27901373b745a4ed1f0afa41 |
|
MD5 | 1a6e72907497c049f01a17c8a9d10097 |
|
BLAKE2b-256 | 12d1c92f9f1edea820b4ac0d0c269ebf652bc2551e0436f678dc0549a8cb3577 |