Sizing and Tuning SC4S for 500 GB of Syslog per Day

Maciek (Mac) Stopa with Claude Fable 5.214 min read#splunk, #syslog, #sc4s, #sizing, #performance, #data-onboarding, #gdi

This article covers why Splunk Connect for Syslog (SC4S) is sized in messages per second and not in GB per day, how to size it, and what each tuning setting did in my lab, from the kernel receive buffer to eBPF.

Scenario: You have been asked to onboard ten firewalls into Splunk. All you were told is that they produce 500 GB of syslog per day. You know that Splunk Connect for Syslog (SC4S) is the Splunk-supported collector for syslog. What do you do next?

You open the SC4S documentation to size the collector. There is no sizing table. The performance tests page shows the SC4S team's test. Its results are in events per second (EPS), with no volume figure.

Before discussing your next steps, let's look at how SC4S works and why it uses messages per second and not daily volume.

Why SC4S is sized in messages per second

The path of a message through SC4S

Log sender

SC4S host

Kernel receive buffer
Reader thread
Parsers
Queue
HEC workers
Splunk

SC4S is a syslog-ng engine in a container, with a library of parsers for known vendors. A UDP message waits in the kernel receive buffer until a reader thread picks it up, and the parsers then identify its vendor and product. The parsed event goes into a queue, backed by a disk buffer, and the HEC workers send it to Splunk.

The first three stages do their work once per message: one packet in the buffer, one read, one pass through the parsers. The HEC workers send in batches.

Experiment 1: bytes or messages

Can we describe the throughput of SC4S with volume, or do we need the message count? Here are the two claims. Let's see which one is true.

Throughput is a volume

for example, 6.4 MB per second

Throughput is a message count

for example, 14,200 messages per second

Start with a thought experiment: two streams with the same volume, one made of long messages and one made of short ones.

Long messages: 3 × 1,000 B = 3,000 B

One message of 1,000 bytes:

<166>2026-11-25T11:44:54Z lab-c18r1t114454 : %FTD-6-430003: DeviceUUID: a798c12b-320d-441c-ac39-a7fde5e5315f, AccessControlRuleAction: Allow, SrcIP: 203.0.113.80, DstIP: 192.0.2.53, SrcPort: 54912, DstPort: 6370, Protocol: tcp, IngressInterface: Outside2, EgressInterface: DMZ, IngressZone: Outside, EgressZone: DMZ, ACPolicy: Lab Policy, AccessControlRuleName: Allow Out to DMZ, Prefilter Policy: Default Prefilter Policy, User: No Authentication Required, ConnectionDuration: 600, InitiatorPackets: 12, ResponderPackets: 10, InitiatorBytes: 3100, ResponderBytes: 5200, NAPPolicy: Balanced Security and Connectivity, Client: SSL client, ApplicationProtocol: HTTPS, WebApplication: Example Web App, ClientAppDetector: AppID, URLCategory: Business, URLReputation: Trusted, SSLPolicy: Lab SSL Policy, SSLFlowStatus: Success, SSLCipherSuite: TLS_AES_256_GCM_SHA384, SSLVersion: TLSv1.3, SSLServerName: portal.example.com, SSLActualAction: Do Not Decrypt, SSLExpectedAction: Do Not Decrypt, Note: abcdefg

Short messages: 10 × 300 B = 3,000 B

One message of 300 bytes:

<166>2026-11-25T11:13:14Z lab-c8r1t111314 : %FTD-6-430003: DeviceUUID: 8158cb38-5805-4c44-992d-8e3547c60353, AccessControlRuleAction: Allow, SrcIP: 203.0.113.70, DstIP: 192.0.2.84, SrcPort: 53164, DstPort: 8382, Protocol: tcp, IngressInterface: Outside2, EgressInterface: DMZ, IngressZone: Outside, N

If throughput is a volume, both streams cost SC4S the same CPU. If it is a message count, the short messages cost 3.3 times as much, because there are 3.3 times as many of them.

To find out which one happens, I asked my AI agents to measure it and reviewed the records of each run. The lab runs on AWS and has three parts.

Generator

sends 5,000 messages per second over UDP

SC4S 3.49.0

CPU time per message is measured here

HEC stand-in

