Volta Log Library user manual



Similar documents
Documentum Developer Program

How to Enable Quartz Job Execution Log Interception In Applications. J u n e 26,

Runtime Monitoring & Issue Tracking

Getting Started with SandStorm NoSQL Benchmark

IBM InfoSphere MDM Server v9.0. Version: Demo. Page <<1/11>>

Service Integration course. Cassandra

Exam Name: IBM InfoSphere MDM Server v9.0

Getting started Cassandra Access control list

Informatica Cloud Connector for SharePoint 2010/2013 User Guide

Alarms. Understanding Alarms CHAPTER

PASS4TEST 専 門 IT 認 証 試 験 問 題 集 提 供 者

Configuring IIS 6 to Load Balance a JBoss 4.2 Adobe LiveCycle Enterprise Suite 2 (ES2) Cluster

PROCESSES LOADER 9.0 SETTING. Requirements and Assumptions: I. Requirements for the batch process:

Software Construction

UNICORE UFTPD server UNICORE UFTPD SERVER. UNICORE Team

Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014

The Java Logging API and Lumberjack

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Logging in Java Applications

SAS 9.2 Integration Technologies. Java Client Developer s Guide

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

INSTALLING AND MANAGING DATABASES WITH PRIMAVERA P6 PRO RELEASE 8.2

Apache Tomcat ISAPI Redirector and Canto Cumulus WPP

Talend for Data Integration guide

VoIP Recorder V2 Setup Guide

PCBest Networks VOIP Recorder

FioranoMQ 9. High Availability Guide

Effective logging practices ease enterprise

SDK Code Examples Version 2.4.2

McAfee epolicy Orchestrator Software

BIRT Application and BIRT Report Deployment Functional Specification

Configuring Apache HTTP Server With Pramati

ITG Software Engineering

Banner Payment Processor Connection Handbook. December 2011

ArpViewer Manual Version Datum

New Features... 1 Installation... 3 Upgrade Changes... 3 Fixed Limitations... 4 Known Limitations... 5 Informatica Global Customer Support...

As a CIFEX user, we suggest you have a look at Use Cases. As a CIFEX administrator, we suggest you have at least a look at

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.5

Creating A Walking Skeleton

EMC Documentum Composer

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

Intelligent Test Framework 3.1 Directory Structure Reference for Server and Client Applications

Active Directory LDAP Quota and Admin account authentication and management

EQUELLA. Clustering Configuration Guide. Version 6.0

Oracle WebLogic Server

Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak

Performance Monitoring API for Java Enterprise Applications

ShoreTel Advanced Applications Web Utilities

Crystal Reports Installation Guide

Instant Chime for IBM Sametime For IBM Websphere and IBM DB2 Installation Guide

MonALISA Repository User Guide

epolicy Orchestrator Log Files

XMLVend Protocol Message Validation Suite

... Apache Log4j 2 v. 2.5 User's Guide.... The Apache Software Foundation

MarkLogic Server. MarkLogic Connector for Hadoop Developer s Guide. MarkLogic 8 February, 2015

IBM WebSphere Partner Gateway V6.2.1 Advanced and Enterprise Editions

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Feith Dashboard iq Server Version 8.1 Install Guide

BusinessObjects Enterprise XI Release 2

ADAM 5.5. System Requirements

LabVIEW Internet Toolkit User Guide

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.8

VMware vcenter Log Insight Security Guide

This configuration guide describes the installation process of SNMP on Windows and Linux with the NetBorder Express Gateway.

SAS 9.4 Logging. Configuration and Programming Reference Second Edition. SAS Documentation

IUCLID 5 Guidance and support. Installation Guide Distributed Version. Linux - Apache Tomcat - PostgreSQL

TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data User's Guide

Configuring Single Sign-On for Documentum Applications with RSA Access Manager Product Suite. Abstract

MicroStrategy Intelligence Server Configuration Table of contents

Lucid Key Server v2 Installation Documentation.

Project (Group) Management Installation Guide (Linux) Version 1.3. Copyright 2007 MGH

Setting Up One Search

SAS 9.3 Logging: Configuration and Programming Reference

StreamServe Persuasion SP5 StreamStudio

Alert Notification of Critical Results (ANCR) Public Domain Deployment Instructions

Active Directory Requirements and Setup

1. Accessing the LONZA network from a private PC or Internet Café

Configuring a Jetty Container for SESM Applications

IBM Unica Campaign Version Publication Date: June 7, Data Migration Guide

Instant Chime for IBM Sametime Installation Guide for Apache Tomcat and Microsoft SQL

Workshop for WebLogic introduces new tools in support of Java EE 5.0 standards. The support for Java EE5 includes the following technologies:

Integrating SAP BusinessObjects with Hadoop. Using a multi-node Hadoop Cluster

Syslog Monitoring Feature Pack

Kaltura Extension for IBM Connections Deployment Guide. Version: 1.0

Overview. NetBorder Express Loggers Configuration Guide

Enhanced Connector Applications SupportPac VP01 for IBM WebSphere Business Events 3.0.0

Installation Guide of the Change Management API Reference Implementation

Deploying Cisco Unified Contact Center Express Volume 1

Oracle Enterprise Performance Management System IBM WebSphere Manual Deployment Guide

IST Amigo Project. Accounting & Billing Software Developer s Guide. Public

CafePilot has 3 components: the Client, Server and Service Request Monitor (or SRM for short).

Logi Ad Hoc Reporting Configuration for Load Balancing (Sticky Sessions)

Configuration Manual

Log management with Logstash and Elasticsearch. Matteo Dessalvi

