How to integrate Microsoft Exchange on Splunk without installing a universal forwarder that hon the Exchange Server host. Based on add on official documentation https://docs.splunk.com/Documentation/MSExchange/4.0.4/DeployMSX/AboutSplunkforMicrosoftExchange for integration it requires UF on Exchange server host but it is not recommended and also this solution client will not like. So I need another solution to integrated without installing add on directly on Exchange host, we is there any way to send data to intermediate UF then HF?
It depends on what kind of data you want to pull from the Exchange host.
As far as I remember, the TA for Exchange contains some scripted inputs - generally those you cannot run without installing the UF on the Exchange server (I suppose _maybe_ for some of them if you bent over backwards you could try to launch them remotely via something like Invoke-Command but it will require customisation of the existing add-on and further maintenance will be on you.
If you want events from EventLog, you can use WEF (I've had some relatively successful installations running WEF and UF on the WEF collector; they might have some performance problems at some point but up to that point they run quite well).
If you want contents of the log files... you can share them over the network but it can backfire. Firstly, the UF on the remote computer (which would access those events over the network) would have to run under a domain account and have permission to access those exported logs. That might be tricky if you normally don't run UF from a domain account but is a relatively normal task for a typical domain admin. The second problem, which might bite you in your behind at some point is that since Exchange produces a lot of logs (by default one log per hour if I remember correctly) and doesn't delete the old ones, the number of logs which Splunk has to keep track of grows quickly. And checking status of remote logs has much much higher latency than local operations. So restarting such UF which monitors Exchange logs over the network might lead - in border cases - to several hours of pause in logs ingestion. I had a customer who precisely because of this problem copied files from exchange server to another server by means of a script and then UF would pick them up from that destination server.
So while you can try to ingest the logs from Exchange without using the UF, the method with installing UF locally on the machine is the most convenient and best performing one.
How to integrate the first solution is there any documentation and which add on to us TA for windows and which events needs to be selected? If there is documentation please send
Hi @AceX
What makes you think its not recommended to install a UF on an exchange server? This is the documented reliable way to get MS Exchange logs into Splunk as per the docs.
There is a chance you can access the data through WMI from a separate external host but this introduces further security risks, along with likely incompatibility issues.
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing.
I will never install Universal forwarder on my critical infrastructure hosts like domain controller or exchange hosts etc, and if there is way to create additional virtual machine and there install UF and get data through VMI it will be solution for me. Like Active Directory I integrated this way not installed UF directly on DCs. So if its possible to get that data using VMI, please send me documentation and you will get karma and your solution will be accepted.
@livehybrid It's not unusual to meet such requirements at customer's site. It's often not due to technical reasons but caused either by politics (interdepartamential tensions for example when one team is responsible for Splunk and another team manages the mail infrastructure) or by the fact that some solutions are maintained and supported by external company and introducing another element (in this case - the UF) to said solution/infrastructure might be grounds for said supplier trying to undermine the contractual obligations due to a component not provided/maintained/installed/etc. by them.
So while I do agree that the UF directly on Exchange server would most probably be the best solution from the Splunk infrastructure point of view, it's sometimes simply not politicly viable.
I want to mention that you described the situation great way, so the question is what to do in situation by politics or by companies clients or customer's policy you can not directly install UF on exchange host does Splunk suggests another solution or another add on for parsing data, As I said if its possible using another virtual machine install Universal forwarder on it than say exchange to send data to the vm it actually preferred for me.
Each company have their own policy, so just you can not say your client "Hey look it is the only one solution if there is other way to integrated, I your company wants to integrate Exchange but it is not best practice or Exchange or DCs is critical servers for them so you can not install UF directly there, some person mentioned VMI so it will be great To get Mailbox data using another VM and UF installed on it. So guys if you know solution like this, it will be great for me.
@PickleRick I totally agree, however statements like "UF on Exchange server host but it is not recommended" these days get picked up by google AI results as concrete answers and I'm trying to understand if this is an opinion or something that is a documented recommendation. If an end-client has a preference then that is another matter, but also good to understand the rationale behind these decision as trying to work around them can introduce risks of their own.
Let's exclude AI or some script kiddos Experts, each company has their own policy, and if based on this policy You can not install any additional softwares on critical servers so it actually means so can not 🙂 And I am here to find another solution except installing UF directly on Exchange host. Thanks