counts the events, stores nothing

  • Generator. Sends Cisco FTD firewall messages over UDP at a fixed 5,000 messages per second. The length changes from run to run, from 150 to 1,400 bytes. The rate stays the same.
  • SC4S 3.49.0. Runs on a 16 vCPU host (m5.4xlarge) with default settings and the kernel receive buffer from the SC4S documentation.
  • HEC stand-in. Accepts the batches like Splunk would and counts the events, to confirm that every message arrived.

The measured value is the CPU time the SC4S process spends on one message, in microseconds. That cost times the number of messages gives the cost of each stream.

The result: the message count sets the cost

The cost of one message barely moved with its length.

CPU cost of one message, by message length (microseconds)
  • Measured
  • If the cost followed the bytes
  • If the cost followed the count
02505007501,00002505007501,0001,2501,500Message length (bytes)150 B: 108 µs measured. Bytes claim: 108 µs. Count claim: 108 µs.200 B: 112 µs measured. Bytes claim: 144 µs. Count claim: 108 µs.250 B: 107 µs measured. Bytes claim: 181 µs. Count claim: 108 µs.300 B: 113 µs measured. Bytes claim: 217 µs. Count claim: 108 µs.400 B: 115 µs measured. Bytes claim: 289 µs. Count claim: 108 µs.450 B: 122 µs measured. Bytes claim: 325 µs. Count claim: 108 µs.1,000 B: 134 µs measured. Bytes claim: 722 µs. Count claim: 108 µs.1,400 B: 140 µs measured. Bytes claim: 1,011 µs. Count claim: 108 µs.If the cost followed the bytes1,011 µsMeasured: 140 µsIf the cost followed the count: 108 µs
Data table
LengthMeasured (µs)Bytes claim (µs)Count claim (µs)
150 B108108108
200 B112144108
250 B107181108
300 B113217108
400 B115289108
450 B122325108
1,000 B134722108
1,400 B1401,011108

Cisco FTD messages over UDP, one sender, 5,000 messages per second, SC4S 3.49.0 on 16 vCPU. Mean of two runs per length. Both claim lines start from the 150-byte measurement.

A 1,400-byte message is 9.3 times as long as a 150-byte message. It cost 1.3 times the CPU: 140 microseconds against 108. The CPU figures are accurate to about 5%.

Now back to the thought experiment. The same volume in 300-byte messages means 3.3 times as many messages as in 1,000-byte messages. Each short message was a little cheaper, 113 microseconds compared with 134, so the short stream costs 2.8 times the CPU of the long one.

CPU for the same volume: 300 B messages compared with 1,000 B messages
Volume claim predicts1.0×
Message count claim predicts3.3×
From the measured costs2.8×

Outcome: In my lab, the message count determined most of the load on SC4S, and the length added a small correction. Two streams with the same daily volume can differ by a factor of almost three in the CPU they need. SC4S has to be sized in messages per second.

Experiment 2: the ceiling of one sender

Let's look at the same question from another angle. Experiment 1 measured the cost of one message at a moderate rate. Experiment 2 raises the rate of one sender step by step until SC4S starts to lose messages. The highest rate SC4S still receives is its ceiling.

The run was done twice: with 450-byte messages, and with messages three times as long. The two claims predict different outcomes. If throughput is a volume, both runs stop at the same megabytes per second. If it is a message count, both stop at the same messages per second.

Ceiling of one sender (megabytes per second, messages per second in parentheses)
450-byte messages6.4 MB/s (14,200 messages/s)
1,350-byte messages15.7 MB/s (11,600 messages/s)

Outcome: Messages three times as long lowered the ceiling of one sender by 18% in messages per second and raised it about 2.5 times in megabytes per second. Messages per second is the more reliable measure of what the collector can take.

Summary: where daily volume works, and why SC4S needs a message rate

GB per day is the right unit in several places.

  • For the licence. Most Splunk licences are sold by daily ingest volume, so GB per day is the number most teams know.
  • For indexers. Indexer capacity is planned from the daily ingest volume and the search load.
  • For universal forwarders. A universal forwarder that monitors files does almost no parsing. When the indexers are slow, the file stays where it is and the data arrives late.

SC4S differs in two ways.

  • It cannot wait. A collector that falls behind pushes back on its TCP senders, and the UDP packets it does not read in time are lost. It has to keep up with the busiest second, not with the daily average.
  • Most of its cost is per message. The largest part of the work on a message is the same whatever its length. A message 9.3 times as long cost 1.3 times the CPU. The same collector carried 6.4 or 15.7 megabytes per second, depending only on the message length.

