This project consists of a log ingestor built with Go and a query interface built with React.js and Tailwind CSS. The ingestor handles vast volumes of log data, and the interface allows querying this data using full-text search or specific field filters.
Clone the repository:
git clone https://github.com/chrisdamba/go-react-log-seer.git
cd log-ingestor
Install dependencies:
go mod tidy
Start the log ingestor server:
go run main.go
Navigate to the React project directory:
cd log-query-interface
Install dependencies:
npm install
Start the development server:
npm start
To ingest sample logs, send a POST request to http://localhost:3000/logs
with the log data in JSON format:
{
"level": "error",
"message": "Failed to connect to DB",
"resourceId": "server-1234",
"timestamp": "2023-09-15T08:00:00Z",
"traceId": "abc-xyz-123",
"spanId": "span-456",
"commit": "5e5342f",
"metadata": {
"parentResourceId": "server-0987"
}
}