Check the ownership and permissions for the E:\Program Files\Splunk\var\lib\splunk\kvstore\mongo\journal\lsn file.
What did you find in mongod.log and splunkd.log?
2022-12-09T07:20:04.178Z I STORAGE [journal writer] In File::open(), CreateFileW for 'E:\Program Files\Splunk\var\lib\splunk\kvstore\mongo\journal\lsn' failed with Access is denied.
2022-12-09T07:20:04.178Z I JOURNAL [journal writer] warning: open of lsn file failed
this is the error i am getting
Check the ownership and permissions for the E:\Program Files\Splunk\var\lib\splunk\kvstore\mongo\journal\lsn file.
Thanks For the Solution, I just changed the Permissions for the Mongodb Folder and restarted the Splunk.
It worked.