Giter Club home page Giter Club logo

sumologic-jfrog-xray's Introduction

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

  1. Get details for your JFrog Xray instance.

    • UserName and password for your JFrog Xray instance.
  2. Add a Hosted Collector and one HTTP Logs Source

  3. 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.>
         
        Collection:
            BACKFILL_DAYS: <Enter the Number of days before the event collection will start.>
        
    • 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:

      • Go to https://serverlessrepo.aws.amazon.com/applications

      • Search for “sumologic-jfrog-xray” and select the app as shown below: App

      • In the Configure application parameters panel, shown below: Deploy

        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.
        BackfillDays: Enter the Number of days before the event collection will start
        
      • Click Deploy.

sumologic-jfrog-xray's People

Contributors

sumosourabh avatar duchatran avatar himanshu219 avatar perk-sumo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.