I have many Windows DNS servers deployed worldwide with each one configured with local time.
Unfortunately DNS debug log is writting local time information in the log.
I already read here several answers related to that problem, and all of them suggest to use TZ attribute in props.conf.
I have tried several variants of that without any success so far.
Can somebody please confirm it can work when the TZ syntax is specified on the universal forwarder (not on the indexer) ?
Nobody uses the TERRIBLE Windows DNS logs anyway. The right way to log DNS flow is with Stream App for Splunk and sniffing the wire. Read about it here (and many other places). Friends don't let friends do Windows:
Your statement looks a bit definitive and it does not really help to answer my question here... you do not know if I have not tried something else first... I also tried the new Windows DNS Analytic log method without getting required reliability (like others people on this forum based on what I found).
From on what I have been told (I need to check), Stream App does require Winpcap to be installed on the Windows server. Winpcap is something we disagree to install because it does decrease local security. At least this is currently forbidden for us to install it.
Finally (and back to my original question), I am both interested to make this DNS debug logging work but also to understand why I cannot make this TZ modification to be properly applied. Out of the DNS use case, I might have a future need to use TZ again.
If you are on version 6.0 or greater, then the
TZ value in props.conf on the forwarder has the highest precedence (except for
TZ_ALIAS which can override it on the indexer). People forget to upgrade their forwarders all the time so be sure you are versioned high enough.
Thanks for your feedback.
I do confirm I am using the latest version on my whole infrastructure (indexer, universal forwarder)
I also confirm I do not use TZ or TZ_ALIAS at indexer level for this specific source type.
Would you see a way to troubleshoot and detect why the TZ config is not taken into account by the UF (or by the indexer) ? There is no heavy forwarder in the middle, it goes straight from the UF to the indexer.
Here is what I configured on the UF running on Windows DNS servers:
index = windns
TIME_FORMAT=%m/%d/%Y %I:%M:%S %p
Note: I tried many config for props.conf (from the above one up to the smallest one just with the TZ row. No change.
Thanks for your help... Please use dummy values, I will adjust, I do not wish to expose that info publicly.
this being said, please note that if you intend to apply TZ by host, it will unfortunately not make it as just this specific sourcetype should be adjusted (the one indexing Windows DNS debug log)... Same UF on same host is collecting plenty of others data (with different sourcetype) where timestamp is ok (event logs, perfmon, etc.)