diff --git a/Packages.dgml b/Packages.dgml new file mode 100644 index 0000000..504c19f --- /dev/null +++ b/Packages.dgml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 191db3a..b7988e3 100644 --- a/README.md +++ b/README.md @@ -128,4 +128,28 @@ Options: Default is -configFile:default.json ``` +### Quickstart Guide +If you really just want to try it out, grab the binary distribution, extract the .zip file +into a directory, e.g. C:\TimberWinR + +Grab the [JSON example file](https://github.com/efontana/TimberWinR/blob/master/TimberWinR.ServiceHost/default.json) and place it into C:\TimberWinR\default.json. +Edit the default.json file and change the Redis instance to match yours, replace 'tstlexiceapp006.vistaprint.svc' with the IP or DNS name +of the machine running redis. Fire up the collector, enable the verbose debugging to see some Windows Events. + +``` +TimberWinR.ServiceHost.Exe -configFile:default.json -logLevel:Debug +``` + +You should see + + +To run it as a service +``` +TimberWinR.ServiceHost.exe install --autostart +TimberWinR.ServiceHost.exe start +``` + + + + diff --git a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.1.0.0.0.nupkg b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.1.0.0.0.nupkg new file mode 100644 index 0000000..ad75add Binary files /dev/null and b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.1.0.0.0.nupkg differ diff --git a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj index f568176..b3c5b3c 100644 --- a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj +++ b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj @@ -33,7 +33,7 @@ - ..\packages\RapidRegex.Core.1.0.0.0\lib\net40\RapidRegex.Core.dll + ..\packages\RapidRegex.Core.1.0.0.2\lib\net40\RapidRegex.Core.dll @@ -56,7 +56,13 @@ PreserveNewest - + + PreserveNewest + + + Designer + + diff --git a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.nuspec b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.nuspec new file mode 100644 index 0000000..6ed3d0a --- /dev/null +++ b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.nuspec @@ -0,0 +1,23 @@ + + + + TimberWinR.ServiceHost + $version$ + TimberWinR.ServiceHost + efontana + efontana + http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE + http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE + http://ICON_URL_HERE_OR_DELETE_THIS_LINE + false + TimberWinR Service + Summary of changes made in this release of the package. + Copyright 2014 + Tag1 Tag2 + + + + + + + \ No newline at end of file diff --git a/TimberWinR.ServiceHost/default.json b/TimberWinR.ServiceHost/default.json new file mode 100644 index 0000000..9142eea --- /dev/null +++ b/TimberWinR.ServiceHost/default.json @@ -0,0 +1,30 @@ +{ + "TimberWinR": { + "Inputs": { + "WindowsEvents": [ + { + "source": "System,Application", + "binaryFormat": "PRINT", + "resolveSIDS": true + } + ], + "Tcp": [ + { + "_comment": "Output from NLog", + "port": 5140 + } + ] + }, + "Outputs": { + "Redis": [ + { + "_comment": "Change the host to your Redis instance", + "port": 6379, + "host": [ + "tstlexiceapp006.vistaprint.svc" + ] + } + ] + } + } +} diff --git a/TimberWinR.ServiceHost/packages.config b/TimberWinR.ServiceHost/packages.config index 13a6181..d59c88d 100644 --- a/TimberWinR.ServiceHost/packages.config +++ b/TimberWinR.ServiceHost/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/TimberWinR/Manager.cs b/TimberWinR/Manager.cs index 83044fe..93c70a0 100644 --- a/TimberWinR/Manager.cs +++ b/TimberWinR/Manager.cs @@ -55,15 +55,15 @@ namespace TimberWinR LogManager.GlobalThreshold = LogLevel.FromString(logLevel); - FileInfo fi = new FileInfo(jsonConfigFile); - + var fi = new FileInfo(jsonConfigFile); + if (!fi.Exists) + throw new FileNotFoundException("Missing config file", jsonConfigFile); + LogManager.GetCurrentClassLogger().Info("Initialized, Reading Config: {0}", fi.FullName); LogManager.GetCurrentClassLogger().Info("Log Directory {0}", logfileDir); LogManager.GetCurrentClassLogger().Info("Logging Level: {0}", LogManager.GlobalThreshold); - if (!fi.Exists) - throw new FileNotFoundException("Missing config file", jsonConfigFile); - + // Read the Configuration file Config = Configuration.FromFile(jsonConfigFile); diff --git a/TimberWinR/TimberWinR.csproj b/TimberWinR/TimberWinR.csproj index de47cf5..2f695da 100644 --- a/TimberWinR/TimberWinR.csproj +++ b/TimberWinR/TimberWinR.csproj @@ -46,9 +46,8 @@ ..\packages\NLog.3.1.0.0\lib\net40\NLog.dll - - False - ..\packages\RapidRegex.Core.1.0.0.0\lib\net40\RapidRegex.Core.dll + + ..\packages\RapidRegex.Core.1.0.0.2\lib\net40\RapidRegex.Core.dll diff --git a/TimberWinR/TimberWinR.nuspec b/TimberWinR/TimberWinR.nuspec index 61a5bdc..f420f15 100644 --- a/TimberWinR/TimberWinR.nuspec +++ b/TimberWinR/TimberWinR.nuspec @@ -14,6 +14,7 @@ + diff --git a/TimberWinR/packages.config b/TimberWinR/packages.config index 3c8f056..86e6a79 100644 --- a/TimberWinR/packages.config +++ b/TimberWinR/packages.config @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg b/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg deleted file mode 100644 index 923f7e8..0000000 Binary files a/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg and /dev/null differ diff --git a/packages/RapidRegex.Core.1.0.0.2/RapidRegex.Core.1.0.0.2.nupkg b/packages/RapidRegex.Core.1.0.0.2/RapidRegex.Core.1.0.0.2.nupkg new file mode 100644 index 0000000..73a2b4a Binary files /dev/null and b/packages/RapidRegex.Core.1.0.0.2/RapidRegex.Core.1.0.0.2.nupkg differ diff --git a/packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll b/packages/RapidRegex.Core.1.0.0.2/lib/net40/RapidRegex.Core.dll similarity index 100% rename from packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll rename to packages/RapidRegex.Core.1.0.0.2/lib/net40/RapidRegex.Core.dll