{"id":16913625,"url":"https://github.com/extrawurst/syslogservice","last_synced_at":"2026-02-06T10:11:07.054Z","repository":{"id":14720526,"uuid":"17441128","full_name":"extrawurst/syslogservice","owner":"extrawurst","description":"webservice that gathers arbitrary requests in syslog format on disk (we use this primarily to feed splunk)","archived":false,"fork":false,"pushed_at":"2017-01-05T11:32:02.000Z","size":26,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T17:44:08.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","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/extrawurst.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":"2014-03-05T13:16:18.000Z","updated_at":"2016-12-21T01:23:50.000Z","dependencies_parsed_at":"2022-09-23T03:50:38.721Z","dependency_job_id":null,"html_url":"https://github.com/extrawurst/syslogservice","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawurst%2Fsyslogservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawurst%2Fsyslogservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawurst%2Fsyslogservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrawurst%2Fsyslogservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extrawurst","download_url":"https://codeload.github.com/extrawurst/syslogservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244677796,"owners_count":20492108,"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","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":[],"created_at":"2024-10-13T19:14:14.177Z","updated_at":"2026-02-06T10:11:07.002Z","avatar_url":"https://github.com/extrawurst.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"syslogservice [![Build Status](https://api.travis-ci.org/Extrawurst/syslogservice.svg)](https://travis-ci.org/Extrawurst/syslogservice) [![version](https://img.shields.io/dub/v/syslogservice.svg)](https://code.dlang.org/packages/syslogservice) [![downloads](https://img.shields.io/dub/dt/syslogservice.svg)](https://code.dlang.org/packages/syslogservice)\n=============\n\nThis is a webservice that gathers arbitrary requests in syslog format on disk (we use this primarily to feed splunk)\n\nusage as application\n=============\n\nthis is a dub compatible package.\nrun it with default settings like this:\n\n```\ndub --config=\"application\"\n```\n\nwhich prints:\n```\nRunning .\\syslogservice.exe\nListening for HTTP requests on 0.0.0.0:8888\nhostname: hostUnknown\nquiet: true\nlogfolder: './'\nlogfilesuffix: ''\nlogFilesSplitByHour: false\n```\n\nnow the service listens on port 8888 for stuff to write to log.\ntest it using curl:\n```\ncurl --data \"param1=value1\u0026param2=value2\" http://localhost:8888/event\ncurl --data \"param1=value1\u0026param2=value2\" http://localhost:8888/foo/bar\n```\n\nwhich leads to a log line like this:\n```\nMar 05 15:30:40 hostUnknown - event [param1=\"value1\" param2=\"value2\" ]\nMar 05 15:30:40 hostUnknown foo - bar [param1=\"value1\" param2=\"value2\" ]\n```\n\ncmd line\n-------------\n\n```\n--folder=\u003cvalue\u003e \t\tlog folder (default './'\n--hostport=\u003cvalue\u003e\t\tport (default '8888')\n--hostname=\u003cvalue\u003e\t\thostname (default 'hostUnknown'\n--quiet          \t\tdisable logging of each request to stdout (default 'true')\n--filePerHour    \t\tsplit log files per hour (default is split per day)\n--file-suffix=\u003cvalue\u003e\tadded to every log filename (default is '')\n```\n\nusage as lib\n=============\n\nadd the dependancy:\n```\n{\n\t...\n\t\"dependencies\": {\n\t\t\"syslogservice\": \"~master\"\n\t}\n}\n```\n\nserver\n-------------\n\nto host a syslogservice simply use this:\n```\nimport syslog.service;\n\nshared static this()\n{\n\tauto logger = new SysLogService();\n\tlogger.port = 8888;\n\tlogger.start();\n}\n```\n\nclient\n-------------\n\nmore importantly this is how you can write to such a service from you code:\n```\nimport syslog.serviceclient;\n\nSyslogServiceClient logger = new SyslogServiceClient(\"http://localhost:8888/\");\n\nlogger.log!\"event1\"();\nlogger.log!\"event2\"([\"param2\":\"value\"]);\n// or using the auto converter template:\nlogger.log!\"event3\"(\n\t\"param2\",\"someString\",\n\t\"param3\",42,\n\t\"param4\",true);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawurst%2Fsyslogservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextrawurst%2Fsyslogservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrawurst%2Fsyslogservice/lists"}