sangupta/log-parser


Various log parser functions https://sangupta.com/projects/logparser

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.sangupta:log-parser:'
	}
	dependencies {
		implementation("com.github.sangupta:log-parser:")
	}
	<dependency>
	    <groupId>com.github.sangupta</groupId>
	    <artifactId>log-parser</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.sangupta" % "log-parser" % ""
        
        

                            
    :dependencies [[com.github.sangupta/log-parser ""]]
        
        

Readme


Log-Parser

Travis Coveralls Maven Version license

A simple Java libary to parse various known log file formats into strongly-typed format-specific Java object. Once data is into a strongly typed object, its easier to run analysis on large files.

Formats currently supported are:

  • Amazon AWS ELB logs
  • Adobe Experience Manager Audit logs
  • Adobe Experience Manager Error logs
  • Adobe Experience Manager Request logs
  • Adobe Experience Manager Replication logs
  • Adobe Experience Manager Tar Optimization logs
  • Sun/Oracle JDK GC logs
  • Apache Tomcat access logs (default format)
  • Charles Proxy Summary/Session XML

RoadMap

The following log formats shall be added to the library next:

  • log4j
  • logback
  • Apache httpd access logs

Building

Building the library is very simple.

$ git clone git@github.com:sangupta/log-parser.git
$ cd log-parser
$ mvn clean package

Downloading

You may include the library in your Maven project by adding the following to the pom.xml

<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

<dependency>
    <groupId>com.github.sangupta</groupId>
    <artifactId>log-parser</artifactId>
    <version>-SNAPSHOT</version>
</dependency>

License

log-parser: Parsers for various log formats
Copyright (c) 2015-2016, Sandeep Gupta

https://sangupta.com/projects/log-parser

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.