GithubHelp home page GithubHelp logo

isabella232 / splunklogging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ebay/splunklogging

0.0 0.0 0.0 392 KB

Plugin for Maven to generate Splunk compatible JSON files from TestNG output automatically

License: Other

splunklogging's Introduction

INSTALLATION

To install this Maven plugin, please run the following command:

mvn clean compile package install

CONFIGURATION

After installation, in order to generate JSON files for Splunk to consume add the following to your POM file in the build section:

<build>
    <plugins>
        <plugin>
            <groupId>com.ebay.mobile.splunklogging.plugin</groupId>
            <artifactId>splunklogging-maven-plugin</artifactId>
            <version>2.0</version>
        </plugin>
    ....
    </plugins>
</build>

The plugin assumes the XML file it will be converting to JSON is named testng-results.xml and is located in target/surefire-reports. The output JSON will be generated in the same directory and be named testng- results.json. These three parameters can also be configured in your POM, in the plugin's block, with the following:

<configuration>
    <fileLocation>location/on/disk</fileLocation>
	<inputFile>test-results.xml</inputFile>
	<outputFile>splunk-output.json</outputFile>
</configuration>

USAGE

Add the command line option "splunklogging:generate-json" when running Maven. For example:

mvn failsafe:integration-test splunklogging:generate-json

Your JSON will be generated and, if Splunk is monitoring that file, automatically indexed

  • Note: for anyone who prefers the previous CSV format output, that command is still supported (and remains unchanged: mvn splunklogging:generate-csv )

LICENSE

License - Apache 2: http://www.apache.org/licenses/LICENSE-2.0

splunklogging's People

Contributors

mborkow-ebay 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.