Skip to content

Commit cd7621d

Browse files
ajasnoszsbylica-splunkmstopa-splunkikheifets-splunk
authored
feat: release v3.38.0 (#2783)
* Changes to cisco asa and ftd parsers (#2765) Changes to cisco asa and ftd parsers * docs: updatw missing link in getting started (#2771) * fix: update dell powerstore index (#2770) * fix: update dell powerstore index * fix: remove change from enterprise * docs: Remove experimental status from SC4S Lite (#2773) Signed-off-by: mstopa-splunk <[email protected]> * feat: add Suricata parser (#2774) * docs: add Google Analytics tracking to documentation site (#2779) Signed-off-by: Ilya Kheifets <[email protected]> * fix: add powerstore index var (#2786) * fix: add SC4S_OPTION_DELL_POWERSTORE_INDEX variable * docs: rewrite documentation for powerstore --------- Signed-off-by: mstopa-splunk <[email protected]> Signed-off-by: Ilya Kheifets <[email protected]> Co-authored-by: Szymon Bylica <[email protected]> Co-authored-by: mstopa-splunk <[email protected]> Co-authored-by: Ilya Kheifets <[email protected]>
1 parent adc5e5d commit cd7621d

File tree

19 files changed

+257
-16
lines changed

19 files changed

+257
-16
lines changed

docs/experiments.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ SC4S processes incoming messages from a TCP connection in a single thread. While
1414

1515
To learn more, see the [Configuration documentation](./configuration.md#parallelize), as well as this [blog post](https://www.syslog-ng.com/community/b/blog/posts/accelerating-single-tcp-connections-in-syslog-ng-parallelize).
1616

17-
### SC4S Lite
18-
In the new 3.0.0 update, we've introduced SC4S Lite. SC4S Lite is designed for those who prefer speed and custom filters over the pre-set ones that come with the standard SC4S. It's similar to our default version, without the pre-defined filters and complex app_parser topics. More information can be found at [dedicated page.](./lite.md)
1917
## > 2.13.0
2018
* In `env_file`, SC4S sets `SC4S_USE_NAME_CACHE=yes` to enable caching of the last valid host string, replaces nill, null, or IPv4 with the last good value, and stores this information in the `hostip.sqlite` file.
2119
- Benefit: More correct host name values in Splunk when source vendor fails to provide valid syslog message.

docs/gettingstarted/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or resource constraint can cause data to be lost in transmission.
1717
* If you reguire high availability for SC4S, implement multi-node clustering.
1818
* Avoid TCP except where the source is unable to contain the event to a single UDP packet.
1919
* Avoid TLS except where the event may cross an untrusted network.
20-
* Plan for [appropriately sized hardware](../performance.md)
20+
* Plan for [appropriately sized hardware](../architecture/performance-tests.md)
2121

2222

2323
## Implementation

docs/sources/vendor/Dell/emc_powerstore.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
### Index Configuration
2323

24-
| key | sourcetype | index | notes |
25-
|--------------------|-----------------------|----------|-------|
26-
| dellemc_powerstore | `dell:emc:powerstore` | `netops` | none |
24+
| key | sourcetype | index | notes |
25+
|--------------------|-----------------------|------------|-------------------------------------------|
26+
| dellemc_powerstore | `dell:emc:powerstore` | `infraops` | Default index changed in version `3.38.0` |
27+
28+
In SC4S `v3.37.0` the data was sent to `netops` index by default. If you want to change the target index,
29+
you can set the `SC4S_OPTION_DELL_POWERSTORE_INDEX` environment variable to specify a different index name.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Suricata
2+
3+
## Key facts
4+
* Message format: Based on the default `eve-log.identity` value in `suricata.yaml`, which is "suricata"
5+
* Legacy BSD Format default port 514
6+
7+
## Links
8+
9+
| Ref | Link |
10+
|----------------|---------------------------------------------------------------------------------------------------------|
11+
| Splunk Add-on | |
12+
| Product Manual | [Suricata Documentation](https://docs.suricata.io/) |
13+
14+
15+
## Sourcetypes
16+
17+
| sourcetype | notes |
18+
|------------------------|---------------------------------------------------------------------------------------------------------|
19+
| suricata:flow | None |
20+
| suricata:dns | None |
21+
| suricata:fileinfo | None |
22+
| suricata:http | None |
23+
| suricata:tls | None |
24+
| suricata:stats | None |
25+
| suricata:<event_type\> | unlisted or new event_type (parsed but not guaranteed tested) |
26+
27+
## Sourcetype and Index Configuration
28+
29+
| key | sourcetype | index | notes |
30+
|------------------------|-----------------------|----------------|----------------|
31+
| suricata_suricata | suricata:<event_type\> | netids | none |
32+
33+
## Options
34+
35+
| variable | default | description |
36+
|----------------|----------------|----------------|
37+
| SC4S_SURICATA_SIMPLE_SOURCETYPE | false | Set to 'yes' to assign a simple sourcetype 'suricata' to all events. Keep the default to assign compound sourcetypes such as 'suricata:flow', 'suricata:dns', etc. |

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ plugins:
55
extra:
66
version:
77
provider: mike
8+
analytics:
9+
provider: google
10+
property: G-ZQQ3Q8N2WQ
811

912
markdown_extensions:
1013
- toc:
@@ -68,7 +71,7 @@ nav:
6871
- Read First: "sources/index.md"
6972
- Basic Onboarding: "sources/base"
7073
- Known Vendors: "sources/vendor"
71-
- SC4S Lite (Experimental):
74+
- SC4S Lite:
7275
- Intro: "lite.md"
7376
- Pluggable modules: "pluggable_modules.md"
7477
- Edge Processor: "edge_processor.md"

package/enterprise/etc/conf.d/conflib/cisco-syslog/app-cisco-cisco_asa.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ application app-cisco-cisco_asa[cisco_syslog] {
1717
message('%ASA-' type(string) flags(prefix))
1818
or (
1919
message('%FTD-' type(string) flags(prefix))
20-
and not "${.values.mnemonic}" eq "430003"
20+
and not match("^43000.$" value(".values.mnemonic"))
2121
);
2222
};
2323
parser { app-cisco-cisco_asa(); };

package/enterprise/etc/conf.d/conflib/cisco-syslog/app-cisco-cisco_ftd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ block parser app-cisco-cisco_ftd() {
1414
application app-cisco-cisco_ftd[cisco_syslog] {
1515
filter {
1616
message('%FTD-' type(string) flags(prefix))
17-
and "${.values.mnemonic}" eq "430003"
17+
and match("^43000.$" value(".values.mnemonic"))
1818
;
1919
};
2020
parser { app-cisco-cisco_ftd(); };

package/enterprise/etc/conf.d/conflib/syslog/app-syslog-dell_powerstore.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ block parser app-syslog-dell_powerstore() {
22
channel {
33
rewrite {
44
r_set_splunk_dest_default(
5-
index('netops')
5+
index('`SC4S_OPTION_DELL_POWERSTORE_INDEX`')
66
sourcetype('dell:emc:powerstore')
77
vendor('dellemc')
88
product('powerstore')

package/etc/conf.d/conflib/syslog/app-syslog-dell_powerstore.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ block parser app-syslog-dell_powerstore() {
22
channel {
33
rewrite {
44
r_set_splunk_dest_default(
5-
index('netops')
5+
index('`SC4S_OPTION_DELL_POWERSTORE_INDEX`')
66
sourcetype('dell:emc:powerstore')
77
vendor('dellemc')
88
product('powerstore')
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
block parser app-syslog-suricata() {
2+
channel {
3+
rewrite {
4+
r_set_splunk_dest_default(
5+
index('netids')
6+
sourcetype('suricata')
7+
vendor("suricata")
8+
product("suricata")
9+
template('t_json_values')
10+
);
11+
};
12+
13+
parser {
14+
json-parser(
15+
prefix('.values.')
16+
);
17+
};
18+
19+
if {
20+
filter {
21+
# Simple Suricata sourcetype: "suricata"
22+
# Complex Suricata sourcetype: "suricata:flow", "suricata:dns", etc.
23+
not "`SC4S_SURICATA_SIMPLE_SOURCETYPE`" eq "yes"
24+
and "${.values.event_type}" ne "";
25+
};
26+
27+
rewrite {
28+
r_set_splunk_dest_update_v2(
29+
sourcetype('suricata:${.values.event_type}')
30+
);
31+
};
32+
};
33+
34+
if {
35+
filter {
36+
"${.values.timestamp}" ne "";
37+
};
38+
39+
# 2025-07-04T10:20:33.093102+0000
40+
parser {
41+
date-parser(
42+
format('%Y-%m-%dT%H:%M:%S.%f%z')
43+
template("${.values.timestamp}")
44+
);
45+
};
46+
47+
rewrite {
48+
set-tag("json-timestamp-parsed");
49+
};
50+
};
51+
};
52+
};
53+
54+
application app-syslog-suricata[sc4s-syslog-pgm] {
55+
filter {
56+
program('suricata' type(string));
57+
};
58+
parser { app-syslog-suricata(); };
59+
};

0 commit comments

Comments
 (0)