Skip to content

Log-Minder: Your reliable audit logging solution for tracking user activities seamlessly. Scalable, secure, and easy to integrate for comprehensive visibility.

Notifications You must be signed in to change notification settings

ismoilroziboyev/log-minder

Repository files navigation

Log Minder

Log Minder is a logging service developed in Go (Golang) using Gin for HTTP server and MongoDB for data storage. It provides a simple HTTP request-response server for logging user activities. The service is designed to audit user actions for various applications.

Features

  • HTTP Server: The service provides an HTTP server to handle logging requests and responses.
  • MongoDB Integration: User activities are stored in MongoDB for auditing purposes.
  • Auditing: Log Minder logs user activities to track actions within applications.

Getting Started

Prerequisites

  • Go (Golang)
  • MongoDB

Installation

  1. Clone the repository:

    git clone https://github.com/ismoilroziboyev/log-minder.git
    
  2. Navigate to the project directory:

    cd log-minder
    
  3. Install dependencies:

    go mod tidy
    

Usage

  1. Start the mongodb service.

  2. Declare environment variables:

     MONGO_URI=mongodb://admin:password@localhost:27017/log_minder_db
    MONGO_DB=log_minder_db
    ADMIN_USER=admin
    ADMIN_PASSWORD=password
    
  3. Build and run log-minder application:

    go run main.go
    

The server should now be running on http://localhost:35468.

Endpoints

  • POST : /v1/logs - endpoint to insert logs;
  • POST: /v1/logs/retreive - endpoint to retreive logs with filter options;
  • GET: /v1/swagger/index.html - Swagger documentation for Log Minder HTTP server APIs.;

Future Tasks

  • Kafka Consumers: Implement Kafka consumers to consume log messages from Kafka topics.
  • RabbitMQ Consumers: Implement RabbitMQ consumers to consume log messages from RabbitMQ queues.

About

Log-Minder: Your reliable audit logging solution for tracking user activities seamlessly. Scalable, secure, and easy to integrate for comprehensive visibility.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published