So the first thing to do with "500 GB per day" is to turn it into messages per second.

The first sizing

Back to our scenario: ten firewalls and 500 GB per day. You work with the network team and arrive at the following answers.

1. How do the firewalls send?

Syslog over UDP

to port 514

2. How long is an average message?

About 450 bytes

firewall connection events

3. How is the traffic split between the firewalls?

2 of 10 firewalls send 90%

45% each

4. When does the traffic arrive?

80% in 10 working hours

the rest at night

5. How high are the bursts?

1.3 times the working-hours rate

for seconds to minutes

6. What host is planned?

16 vCPU

The answers are made up for this example, and I chose them so that the peak lands near rates I measured in the lab. There is no general peak factor: it has to come from the network team's own data.

With the answers, the daily volume becomes a rate.

500 GB

per day

what the network team said

÷ 86,400 s ÷ 450 B

12,860

messages/s

if the traffic were flat over 24 hours

× 1.92

24,700

messages/s

average in working hours

× 1.3

32,000

messages/s

peak in a burst, rounded

× 45%

14,400

messages/s

one busy firewall at the peak

In this example you prepare for 32,000 messages per second in total, and 14,400 from one firewall. The next question is how much your SC4S instance can take. This is how I found the ceiling in the lab, and the same method can be used on any SC4S instance.

  1. Send from one sender, with messages of your real length.
  2. Hold a fixed rate for 120 seconds. Then raise the rate by one step and repeat. Near the expected ceiling I used steps of 1,000 messages per second.
  3. After each step, compare the number of messages sent with the number of events that arrived at the destination. Read the kernel's counter of dropped UDP packets as well.
  4. A step counts as lossy when more than 0.1% of its messages are missing. "No loss" in the charts below means a step under that threshold. Stop after two lossy steps in a row.
  5. In the lossy steps, the received rate stops growing while the offered rate goes up. That received rate is the ceiling. In the lab, one syslog-ng thread was then at 98 to 99% of a core.
Finding the ceiling of one sender
# On the SC4S host, before the test: the buffer of every socket on port 514
$ sudo ss -ulnm | grep -A1 ':514 ' | grep -o 'rb[0-9]*' | sort | uniq -c
4 rb17039360
# On the SC4S host, before and after every step: UDP packets dropped at a full buffer
$ nstat -az UdpRcvbufErrors
# On the test machine: one step is 120 seconds at a fixed rate, 450-byte messages
$ loggen --interval 120 --rate 10000 -s 450 --no-framing --dgram <SC4S_IP> 514
# On the SC4S host, during the step: is one syslog-ng thread close to 100%?
$ top -H -p "$(pgrep -d, syslog-ng)"
# Next steps: the same command with --rate 11000, 12000, 13000 and so on

The first number to check is the 14,400 messages per second from one busy firewall. I assume each busy firewall sends from one address and one source port, so the kernel puts all its packets on one socket. One sender alone got about 14,000 messages per second through in my lab. A busy firewall at 14,400 is at or above that, before any other sender is added.

For the total, I ran this case in the lab: ten senders, two of them carrying 90%, at 32,000 messages per second for ten minutes. SC4S ran on 16 vCPU with default settings and the kernel receive buffer from the SC4S documentation. It received 22,400 messages per second and lost 30%.

Rate at the peak against what the lab measured (messages per second)

One busy firewall at the peak: 14,400

Measured: about 14,000 from one sender alone. Next to other senders, each heavy sender got only about 10,000 to 11,000 through.

All ten firewalls at the peak: 32,000

Measured: 22,400 received in one lab run at this rate, with default settings. The rest, 30%, was lost.

Outcome: In my lab run of this case, SC4S with default settings lost 30% of the messages while the peak lasted. The host was not short of CPU: it used 2.9 of its 16 vCPU. All the loss was on the two sockets of the busy firewalls. The collector has to be tuned.

Tuning the collector

Where a number comes from my lab, the text says so. The rest comes from the SC4S documentation, mostly the SC4S fine-tuning page, or from the SC4S 3.49.0 source.

The kernel receive buffer

