Hi Team,
Trying to forward aemaccess AEM logs from AEM Splunk to our own Splunk with below config
.config
LogForwarding-dev.yaml
kind: "LogForwarding"
version: "1"
metadata:
envTypes: ["dev"]
data:
splunk:
default:
enabled: false
host: "<splunk_host_name>"
token: "${{SPLUNK_TOKEN}}"
index: "<splunk_index>"
sourcetype: "aemaccess"
Logs from all source types are syncing to splunk instead of just aemaccess logs.
Kindly suggest if there is more specific configuration to only pick logs from specific log source.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I have also tried following configuration:
kind: "LogForwarding"
version: "1"
metadata:
envTypes: ["dev"]
data:
splunk:
default:
enabled: false
host: "<splunk_host_name>"
token: "${{SPLUNK_TOKEN}}"
index: "<splunk_index>"
sourcetype:
- aemaccess
- aemrequest. a
This configuration also does not work.
Views
Replies
Total Likes
Hi @manish2v1,
I don't think picking one specific sourcetype is supported in the YAML configuration. According to the docs: "The sourcetype field will have one of the following values, depending on the specific log: aemaccess, aemerror, aemrequest, aemdispatcher, aemhttpdaccess, aemhttpderror, aemcdn".
Here, they are talking about the sourcetype field in Splunk, not YAML config. If you require that functionality, open a feature request.
Good luck,
Daniel
Views
Replies
Total Likes
Thanks! Daniel
Yes, it would be good to only forward specific logs. I will open a feature request.
Regards,
Manish
Views
Replies
Total Likes
@manish2v1 Specific log files forwarding is not available through "LogForwarding" config as of now, but you can choose to discard the specific logs at your Splunk. Refer [0] for more details on the configuration required at your splunk to discard specific logs.
Views
Replies
Total Likes