Skip to content

Commit 2dd95b4

Browse files
committed
add PlatformVersion
1 parent 3a0c5ce commit 2dd95b4

File tree

1 file changed

+10
-4
lines changed
  • crowdsec-docs/docs/log_processor/service-discovery-setup

1 file changed

+10
-4
lines changed

crowdsec-docs/docs/log_processor/service-discovery-setup/expr.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ Various helpers are available for use in the `detect.yaml` file to determine how
4646

4747
    Returns the family of the OS (`debian`, `rhel`, ...)
4848

49-
> `Host.Platform == "debian"`
49+
> `Host.PlatformFamily == "debian"`
50+
51+
### `Host.PlatformVersion`
52+
53+
    Returns the version of the OS or distribution (for linux, /etc/os-release)
54+
55+
> `Host.PlatformVersion == "25.04"
5056
5157
### `Host.KernelVersion`
5258

@@ -98,13 +104,13 @@ This object exposes helpers functions for the filesystem
98104

99105
### `ProcessRunning(name) bool`
100106

101-
    Returns `true` if there's any with the specified name running
107+
    Returns `true` if there's any process with the specified name running
102108

103109
> `System.ProcessRunning("nginx") == true`
104110
105111
## Systemd
106112

107-
    This object exposes helpers to get informations about systemd units.
113+
    This object exposes helpers to get informations about Systemd units.
108114

109115
    Only available on Linux.
110116

@@ -148,4 +154,4 @@ This object exposes helpers functions for the filesystem
148154

149155
&nbsp;&nbsp;&nbsp;&nbsp;Constraint supports operators like `=`, `!=`, `<`, `<=`, `>`, `>=`, ranges (1.1.1 - 1.3.4), AND with commas (`>1`, `<3`), and ~ compatible ranges.
150156

151-
> `Version.Check(Host.KernelVersion, ">=6.24.0")`
157+
> `Version.Check(Host.KernelVersion, ">=6.24.0")`

0 commit comments

Comments
 (0)