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.
- 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.
- Go (Golang)
- MongoDB
-
Clone the repository:
git clone https://github.com/ismoilroziboyev/log-minder.git
-
Navigate to the project directory:
cd log-minder
-
Install dependencies:
go mod tidy
-
Start the mongodb service.
-
Declare environment variables:
MONGO_URI=mongodb://admin:password@localhost:27017/log_minder_db MONGO_DB=log_minder_db ADMIN_USER=admin ADMIN_PASSWORD=password
-
Build and run log-minder application:
go run main.go
The server should now be running on http://localhost:35468
.
- 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.;
- Kafka Consumers: Implement Kafka consumers to consume log messages from Kafka topics.
- RabbitMQ Consumers: Implement RabbitMQ consumers to consume log messages from RabbitMQ queues.