Each UDP socket has a buffer in the kernel where packets wait until SC4S reads them. When the buffer is full, the kernel drops every new packet. The size is a setting of the host, and the SC4S Quickstart raises it in its first setup step: "Set the host OS kernel to match the default receiver buffer of SC4S, which is set to 16MB." It sets net.core.rmem_default and net.core.rmem_max to 17,039,360 bytes. The default on my lab hosts was 212,992 bytes, 80 times smaller.

My lab shows what the larger value buys. With one sender, 1,350-byte messages and the host default, SC4S lost messages above 8,000 messages per second. With the Quickstart value it lost nothing up to 11,000.

Highest rate with no loss from one sender, by kernel receive buffer (messages per second)
  • Kernel default, 212,992 bytes
  • SC4S Quickstart value, 17 MB
450-byte messages
13,000
14,000
1,350-byte messages
8,000
11,000

Source: my lab, first session, 16 vCPU. Steps of 1,000 messages per second, two runs per setting. In a later session the 17 MB setting lost messages at 14,000 with 450-byte messages.

Number of UDP sockets

More UDP sockets raise the capacity for many senders, but not for one or two heavy ones.

SC4S opens 4 UDP sockets by default, and without eBPF the kernel puts all packets of one sender on the same socket. The documentation suggests more sockets: "Start with a value equal to your 4 x core count and adjust based on performance testing." It also names the limit: "If the data comes from a single source (same IP and port), this setting has only a minimal impact on performance."

My lab agrees on both points. With 64 sockets, ten equal senders ran without loss up to 45,000 messages per second, up from 25,000. Two equal senders gained nothing: with 4 and with 64 sockets, loss started between 20,000 and 25,000.

Highest rate with no loss, by number of UDP sockets (messages per second)
  • 4 sockets (default)
  • 64 sockets
2 equal senders
20,000
20,000
10 equal senders
25,000
45,000

Source: my lab. 450-byte messages, 16 vCPU, steps of 5,000 messages per second, one run per layout. Both 4-socket values are from an earlier session on another host of the same type.

In our case, ten firewalls would share the 4 default sockets, so raising the number to 64, which is 4 times 16 vCPU, makes sense. However, it does not solve the whole problem, because two firewalls carry 90% of the traffic.

eBPF

eBPF changes how packets reach the sockets. In the words of the documentation: "eBPF provides true per-packet load balancing, where each packet is randomly distributed across all sockets regardless of sender." One sender is then read by many threads. In the documentation's test, one source at 50,000 messages per second lost 76.39% with default settings and nothing with eBPF on 16 threads. In my lab, one sender went from 13,000 to at least 60,000 messages per second.

Highest rate with no loss, without and with eBPF (messages per second)
  • Default settings
  • eBPF on, 64 sockets
1 sender
13,000
60,000
10 equal senders
25,000
70,000
10 senders, 2 carry 90%
20,000
70,000

Source: my lab. 450-byte messages, 16 vCPU, one run per eBPF layout. The eBPF values are the highest rates tested, not ceilings. The default value for ten equal senders is from an earlier session on another host of the same type.

No step with eBPF lost more than 31 messages in millions, and the ceiling was not reached. At 70,000 messages per second SC4S used 13 of the 16 vCPU, so there is little room above it.

eBPF comes with three conditions.

  • Message order. The documentation says: "Packets from the same sender may be processed out of order."
  • Privileges. The container has to run in privileged mode.
  • Host support. The host operating system has to support eBPF.

For a source that dominates the traffic, the documentation offers one more option: "If one of the logs sources produces a large percentage of the overall traffic, create an additional dedicated sc4s service on a separate host."

For our example: This is the setting that removed the loss in my test of the example. Each busy firewall needs 14,400 messages per second at the peak, and with eBPF one sender got 60,000 through. It costs CPU: 150 to 200 microseconds per message, compared with 110 to 135 without eBPF. At the rate of the example that was about 20% more. The security team has to accept a privileged container, and the people who use the logs have to accept that events from one firewall may arrive out of order. That is not a problem as long as the timestamps are parsed correctly, because Splunk orders events by their timestamp.

Other settings that did not solve the problem

The documentation offers two more settings for UDP. Each has its use, but in my lab neither of them let a heavy sender get more messages through.

Dedicated ports. SC4S can listen on additional ports, and every port gets its own set of sockets, so a heavy sender on a port of its own shares a socket with nobody. I gave each of the two heavy senders its own port. Each still got only about 10,900 messages per second through, and when I ran the example this way, SC4S lost 21% of the messages.

