{"id":17787874,"url":"https://github.com/fantasticfiasco/serilog-sinks-http-sample-elastic-stack","last_synced_at":"2025-09-30T01:31:52.764Z","repository":{"id":23740684,"uuid":"99737074","full_name":"FantasticFiasco/serilog-sinks-http-sample-elastic-stack","owner":"FantasticFiasco","description":"Sample application of Serilog.Sinks.Http sending log events to Elastic Stack.","archived":false,"fork":false,"pushed_at":"2025-01-01T13:34:20.000Z","size":392,"stargazers_count":18,"open_issues_count":4,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-11T13:21:01.826Z","etag":null,"topics":["dotnet","elastic-stack","elasticsearch","elk","kibana","logstash","serilog","serilog-sink"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FantasticFiasco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-08T21:19:47.000Z","updated_at":"2025-01-01T13:33:50.000Z","dependencies_parsed_at":"2023-11-19T20:21:52.152Z","dependency_job_id":"332a1d26-84db-41ee-8f48-c58db54368af","html_url":"https://github.com/FantasticFiasco/serilog-sinks-http-sample-elastic-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticFiasco%2Fserilog-sinks-http-sample-elastic-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticFiasco%2Fserilog-sinks-http-sample-elastic-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticFiasco%2Fserilog-sinks-http-sample-elastic-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticFiasco%2Fserilog-sinks-http-sample-elastic-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FantasticFiasco","download_url":"https://codeload.github.com/FantasticFiasco/serilog-sinks-http-sample-elastic-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234685306,"owners_count":18871441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","elastic-stack","elasticsearch","elk","kibana","logstash","serilog","serilog-sink"],"created_at":"2024-10-27T10:13:08.692Z","updated_at":"2025-09-30T01:31:52.412Z","avatar_url":"https://github.com/FantasticFiasco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- omit from toc --\u003e\n# Serilog and the Elastic Stack\n\n\u003c!-- omit from toc --\u003e\n## Table of contents\n\n- [Introduction](#introduction)\n- [What you will end up with](#what-you-will-end-up-with)\n- [Requirements](#requirements)\n- [Usage](#usage)\n  - [Bringing up Elastic Stack](#bringing-up-elastic-stack)\n  - [Publishing log events using Serilog](#publishing-log-events-using-serilog)\n  - [Using Kibana to render the log events](#using-kibana-to-render-the-log-events)\n- [Credit](#credit)\n\n---\n\n## Introduction\n\n[Elastic Stack](https://www.elastic.co/products) is fantastic at collecting and visualizing log events. [Serilog](https://serilog.net/) is fantastic at producing structured log events. This repository provides a sandbox where developers can explore the life of a log event starting with its birth in Serilog, its transport over the network to Logstash, its fields being indexed by Elasticsearch and finally its legacy being recorded as a historical event in Kibana.\n\n## What you will end up with\n\n![alt text](./doc/resources/kibana.png \"Kibana rendering log events\")\n\nWith a running Elastic Stack and Serilog producing log events you are now ready to take it to the next level. If you fancy the producing part you'll dig deeper into Serilog and its configuration of log contexts, enrichers and message formatters. If you enjoy monitoring applications in production you'll explore Kibana with its visualizations and dashboards.\n\n## Requirements\n\n- [Docker](https://www.docker.com/community-edition#/download)\n\n## Usage\n\n### Bringing up Elastic Stack\n\nStart the stack using `docker`:\n\n```posh\ncd .\\elastic-stack\\\n\n# This command is only necessary the first time the stack is started\ndocker compose up setup\n\ndocker compose up\n```\n\n### Publishing log events using Serilog\n\nRun the following commands to publish log events to Logstash using Serilog:\n\n```posh\ncd .\\serilog\\\ndocker compose up\n```\n\nIf you decide to run the application outside of Docker in your terminal, don't forget to change the request URI to `http://localhost:31311`. More information can be found in `.\\serilog\\Program.cs`.\n\n### Using Kibana to render the log events\n\nAccess the Kibana web UI by hitting [http://localhost:5601](http://localhost:5601) with a web browser, and when prompted enter username `elastic` and password `changeme`.\n\n## Credit\n\nThe `elastic-stack` directory is a clone of [docker-elk](https://github.com/deviantony/docker-elk) with minor modifications. Credit to [deviantony](https://github.com/deviantony) for publishing the Elastic Stack boilerplate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticfiasco%2Fserilog-sinks-http-sample-elastic-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasticfiasco%2Fserilog-sinks-http-sample-elastic-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticfiasco%2Fserilog-sinks-http-sample-elastic-stack/lists"}