Skip to content

Commit 377ed3d

Browse files
authored
Merge branch 'master' into persist-name-update
2 parents 49e450c + ba03494 commit 377ed3d

File tree

206 files changed

+591
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+591
-305
lines changed

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ gem "faraday-retry"
8989
# that could lead to build error:
9090
# /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)
9191
# @level_override[Fiber.current] || @level
92+
gem "logger"
9293
gem "mercenary", "~> 0.4"
94+
gem "ostruct"
9395

9496
# self made plugins dependencies
9597
gem "nokogiri"
@@ -100,6 +102,7 @@ gem "nokogiri"
100102
group :jekyll_plugins do
101103

102104
gem "jekyll-remote-theme"
105+
gem "jekyll-github-metadata"
103106
# gem "jekyll-paginate"
104107
# gem "jekyll-sitemap"
105108
# gem "jekyll-gist"

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ plugins:
2424
- jekyll-sitemap # Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site.
2525
- jekyll-gist # Liquid tag for displaying GitHub Gists in Jekyll sites.
2626
- jekyll-include-cache # Liquid tag that caches Liquid includes.
27+
- jekyll-github-metadata
2728

2829
# Whitelist plugins under safe mode.
2930
whitelist:
@@ -256,3 +257,5 @@ footer:
256257
product:
257258
name: 'syslog-ng Open Source Edition'
258259
short_name: 'syslog-ng OSE'
260+
261+
repository: syslog-ng/syslog-ng

_data/navigation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -836,13 +836,13 @@ admin-guide-nav:
836836
url: /admin-guide/120_Parser/014_panos_parser/001_Panos_parser_options
837837
- title: "Sudo parser"
838838
url: /admin-guide/120_Parser/015_sudo_parser
839+
- title: "MariaDB parser"
840+
url: /admin-guide/120_Parser/016_mariadb_parser
839841
- title: "PostgreSQL parser"
840842
url: /admin-guide/120_Parser/016_PostgreSQL_csvlog_parser/README
841843
subnav:
842844
- title: "PostgreSQL csvlog parser options"
843845
url: /admin-guide/120_Parser/016_PostgreSQL_csvlog_parser/001_PostgreSQL_parser_options
844-
- title: "MariaDB parser"
845-
url: /admin-guide/120_Parser/016_mariadb_parser
846846
- title: "metrics-probe()"
847847
url: /admin-guide/120_Parser/017_metrics_probe_parser/README
848848
subnav:

_includes/doc/common_snippets

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ that contains the include tag, further inherited e.g. layouts will not see the i
1212

1313
{% assign img_folder = '/assets/images' | relative_url %}
1414

15+
{% assign ose_latest = site.github.latest_release.name | remove: '.tar.gz' | remove: 'syslog-ng-' %}
16+
1517
{% include doc/dev-guide/common_snippets %}
1618

1719
{% include doc/admin-guide/common_snippets %}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: What {{ site.product.short_name }} is not
33
id: adm-intro-whatnot
4+
description: >-
5+
The {{ site.product.short_name }} application is not log analysis software. It can filter
6+
log messages and select only the ones matching certain criteria. It can
7+
even convert the messages and restructure them to a predefined format,
8+
or parse the messages and segment them into different fields. But
9+
{{ site.product.short_name }} cannot interpret and analyze the meaning behind the messages,
10+
or recognize patterns in the occurrence of different messages.
411
---
5-
6-
The {{ site.product.short_name }} application is not log analysis software. It can filter
7-
log messages and select only the ones matching certain criteria. It can
8-
even convert the messages and restructure them to a predefined format,
9-
or parse the messages and segment them into different fields. But
10-
{{ site.product.short_name }} cannot interpret and analyze the meaning behind the messages,
11-
or recognize patterns in the occurrence of different messages.

doc/_admin-guide/010_Introduction_to_syslog-ng/003_Who_uses_syslog-ng.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: Who uses {{ site.product.short_name }}?
33
id: adm-intro-who
4+
description: >-
5+
The {{ site.product.short_name }} application is used worldwide by companies and
6+
institutions who collect and manage the logs of several hosts, and want
7+
to store them in a centralized, organized way.
48
---
59

6-
The {{ site.product.short_name }} application is used worldwide by companies and
7-
institutions who collect and manage the logs of several hosts, and want
8-
to store them in a centralized, organized way. Using {{ site.product.short_name }} is
9-
particularly advantageous for:
10+
Using {{ site.product.short_name }} is particularly advantageous for:
1011

