Hello guys I want to integrate splunk with aemaacs. I establishing splunk enterprise edition in VM. can anyone provide the steps i should follow for settingup splunk in vm and integrating it with aemaacs.
Hi,
Please check here the details about log-forwarding for Splunk: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...
Also a good resource: https://blog.arborydigital.com/splunk-setup-aem-cloud-service-aemaacs
Hope this helps
I have some questions.
1.so do i need 2 ssl certificates? one for HEC endpoint and one for host machine which is a VM.
2. in aem config. should i mention HEC endpoint or host address?
In blog you mentioned it is saying hec endpoint adderess. check here
but in docs it mentions host address. check here
I am really confused about configuration please help with it. If possible give me steps about setting up the splunk and aem from scrath . I will be real helpful.
Thank you very much.
syed ali.
Views
Replies
Total Likes
Hey Syed -
On your question on SSL certificates, I should have probably made that clearer in the blog post - because Splunk is listening on two different ports (one for the Splunk HEC and one for Splunk Web) those are two different SSL configurations. They can share the same certificate if you want, but both have to be configured to make it work. And Adobe does prefer that you keep HEC on 443, even though I've seen it if you plead your case nicely, they'll sometimes let you use an alternate port. Let me know if that works, I'll definitely update the article accordingly.
Views
Replies
Total Likes
1.is it ok to not get any domain name or ssl certificate for vm in which my splunk is installed for integration with aemaacs?
2. how to open a ticket with adobe support?
I am totally new with this things . please provide detailed explaination.
Thank you.
Views
Replies
Total Likes
Integrating Splunk with AEM as a Cloud Service (AEMaaCS) involves setting up Splunk on a Virtual Machine (VM) and configuring it to gather and process logs and metrics from AEMaaCS. The setup process will generally involve the following steps:
Download Splunk Enterprise:
Install Splunk on the VM:
wget -O splunk-8.x.x-xxxxxx-Linux-x86_64.deb https://download.splunk.com/path/to/splunk-package.deb sudo dpkg -i splunk-8.x.x-xxxxxx-Linux-x86_64.deb
wget -O splunk-8.x.x-xxxxxx-Linux-x86_64.rpm https://download.splunk.com/path/to/splunk-package.rpm sudo rpm -i splunk-8.x.x-xxxxxx-Linux-x86_64.rpm
Start Splunk: After installation, you can start Splunk by running:
sudo /opt/splunk/bin/splunk start
The default login credentials are typically admin and changeme, which should be changed after your first login.
Set Splunk to Start on Boot:
sudo /opt/splunk/bin/splunk enable boot-start
Enable the HTTP Event Collector:
Configure the HTTP Event Collector:
To send logs from AEMaaCS to Splunk, you can use Splunk Universal Forwarder or the HTTP Event Collector (HEC). Since AEMaaCS is a cloud service, the most suitable way is to use HEC or log forwarding via a logging service (e.g., Loggly or AWS CloudWatch).
Here’s how to configure AEMaaCS to send logs to Splunk:
Set up Splunk HTTP Event Collector (HEC):
Configure AEMaaCS to Forward Logs to Splunk:
Example configuration for a logger in AEMaaCS:
{ "logger": { "level": "INFO", "handlers": [ { "type": "splunk_hec", "url": "http://<splunk-ip>:8088", "token": "<your-hec-token>", "source": "aem-logs" } ] } }
Configure AEM Logging Services:
Once the AEMaaCS logs are being forwarded to Splunk via HEC, you can verify the log entries are showing up by querying Splunk's index. In the Splunk web interface, go to the Search & Reporting app and query logs to see if the data from AEMaaCS is appearing.
Example query in Splunk:
index="aem_logs" source="aem-logs"
Monitor Logs:
After AEMaaCS logs are flowing into Splunk, you can create customized alerts and dashboards for real-time monitoring and proactive alerting based on certain conditions (like errors, performance issues, or slow response times). For example:
Create a Dashboard:
Set up Alerts:
You can also look for Splunk Apps that are designed to integrate with Adobe Experience Manager (AEM). These apps typically come pre-configured with dashboards and searches tailored for AEM. This can help reduce the effort involved in setting up a complete monitoring solution.
Some popular Splunk Apps might include:
To integrate Splunk with AEMaaCS, you need to:
While Splunk offers a lot of flexibility for logging and monitoring, the key challenge with AEMaaCS (being a cloud-native solution) is ensuring that logs are properly forwarded from AEMaaCS to Splunk using the right data input methods.
Views
Replies
Total Likes
Adobe suggesting Log forwarding with splunk with below yaml file
kind: "LogForwarding"
version: "1"
metadata:
envTypes: ["dev"]
data:
splunk:
default:
enabled: true
host: "splunk-host.example.com"
token: "${{SPLUNK_TOKEN}}"
index: "aemaacs"
Kindly suggest why we need to create Configure AEM Logging Services
AEM AS Cloud service suggest with above yaml however that is not working . I am also checking with Adobe
Views
Replies
Total Likes
Views
Likes
Replies