Copyright 2014 Jaspersoft Corporation. All rights reserved. Printed in the U.S.A. Jaspersoft, the Jaspersoft

USER GUIDE. Snow Inventory Client for Unix Version Release date Document date

Tibbr Installation Addendum for Amazon Web Services

Tutorial. Reference for more thorough Mininet walkthrough if desired

Synchronizer Installation

Start Here. Installation Guide. Rosetta Stone Standalone License. This Guide Will Show You How To: Install the Student Management System...

Transcription:

Volta Log Library user manual www.satellitevolta.com 1

... 3... 3... 3... 3... 3 www.satellitevolta.com 2

[Ref.01] Volta Log distribution package (volta-log-x.y.z.* http://sourceforge.net/projects/voltalog/files/?source=navbar) [Ref.02] Apache Log4j2 web site (http://logging.apache.org/log4j/2.x/) Volta Log is a java library that enables you to manage the logs of your application, saving them in Cassandra within a designated structure instead of a file. As a result, it ensures faster access to logs and a more efficient management of them. The license applied to Volta Log is Apache Software License 2.0 (http://www.apache.org/licenses/license-2.0.html). To use Volta Log, a JRE (Java Runtime Environment) version 7 or greater (http://www.java.com) is required. The following are the steps needed to use the library Volta Log inside a standalone java project. To use the library Volta Log you must import in the java project the following libraries included, for simplicity, in the distribution package of Volta Log [Ref.01]: www.satellitevolta.com 3

- volta-log-x.y.z.jar - log4j-1.2-api-2.0.2.jar - log4j-api-2.0.2.jar - log4j-core-2.0.2.jar - slf4j-api-1.7.5.jar - cassandra-driver-core-2.1.0.jar - guava-16.0.1.jar - metrics-core-3.0.2.jar - netty-3.9.0-final.jar - snakeyaml-1.11.jar N.B. xyz indicates a generic version of the library Volta Log. To use the library Volta Log you must configure the library itself as Apache Log4j 2 appender [Ref.02]; for that purpose put in the java project (eg. the src folder) the file log4j2.xml included, for simplicity, in the data folder of the distribution package Volta Log [Ref.01]. Then you need to edit the above configuration file log4j2.xml, specifying at least the values of the following parameters: - applicationname: attribute in the xml tag CassandraLogger indicating the name of the application that makes the logs; if not specified the default value is Application - server: attribute in the xml tag Cassandra indicating the address of one of the Apache Cassandra cluster nodes in which the application makes the logs; this address must be specified - username: attribute in the xml tag Cassandra indicating the username of Apache Cassandra cluster where the application makes the logs; this value must be specified, and you can leave the username cassandra of default user - password: attribute in the xml tag Cassandra indicating the password of the Apache Cassandra cluster where the application makes the logs; this value must be specified, and you can leave the password cassandra of default user www.satellitevolta.com 4

- keyspace: attribute in the xml tag Cassandra indicating the keyspace of Apache Cassandra cluster where the application makes the logs; if not specified the default value is ApplicationsLOG; within that keyspace logs table is created that will contain the application logs - level: attribute in the xml tag Root (under tag Loggers), indicating the level of the log, that is the the application logs that have a lower priority then this level/threshold will not be produced; the possible values are as follows (from the more permissive to the most restrictive): all, trace, debug, info, warn, error, fatal, off. For completeness the following tables contain all the parameters related to the xml tags CassandraLogger and Cassandra in the configuration file log4j2.xml, configurable for use of Volta Log as Apache Log4j 2 appender. The accepted parameters for the xml tag CassandraLogger are the following: Parameter Type Description name Required. Name of the appender. applicationname Name of the application that is logging. This value will be used as a partition key for the records related to the current application. If null, the default value is Application ignoreexceptions boolean The default value is true, if exceptions occur during the execution of the appender will be recorded internally and then ignored. If set to false, however, exceptions will raise to the caller. filter Filter A Filter determines if the event should be handled by the appender. More Filters can be used using the class CompositeFilter buffersize Int If greater than 0, the appender enters information into a buffer and writes the log when it reaches the set size. www.satellitevolta.com 5

The accepted parameters for the xml tag Cassandra are the following Parameter Type Description factoryclassna me factorymethodn ame keyspace server port username password Class Method Int To make a connection to Cassandra, you can use this attribute and factorymethodname to specify a class and a method that will return the data connection. The method must return a voltalog.logger.cassandraproperties. While using this parameter should not be specified server, port, username and password. See factoryclassname. KeySpace on which will be created the log table. If not specified, it will be created a new keyspace ApplicationsLOG. factorymethodname, you have to specify the server to which to connect. If not specified, it will use the default localhost. factorymethodname, you must specify the port on which to connect. If not specified, it will use the default 9042. factorymethodname, you must specify the username to use for the connection. factorymethodname, you must specify the password to use for the connection. www.satellitevolta.com 6

To log through the library Volta Log, once imported the necessary libraries and configured Volta Log as appender for Apache Log4j 2, you have to use the class org.apache.log4j.logger [Ref.02]. For example, at any point in the java code of the project, you can enter the following instructions: Logger logger = Logger.getLogger( Logger name ); logger.error( Log message ); the execution of the above sample code will result in the insertion of a tuple in the log table of the appropriate keyspace Apache Cassandra, as configured in the file log4j2.xml. As in the example the log is made with priority error, the log will actually be stored in the DB if the level specified in the configuration file log4j2.xml is equal to or less restrictive then error. www.satellitevolta.com 7