Skip to content

Commit 9085918

Browse files
Documented hypr-audit sources. (#113)
Documented hypr-audit-trail() and hyper-app-audit-trail() and their available options.
2 parents 2cdd0b2 + 81851c2 commit 9085918

File tree

3 files changed

+126
-0
lines changed

3 files changed

+126
-0
lines changed

_data/external_links.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,11 @@ hadoop-rel:
881881
url: http://hadoop.apache.org/releases.html
882882
title: [ "Hadoop release page" ]
883883

884+
hypr-audit:
885+
id: hypr-audit
886+
url: https://apidocs.hypr.com/
887+
title: [ "Hypr REST API" ]
888+
884889
jellyfin:
885890
id: jellyfin
886891
url: https://jellyfin.org/
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: `hypr-audit-trail()` and `hypr-app-audit-trail()` source options
3+
id: adm-src-hypr-opt
4+
---
5+
6+
The `hypr-audit-trail()` and `hypr-app-audit-trail() sources have the following options:
7+
8+
## url()
9+
10+
| Type: | url|
11+
| Default:| |
12+
13+
*Description:* A custom URL for Hypr API access ("https://\<custom domain\>.hypr.com")
14+
15+
## bearer-token()
16+
17+
| Type: | token|
18+
| Default:| |
19+
20+
*Description:* The base64 encoded authentication token from Hypr.
21+
22+
## page-size()
23+
24+
| Type: | number|
25+
| Default:| 100|
26+
27+
*Description:* Defines the number of results to return in a single page (optional).
28+
29+
## initial-hours()
30+
31+
| Type: | number(hours)|
32+
| Default:| 4|
33+
34+
*Description:* Defines the number of hours to search backward on initial fetch (optional).
35+
36+
## application-skip-list()
37+
38+
| Type: | rpAppId list|
39+
| Default:| `HYPRDefaultApplication`, `HYPRDefaultWorkstationApplication`|
40+
41+
*Description:* The list of rpAppIds not to retrieve from Hypr (optional).
42+
43+
## log-level()
44+
45+
| Type: | string|
46+
| Default:| `INFO`|
47+
48+
The following values are available for log-level():
49+
50+
* `DEBUG`
51+
* `INFO`
52+
* `WARNING`
53+
* `ERROR`
54+
* `CRITICAL`
55+
56+
## flags()
57+
58+
| Type: | string|
59+
| Default:| |
60+
61+
*Description:* The flags passed to the source, can be used for example to disable message parsing with flags(no-parse) (optional).
62+
63+
## ignore-persistence()
64+
65+
| Type: | boolean|
66+
| Default:| `no`|
67+
68+
*Description:* This option can be set to ignore the saved value in the persist file, and start querying from the current time (optional).
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: 'Hypr Audit Trail and Hyper App Audit Trail'
3+
short_title: hypr
4+
id: adm-src-hypr
5+
description: >-
6+
This source is available in syslog-ng OSE 4.2 and later versions. Using this source syslog-ng OSE can fetch events from the Hypr REST API using the following drivers:
7+
---
8+
* `hypr-audit-trail()`: is a source driver that pulls messages from the Hypr API, associated to any RP Application ID.
9+
* `hypr-app-audit-trail()`: is a source driver that pulls messages from the Hypr API, but only those associated to a specific RP Application ID.
10+
11+
**Note:** Applications that are registered after syslog-ng is started are not recognized.
12+
{: .notice--info}
13+
14+
## Hyper Audit Trail
15+
16+
The `hypr-audit-trail()` source queries the Hypr API for the list of potential applications at startup, then monitors the audit trail for each of the detected applications.
17+
18+
To follow audit trails restart syslog-ng.
19+
20+
### Example: hypr-audit-trail minimal configuration
21+
22+
```config
23+
source s_hypr {
24+
hypr-audit-trail(
25+
url('https://<custom domain>.hypr.com')
26+
bearer-token('<base64 encoded bearer token>')
27+
);
28+
};
29+
```
30+
31+
### Example: hypr-audit-trail detailed configuration
32+
33+
```config
34+
source s_hypr {
35+
hypr-audit-trail(
36+
url('https://<custom domain>.hypr.com')
37+
bearer-token('<base64 encoded bearer token>')
38+
page-size(<number of results to return in a single page>)
39+
initial-hours(<number of hours to search backward on initial fetch>)
40+
application-skip-list('HYPRDefaultApplication', 'HYPRDefaultWorkstationApplication')
41+
log-level('INFO')
42+
flags(<optional flags passed to the source>)
43+
ignore-persistence(<yes/no>)
44+
);
45+
};
46+
```
47+
## Hypr App Audit Trail
48+
49+
The `hypr-app-audit-trail()` monitors the audit trail for one specific RP Application ID. This driver requires the `rp-app-id()` parameter in order to operate.
50+
51+
## Acknowledgements
52+
53+
These chapters are based on hypr-audit-trail() documentation written by Dan Elder and Axoflow.

0 commit comments

Comments
 (0)