Git Product home page Git Product logo

logcollect's Introduction

logcollect

Log collect is a project which aims to provide a simple, easy and cheap way if indexing and searching log files. the project is based on the clucene library and is primary developed using C++ and a little PHP.

Dependencies

Log collect have several dependencies

  • jansson (C library for creating and reading JSON)
  • Clucene (C++ implementation of apache lucene fulltext index)
  • PCRE (C Library for using perl regular expressions)
  • libconfig (C/C++ library for parsing configuration files)

You will also need a system that has support for kqueue (*BSD or Mac OS X)

Compiling

To compile it just run make, if you have a ny trouble you might need to the include and library paths specified within the Makefile

Indexing data

The logdcollectd command reads log data from standard input, in order to make it start indexing, just pass some log data via a pipe into logcollectd and it will index using the rules specified in the command line arguments.

Usage: logcollectd -c <config>

-c config file location

Searching data

Simply add a alias to the www folder form you webserver and access the test.php file and start searching. the query format must conform the the standard lucene query syntax

http://lucene.apache.org/core/3_6_2/queryparsersyntax.html

Searching can also be done from the command line, however the search tool returns json, and can be called using the following arguments.

Usage: search -f <format> -i <index> -r <rules>

-i Index location
-f Default search field field
-q Lucene query string

logcollect's People

Contributors

qvistgaard 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.