Giter Site home page Giter Site logo

windows-syslogd's Introduction

Syslog Server for Windows

General info

Syslog Server for Windows is a free open source program to receive syslog messages, reads syslog.conf in a Unix compatible format and runs as a Windows service.
Compatible with router and Linux syslog facilities and levels.

Technologies

Project is created with:

  • Visual Studio Community 2019
  • C++ MFC for latest v142-Buildtools (x86 & x64)
  • Windows 10 SDK (10.0.18362.0)
  • Microsoft Visual Studio Installer Projects Extension

Build

Choose options.

Choose options

Clone this repository.

Clone this repository

Add an extension.

Add an extension

Open ntservice.sln.

Open ntservice.sln

Run "Batch Build" as the image below.

Batch Build

Setup

Double-click setup\Release\syslogd.msi to install.

Double-click

Make sure that the "Syslog Server" service is started.

Syslog Server

Edit C:\Program Files (x86)\Common Files\syslogd\syslog.conf.
Warning: Since it cannot be overwritten as it is, copy it to another directory, edit it, and overwrite it.

Edit syslog conf

Usage

Stop the syslogd service and start debugging with cmd.exe.

C:\Program Files (x86)\Common Files\syslogd>syslogd.exe -DEBUG

Enable the 514/UDP port on the firewall.

Enable firewall

By default, the logs are output to the C:\ProgramData\syslogd directory. C:\ProgramData\syslogd directory is created automatically.

syslogd directory

You can use Local System environment variables to set the log output destination. Example:%ProgramData%\%Date%.log

local0.err    %ProgramData%\%Date%.log
syslog conf Example

Stop debugging, start the syslogd service.

syslog.conf

Below is a table of how much the specification is supported compared to FreeBSD's syslog.conf.

Features Support
facility detection
The special facility "mark"
priority level detection
include
Delimiter space / tab
Case insensitive
Comparison flag, equal =
Comparison flag, > < => >= !
program specification
!prog1,prog2
!-prog1,prog2
hostname specification
#+@ or +@
+hostname1,hostname2
-hostname1,hostname2
PROPERTY-BASED FILTERS
Reset filtering
Priority from behind ;semicolon
Comma separated facility
asterisk
none
Semicolon delimiter;Priority from behind
Action - minus sign
Action - @ sign forward host:port, IPv6 ✔(port, IPv6❌)
Action - list of users
Action - vertical bar "|"
Escape #

See also

Windows 版 syslogd サービスを作成した(C++) (Japanese text only)

windows-syslogd's People

Contributors

itc-lab avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shalevy1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.