Logstash sender for .NET - Send events to logstash instance via TCP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
NetStash + Add Sqlite Vacuum Nov 2, 2018
Nuget + Add Sqlite Vacuum Nov 2, 2018
Samples/SampleApp + Add Sqlite Vacuum Nov 2, 2018
Versions + Add Sqlite Vacuum Nov 2, 2018
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. Mar 30, 2016
.gitignore Nuget Mar 30, 2016
LICENSE Initial commit Mar 30, 2016
NetStash.sln + Add Sqlite Vacuum Nov 2, 2018
README.md Update README.md Nov 2, 2018

README.md

NetStash

Logstash sender for .NET

Send events to logstash instance via TCP

Saves all events into a sqlite database to prevent loss from network issues

Automatic synchronization when network connection is stablished

Installation

Nugget Package: https://www.nuget.org/packages/NetStash

PM > Install-Package NetStash

Usage

NetStashLog log = new NetStashLog("myhostname", 1233, "NSTest", "NSTestLog");

Dictionary<string, string> vals = new Dictionary<string, string>();
//Additional fields
vals.Add("customerid", "1235");

log.Error("Testing", vals);

Logstash config

input {
  tcp {
    port => 1233
    host => "192.168.0.151"
    codec => json
  }
}
filter {
  mutate { gsub => ["message", "@($NL$)@", "\r\n"] }
}
output {
  elasticsearch {

  }
}

Who is using

Iron Mountain Brasil

  • All internals logs systems.