Almalinux 9 imuxsock

When activating imuxsock via a custom log in rsyslog.d I receive the error

input module name ‘imuxsock’ is unknown

I figured out that the module load of imuxsock should occur before including rsyslog.d files as in below diff file

+ #### MODULES ####
+ 
  # Use default timestamp format
  module(load="builtin:omfile" Template="RSYSLOG_TraditionalFileFormat")
  
+ module(load="imuxsock"    # provides support for local system logging (e.g. via logger command)
+        SysSock.Use="off") # Turn off message reception via local log socket; 
+                           # local messages are retrieved through imjournal now.
+ module(load="imjournal"             # provides access to the systemd journal
+        StateFile="imjournal.state") # File to store the position in the journal
+ 
  # Include all config files in /etc/rsyslog.d/
  include(file="/etc/rsyslog.d/*.conf" mode="optional")
  
- #### MODULES ####
- 
- module(load="imuxsock" 	  # provides support for local system logging (e.g. via logger command)
-        SysSock.Use="off") # Turn off message reception via local log socket; 
- 			  # local messages are retrieved through imjournal now.
- module(load="imjournal" 	    # provides access to the systemd journal
-        StateFile="imjournal.state") # File to store the position in the journal