Skip to main content

Performing Complex Searches and Reporting on Application Log Files

  • Chapter
Pro Python System Administration
  • 2156 Accesses

Abstract

System administration duties often include installing and supporting various applications. These may be either produced by open-source communities or developed in-house. There are also a wide variety of languages used when developing those applications; common languages found these days would be Java, PHP, Python, Ruby and (yes, some still are using it) Perl. In this chapter I am going to talk about applications developed in Java as this seems to be the most common language selected by large enterprises for their web applications. Java applications commonly run within the application server container, such as Tomcat, Jetty, Websphere, or JBoss. You as a system administrator need to know whether the application is running correctly. Every well-organized and structured application is supposed to write its status to one or more log files; in the Java world, this is usually done via the log4j adapter. By observing the log file, a system administrator can detect any faults and failures within the application, which are commonly logged as exception stack traces. The logging of a full exception stack trace usually indicates an unrecoverable error—an error that the application was not able to handle itself. If you do not happen to have many requests, and the application is merely doing anything, catching these exceptions and analyzing them can be done by hand. However, if you need to manage hundreds of servers and there are tens of GBs of information produced, you surely need some automated tools to gather and analyze the data for you. In this chapter I am going to explain how I developed the open-source tool called Exctractor (no, this is not a typo, the name is constructed by joining two words: exception and extractor) and how it functions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Duncan Parkes Michelle Lowman Clay Andres Steve Anglin Mark Beckner Ewan Buckingham Gary Cornell Jonathan Gennick Jonathan Hassell Matthew Moodie Jeffrey Pepper Frank Pohlmann Douglas Pundick Ben Renow-Clarke Dominic Shakeshaft Matt Wade Tom Welsh Mary Tobin Jennifer L. Blackwell Jim Compton Heather Lang Marilyn Smith

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Rytis Sileika

About this chapter

Cite this chapter

(2010). Performing Complex Searches and Reporting on Application Log Files. In: Parkes, D., et al. Pro Python System Administration. Apress. https://doi.org/10.1007/978-1-4302-2606-2_7

Download citation

Publish with us

Policies and ethics