Expand my Community achievements bar.

AEM AS Cloud Service integration with Splunk SourceType Not Working

Avatar

Level 1

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

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Level 1

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. 

Avatar

Community Advisor and Adobe Champion

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

Avatar

Level 1

Thanks! Daniel

 

Yes, it would be good to only forward specific logs. I will open a feature request.

 

Regards,

Manish

Avatar

Employee

@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.

 

[0] - https://docs.splunk.com/Documentation/Splunk/9.4.1/Forwarding/Routeandfilterdatad#Filter_event_data_...