A larger kernel receive buffer. The fine-tuning page reports: "In our test environment, we achieved up to twice the throughput when using a 512 MB receive buffer." In my lab the large buffer was good for bursts and nothing else. A steady overload looked the same with either size: SC4S read about 13,200 messages per second on the 8 vCPU host. Bursts are a different matter.

Messages lost in bursts from 8,000 to 20,000 messages per second, by burst length (share of all messages sent)
  • 17 MB kernel receive buffer
  • 512 MB kernel receive buffer
Bursts of 2 seconds
2.7%
0%
Bursts of 5 seconds
6.3%
0%
Bursts of 15 seconds
12.6%
0%
Bursts of 60 seconds
16.8%
0%

Source: my lab. One sender, 450-byte messages, 8 vCPU, one run per bar.

Switching to TCP is not the easy fix

When a team sees UDP drops, the natural next idea is to move the senders to TCP. TCP does not drop packets, so the problem should go away. It does not go away. The collector does the same work per message, one connection has the same ceiling as one UDP sender, and the messages that do not fit are no longer dropped at the collector: they wait at the sender.

What TCP does not change

The cost of a message stays about the same. In my lab, TCP and TLS with one write per message cost within a few per cent of UDP, inside the accuracy of the measurement. When the sender put several messages into one write, both cost about a fifth less.

CPU cost of one 450-byte message, by transport (microseconds)
UDP
122
TCP, one write per message
126
TLS 1.3, one write per message
129
TCP, batched writes
94
TLS 1.3, batched writes
96

Source: my lab. 5,000 messages per second, one sender, 16 vCPU. Mean of two runs.

The ceiling stays too. One TCP or TLS connection with default settings topped out at 13,700 to 14,800 messages per second, the same range as one UDP sender. Batched writes did not raise it.

What TCP changes: the sender waits

Above that ceiling SC4S lost nothing over TCP. My generator fell behind instead. After two minutes at 15,000 messages per second it was 3.5 to 11 seconds behind. At 20,000 it was 37 to 45 seconds behind.

That is backpressure. When SC4S reads too slowly, TCP holds the sender back, and the loss turns into a queue on the sending device. What happens to that queue depends on the device.

On a firewall this can be a problem. A Cisco ASA, for example, can block new connections through the firewall while its TCP syslog server is down or its log queue is full. The ASA logging guide has a setting that prevents this, logging permit-hostdown, and recommends it, but someone has to know about it before the collector slows down.

Where TCP makes sense

  • Messages that do not fit one UDP packet. A message split over several packets is lost when one of them is lost.
  • A network you do not trust. TLS runs over TCP. The SC4S documentation says: "Avoid TLS except where the event may cross an untrusted network."
  • Senders that can wait. A syslog relay or a server that queues its logs can fall behind for a while without harm.

With TCP, remember parallelize

If one TCP sender carries most of the traffic, it hits the ceiling of one connection. Parallelize is the setting for that case. It spreads the messages of one connection over several threads, like eBPF does for UDP.

Highest TCP rate received, by number of connections (messages per second)
  • Parallelize off
  • Parallelize on, 16 partitions
1 connection
14,600
93,200
10 connections
85,600
93,100

Source: my lab. 450-byte messages, batched writes, 16 vCPU, one run each.

In my lab one connection gained more than six times. Ten connections gained 9%, because ten connections already spread over the threads without any setting.

Parallelize has two costs. One connection used 9% more CPU with it at 5,000 messages per second, where it was not needed. And spreading one stream over threads can change the order of its messages.

Summary

In this article we started with the one number the network team gave us: 500 GB of syslog per day. For a syslog collector, what counts is messages per second at the peak. In our scenario that turned out to be 32,000 in total, and 14,400 from each of the two busy firewalls.

In my lab, SC4S with default settings lost 30% of the messages at that rate, while it used only 2.9 of its 16 vCPU. A dedicated port for each busy firewall still lost 21%. With eBPF and 64 UDP sockets, SC4S held the load for 30 minutes and lost 149 messages out of 57.6 million.

So when someone gives you a daily volume, turn it into a peak rate, and check the busiest sender as well as the total. Then run the test on your own collector, because your firewalls and your hosts are not the ones in my lab.