1112
- Internet Service Providers
1213

Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Supported platforms
33
id: adm-intro-supp
4+
description: >-
5+
The {{ site.product.short_name }} application is highly
6+
portable and is known to run on a wide range of hardware architectures
7+
(x86, x86_64, SUN Sparc, PowerPC 32 and 64, Alpha, ARM64) and operating
8+
systems, including Linux, BSD, Solaris, IBM AIX, HP-UX, macOS,
9+
Cygwin, and others.
410
---
511

6-
The {{ site.product.short_name }} application is highly
7-
portable and is known to run on a wide range of hardware architectures
8-
(x86, x86_64, SUN Sparc, PowerPC 32 and 64, Alpha, ARM64) and operating
9-
systems, including Linux, BSD, Solaris, IBM AIX, HP-UX, macOS,
10-
Cygwin, and others.
11-
1212
- The [[source code|gh-syslog-ng]] of {{ site.product.name }} is released under the GPLv2 license
1313

1414
- For the available binary installation packages, see {{ site.product.name }} installation packages.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Introduction to syslog-ng
33
id: adm-intro
4+
description: >-
5+
This chapter introduces the {{ site.product.name }} application in
6+
a non-technical manner, discussing how and why is it useful, and the
7+
benefits it offers to an existing IT infrastructure.
48
---
5-
6-
This chapter introduces the {{ site.product.name }} application in
7-
a non-technical manner, discussing how and why is it useful, and the
8-
benefits it offers to an existing IT infrastructure.

doc/_admin-guide/020_The_concepts_of_syslog-ng/003_Global_objects.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Global objects
33
id: adm-conc-glob
4+
description: >-
5+
This section explains some basic terminology used in {{ site.product.short_name }}.
46
---
57

68
## Source driver

doc/_admin-guide/030_Installing_syslog-ng/001_Compiling_options.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Compiling options of {{ site.product.short_name }}
33
id: adm-inst-compopt
4+
description: >-
5+
This chapter describes the compiling options of {{ site.product.short_name }}.
46
---
57

68
When compiling {{ site.product.short_name }} from source, you can use the following

doc/_admin-guide/030_Installing_syslog-ng/002_Uninstalling_syslog-ng.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Uninstalling {{ site.product.short_name }}
33
id: adm-inst-uninst
4+
description: >-
5+
This chapter gives you instructions about the uninstallation of {{ site.product.short_name }}.
46
---
57

68
If you need to uninstall {{ site.product.short_name }} for some reason, you have the

doc/_admin-guide/030_Installing_syslog-ng/003_Configuring_MSSQL_server.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
title: Configuring Microsoft SQL Server to accept logs from syslog-ng
2+
title: Configuring Microsoft SQL Server to accept logs from {{ site.product.short_name }}
33
short_title: Configuring MSSQL Server
44
id: adm-inst-mssql
5+
description: >-
6+
This chapter explains how to configure an MSSQL Server to work with {{ site.product.short_name }}.
57
---
68

79
{% assign crumb = page.url | split: '/' %}
810
{% assign img_folder = crumb[-2] | prepend: '/assets/images/admin-guide/'%}
911

1012
Complete the following steps to configure your Microsoft SQL Server to
11-
enable remote logins and accept log messages from syslog-ng.
13+
enable remote logins and accept log messages from {{ site.product.short_name }}.
1214

1315
1. Start the SQL Server Management Studio application. Select
1416
**Start \> Programs \> Microsoft SQL Server 2005 \> SQL Server

doc/_admin-guide/040_Quick-start_guide/000_Configuring_syslog-ng_on_client_hosts.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
title: Configuring {{ site.product.short_name }} on client hosts
33
id: adm-qs-client-conf
44
description: >-
5-
To configure {{ site.product.short_name }} on a client host, complete the following steps.
5+
This section explains how to configure {{ site.product.short_name }} on a client host.
66
---
77

8+
To configure {{ site.product.short_name }} on a client host, complete the following steps.
9+
810
## Steps
911

1012
1. Install the {{ site.product.short_name }} application on the host. For details

doc/_admin-guide/040_Quick-start_guide/001_Configuring_syslog-ng_on_server_hosts.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
title: Configuring {{ site.product.short_name }} on server hosts
33
id: adm-qs-server-conf
44
description: >-
5-
To configure {{ site.product.short_name }} on a server host, complete the following steps.
5+
This section explains how to configure {{ site.product.short_name }} on a server host.
66
---
77

8+
To configure {{ site.product.short_name }} on a server host, complete the following steps.
9+
810
## Steps
911

