Are there any Event codes for splunkd and splunkweb servers by which we can track there status ?
I assume you mean that you would like to check the health of the Splunk server infrastructure; there is a wealth of data on this inside index=_internal
; try this:
index=_internal source=*splunkd.log* log_level!=info | cluster showcount=t | table cluster_count _raw | sort -cluster_count