https://github.com/amccool/am.extensions.logging.elasticsearch
Microsoft.Extensions.Logging compatible logger posting to ElasticSearch
https://github.com/amccool/am.extensions.logging.elasticsearch
elasticsearch ilogger
Last synced: about 1 month ago
JSON representation
Microsoft.Extensions.Logging compatible logger posting to ElasticSearch
- Host: GitHub
- URL: https://github.com/amccool/am.extensions.logging.elasticsearch
- Owner: amccool
- License: mit
- Created: 2018-03-20T01:23:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T04:54:54.000Z (about 1 year ago)
- Last Synced: 2025-03-25T08:42:42.926Z (2 months ago)
- Topics: elasticsearch, ilogger
- Language: C#
- Homepage:
- Size: 139 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AM.Extensions.Logging.ElasticSearch
Microsoft.Extensions.Logging compatible logger posting to ElasticSearch - master
ElasticSearch Logger is a ILogger based logger which submits events and data to ElasticSearch making them viewable with Kibana
[](https://www.nuget.org/packages/AM.Extensions.Logging.ElasticSearch/)
[](https://www.nuget.org/packages/AM.Extensions.Logging.ElasticSearch/)## Getting Started
Install the package from nuget.org https://www.nuget.org/packages/AM.Extensions.Logging.ElasticSearch
```ps
Install-Package AM.Extensions.Logging.ElasticSearch
``````
.AddLogging(builder =>
{
builder
.AddConfiguration(loggingConfiguration.GetSection("Logging"))
.AddElasticSearch(options =>
{
options.ElasticsearchEndpoint = new Uri(@"http://localhost:9200/");
//options.IndexName = "trace";
});
```Elasticsearch logging posting using a configurable index prefix
-YYYY-MM-DD-HH
the default prefix is "trace"see for setup of Elasticsearch index via kibana
PR's welcome