{"id":28831572,"url":"https://github.com/netcorext/serilog.sinks.queuing.redis","last_synced_at":"2026-05-07T15:41:11.699Z","repository":{"id":65505404,"uuid":"444388949","full_name":"NETCOREXT/Serilog.Sinks.Queuing.Redis","owner":"NETCOREXT","description":"Write Serilog events to Redis Stream and store to Elasticsearch","archived":false,"fork":false,"pushed_at":"2023-04-10T08:05:50.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T03:21:18.993Z","etag":null,"topics":["elasticsearch","redis","serilog-sink"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NETCOREXT.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}},"created_at":"2022-01-04T11:11:20.000Z","updated_at":"2022-12-22T07:41:57.000Z","dependencies_parsed_at":"2023-02-08T08:15:47.702Z","dependency_job_id":null,"html_url":"https://github.com/NETCOREXT/Serilog.Sinks.Queuing.Redis","commit_stats":null,"previous_names":["arenchen/serilog.sinks.queuing.redis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NETCOREXT/Serilog.Sinks.Queuing.Redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETCOREXT%2FSerilog.Sinks.Queuing.Redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETCOREXT%2FSerilog.Sinks.Queuing.Redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETCOREXT%2FSerilog.Sinks.Queuing.Redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETCOREXT%2FSerilog.Sinks.Queuing.Redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NETCOREXT","download_url":"https://codeload.github.com/NETCOREXT/Serilog.Sinks.Queuing.Redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NETCOREXT%2FSerilog.Sinks.Queuing.Redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278703574,"owners_count":26031205,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elasticsearch","redis","serilog-sink"],"created_at":"2025-06-19T07:00:44.660Z","updated_at":"2025-10-07T00:57:23.815Z","avatar_url":"https://github.com/NETCOREXT.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serilog.Sinks.Queuing.Redis\n\n[![Nuget](https://img.shields.io/nuget/v/Serilog.Sinks.Queuing.Redis)](https://www.nuget.org/packages/Serilog.Sinks.Queuing.Redis)\n\nWrite Serilog events to Redis Stream and store them in Elasticsearch\n\n---\n\n## Example for ASP.NET 6\n### Step 1\nAdd package reference\n```\ndotnet add package Serilog.Sinks.Queuing.Redis.ElasticHook\n```\n### Step 2\nConfigure Logging in Program.cs\n```\nvar builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddElasticRedisStreamHook((provider, options) =\u003e\n                                           {\n                                               options.ElasticsearchHost = \"http://localhost:9200\";\n                                               options.ApiKey = \"foo bar\";\n                                               options.Index = \"log-\";\n                                               options.IndexFormatPattern = \"yyyyMMdd\";\n                                           });\nbuilder.Services.AddRedisQueuingSink((provider, options) =\u003e\n                                     {\n                                         options.RedisConnectionString = \"127.0.0.1:6379\";\n                                         options.StreamKey = \"logging\";\n                                         options.NotificationChannel = \"logging\";\n                                     });\nbuilder.ConfigureLogging((context, builder) =\u003e\n                         {\n                             builder.ClearProviders();\n                             builder.AddSerilog();\n                         })\n       .UseSerilog((ctx, provider, lc) =\u003e\n                   {\n                       var redisQueuingSinkOptions = provider.GetRequiredService\u003cRedisQueuingSinkOptions\u003e();\n                       \n                       lc.ReadFrom.Configuration(ctx.Configuration)\n                         .Enrich.FromLogContext()\n                         .WriteTo.RedisQueuingSink(redisQueuingSinkOptions);\n                   });\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcorext%2Fserilog.sinks.queuing.redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetcorext%2Fserilog.sinks.queuing.redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcorext%2Fserilog.sinks.queuing.redis/lists"}