diff --git a/README.md b/README.md index 6f5349e..8f63656 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ All received messages are written to *stdout* and/or forwarded to a remote loggi The syslog server is able to listen on both UDP and TCP and parses syslog messages in either RFC5424 or RFC3164 (BSD) format. +This software is free to use and is licensed under the [Apache 2.0 License](https://bitbucket.org/mnellemann/syslogd/src/master/LICENSE). + ![architecture](https://bitbucket.org/mnellemann/syslogd/downloads/syslogd.svg) The default syslog port (514) requires you to run syslogd as root / administrator. diff --git a/src/main/java/biz/nellemann/syslogd/Ansi.java b/src/main/java/biz/nellemann/syslogd/Ansi.java index 4d1d185..57b7e4a 100644 --- a/src/main/java/biz/nellemann/syslogd/Ansi.java +++ b/src/main/java/biz/nellemann/syslogd/Ansi.java @@ -1,3 +1,18 @@ +/* + Copyright 2021 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd; public enum Ansi { diff --git a/src/main/java/biz/nellemann/syslogd/SyslogPrinter.java b/src/main/java/biz/nellemann/syslogd/SyslogPrinter.java index a02157c..f0cc824 100644 --- a/src/main/java/biz/nellemann/syslogd/SyslogPrinter.java +++ b/src/main/java/biz/nellemann/syslogd/SyslogPrinter.java @@ -1,3 +1,18 @@ +/* + Copyright 2021 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd; import biz.nellemann.syslogd.msg.Facility; diff --git a/src/main/java/biz/nellemann/syslogd/VersionProvider.java b/src/main/java/biz/nellemann/syslogd/VersionProvider.java index 6e1a188..c6cb518 100644 --- a/src/main/java/biz/nellemann/syslogd/VersionProvider.java +++ b/src/main/java/biz/nellemann/syslogd/VersionProvider.java @@ -1,3 +1,18 @@ +/* + Copyright 2021 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd; import picocli.CommandLine; diff --git a/src/main/java/biz/nellemann/syslogd/msg/Facility.java b/src/main/java/biz/nellemann/syslogd/msg/Facility.java index 388da34..6895900 100644 --- a/src/main/java/biz/nellemann/syslogd/msg/Facility.java +++ b/src/main/java/biz/nellemann/syslogd/msg/Facility.java @@ -1,3 +1,18 @@ +/* + Copyright 2020 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd.msg; import java.util.HashMap; diff --git a/src/main/java/biz/nellemann/syslogd/msg/Severity.java b/src/main/java/biz/nellemann/syslogd/msg/Severity.java index 5a12114..2986129 100644 --- a/src/main/java/biz/nellemann/syslogd/msg/Severity.java +++ b/src/main/java/biz/nellemann/syslogd/msg/Severity.java @@ -1,3 +1,18 @@ +/* + Copyright 2020 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd.msg; import java.util.HashMap; diff --git a/src/main/java/biz/nellemann/syslogd/net/LokiClient.java b/src/main/java/biz/nellemann/syslogd/net/LokiClient.java index 08118ab..c27c7bc 100644 --- a/src/main/java/biz/nellemann/syslogd/net/LokiClient.java +++ b/src/main/java/biz/nellemann/syslogd/net/LokiClient.java @@ -1,3 +1,18 @@ +/* + Copyright 2021 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd.net; import org.slf4j.Logger; diff --git a/src/main/java/biz/nellemann/syslogd/net/UdpClient.java b/src/main/java/biz/nellemann/syslogd/net/UdpClient.java index 76e1a03..4f29ef9 100644 --- a/src/main/java/biz/nellemann/syslogd/net/UdpClient.java +++ b/src/main/java/biz/nellemann/syslogd/net/UdpClient.java @@ -1,3 +1,18 @@ +/* + Copyright 2021 mark.nellemann@gmail.com + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + */ package biz.nellemann.syslogd.net; import org.slf4j.Logger; diff --git a/src/main/java/biz/nellemann/syslogd/parser/JsonUtil.java b/src/main/java/biz/nellemann/syslogd/parser/JsonUtil.java index 9a8918f..14882fa 100644 --- a/src/main/java/biz/nellemann/syslogd/parser/JsonUtil.java +++ b/src/main/java/biz/nellemann/syslogd/parser/JsonUtil.java @@ -1,8 +1,8 @@ -package biz.nellemann.syslogd.parser; - /* - Code from https://gist.github.com/jjfiv/2ac5c081e088779f49aa, which is BSD licensed: http://lemurproject.org/galago-license + This code is from https://gist.github.com/jjfiv/2ac5c081e088779f49aa, which is BSD licensed: + http://lemurproject.org/galago-license */ +package biz.nellemann.syslogd.parser; public class JsonUtil {