Splunk Enterprise

cgroup error when Splunk Universal Forwarder v9.4.4 is installed

ArtieZ
Loves-to-Learn Everything

Hello,

I wanted to test UF v9.4.4 and installed it on RHEL8 and RHEL9 instances.  UF v9.4.4 seems to work in our environment and it sends logs which are searchable on Search Head.

However, I can see errors in splunkd.log happening at start up. The errors are logged on start up only.

RHEL9
ERROR SystemInfo [1021 MainThread] - Failed to read memory limit at location="V2:/sys/fs/cgroup:/system.slice/SplunkForwarder.service:/sys/fs/cgroup:/system.slice/SplunkForwarder.service:" 

RHEL8
ERROR SystemInfo [1835 MainThread] - Failed to read memory limit at location="V1:/sys/fs/cgroup/cpu,cpuacct:/system.slice/splunk.service:/sys/fs/cgroup/memory:/system.slice/splunk.s
ervice:" 

I have done a little bit of troubleshooting:

1. tried setting selinux to 0 - no change

2. checked the permissions - splunk user has access to dirs/files mentioned in the errors

3. Checked whether the files /sys/fs/cgroup/system.slice/splunk.service/memory.max (for v2) and  /sys/fs/cgroup/memory/memory.limit_in_bytes (for v1) exist - they do exist

4. Both files have "max" in them. 

 

I suspect this could be a bug.  Please let me know if any ideas on these errors.

 

EDIT: also tested with UF v9.4.5 and v10.0.0 - same errors in the logs at start up

Labels (1)
0 Karma

dm1
Contributor

did you find a solution to this ? if yes, please share. Thanks.

0 Karma

ArtieZ
Loves-to-Learn Everything

I have not found a solution for this, but it seems that it does not affect the functionality, as the logs are being sent as expected.

0 Karma

vjdev
Path Finder

Hello,

Try restart, if you have not done [SELINUX settings to apply]>

 

[/usr/lib/systemd/system/SplunkForwarder.service] OR [/etc/systemd/system/SplunkForwarder.service]

[Service]
MemoryLimit=16542720000 [16 GB In Byte | modify as per your system memory ]

sudo systemctl daemon-reload


sudo systemctl restart SplunkForwarder

Thank You!

0 Karma

ArtieZ
Loves-to-Learn Everything

Thanks for your reply vjdev.

I have tried SELinux in permanent and rebooting - no difference.

Setting MemroyLimit in the service file did not make any difference. Also, this option would be problematic in my scenario because of the large number of instances with different specs and different applications/services running on them, so calculating in advance and automating the deployment of the value would be challenging.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...