1012
1. Install the {{ site.product.short_name }} application on the host. For details

doc/_admin-guide/040_Quick-start_guide/002_Configuring_syslog-ng_relays/000_Configuring_syslog-ng_on_relay_hosts.md

-79
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,81 @@
11
---
22
title: Configuring {{ site.product.short_name }} relays
3-
id: adm-qs-conf
3+
id: adm-qs-relay-conf
44
description: >-
55
This section describes how to configure {{ site.product.short_name }} as a relay.
66
---
7+
8+
To configure {{ site.product.short_name }} as a relay, complete the following steps:
9+
10+
1. Install the {{ site.product.short_name }} application on the host. For details on
11+
installing {{ site.product.short_name }} on specific operating systems, see
12+
Installing syslog-ng.
13+
2. Configure the network sources that collect the log messages sent by
14+
the clients.
15+
16+
3. Create a network destination that points to the {{ site.product.short_name }} server.
17+
18+
4. Create a log statement connecting the network sources to the
19+
{{ site.product.short_name }} server.
20+
21+
5. Configure the local sources that collect the log messages of the
22+
relay host.
23+
24+
6. Create a log statement connecting the local sources to the syslog-ng
25+
server.
26+
27+
7. Enable the keep-hostname() and disable the chain-hostnames()
28+
options. (For details on how these options work, see
29+
chain-hostnames()
30+
31+
**NOTE:** It is recommended to use these options on your {{ site.product.short_name }}
32+
server as well.
33+
{: .notice--info}
34+
35+
8. Set filters and options (for example, TLS encryption) as necessary.
36+
37+
**NOTE:** By default, the {{ site.product.short_name }} server will treat the relayed
38+
messages as if they were created by the relay host, not the host
39+
that originally sent them to the relay. In order to use the original
40+
hostname on the {{ site.product.short_name }} server, use the **keep-hostname(yes)**
41+
option both on the {{ site.product.short_name }} relay and the {{ site.product.short_name }} server. This
42+
option can be set individually for every source if needed.
43+
{: .notice--info}
44+
45+
If you are relaying log messages and want to resolve IP addresses to
46+
hostnames, configure the first relay to do the name resolution.
47+
48+
Example: A simple configuration for relays
49+
50+
The following is a simple configuration file that collects local and
51+
incoming log messages and forwards them to a logserver using the
52+
IETF-syslog protocol.
53+
54+
```config
55+
@version: 3.38
56+
@include "scl.conf"
57+
58+
options {
59+
time-reap(30);
60+
mark-freq(10);
61+
keep-hostname(yes);
62+
chain-hostnames(no);
63+
};
64+
65+
source s_local {
66+
system(); internal();
67+
};
68+
69+
source s_network {
70+
syslog(transport(tcp));
71+
};
72+
73+
destination d_syslog_tcp {
74+
syslog("192.168.1.5" transport("tcp") port(2010));
75+
};
76+
77+
log {
78+
source(s_local); source(s_network);
79+
destination(d_syslog_tcp);
80+
};
81+
```

doc/_admin-guide/050_The_configuration_file/000_Location_of_the_config_file.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
title: Location of the {{ site.product.short_name }} configuration file
33
id: adm-conf-loc
44
description: >-
5-
To configure {{ site.product.short_name }}, edit the syslog-ng.conf file with any
6-
regular text editor application.
5+
This section describes the location of {{ site.product.short_name }} configuration file.
76
---
87

8+
To configure {{ site.product.short_name }}, edit the syslog-ng.conf file with any
9+
regular text editor application.
10+
911
The location of the configuration file depends on how you installed
1012
{{ site.product.short_name }}. Native packages of a platform (like the ones downloaded
1113
from Linux repositories) typically place the configuration file under

doc/_admin-guide/050_The_configuration_file/001_Configuration_syntax.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: The configuration syntax in detail
33
id: adm-conf-syn
4+
description: >-
5+
This chapter describes the configuration syntax of {{ site.product.short_name }}, with configuration
6+
examples.
47
---
58

69
Every {{ site.product.short_name }} configuration file must begin with a line containing the

doc/_admin-guide/050_The_configuration_file/002_Syntax_notes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
title: Notes about the configuration syntax
33
id: adm-conf-syn-notes
4+
description: >-
5+
Things to consider when editing a {{ site.product.short_name }}
6+
configuration file.
47
---
58

69
When you are editing the {{ site.product.short_name }} configuration file, note the

0 commit comments

Comments
 (0)