The environment variable $ in the nf is not referring to the value supplied in deployment yaml file. If I hardcode the indexer host and port in nf, it will take the same value across all environments but I don't want that to happen. I have a separate deployment.yaml per environment (dev, stage, uat, qa, prod) and I should be able to pass different indexer host and port SPLUNK_BASE_HOST based on these environments. I want to pass the SPLUNK_BASE_HOST environment variable through the sidecar deployment like below. The configs folder have both files nf and nf. Steps to Enable SSL in Splunk Log into Splunk Cloud and click on the Universal Forwarder app on the left had side menu. load balancing, a forwarder distributes data across several receiving instances. The Splunk Enterprise deployment server cannot distribute the universal forwarder, only its apps and configurations. FROM splunk/universalforwarder:latestĬOPY configs/*.conf /opt/splunkforwarder/etc/system/local/īuilt the docker images with name splunk-universal-forwarder:demo See the following Universal Forwarder advanced setup examples: Load balancing. Here is my dockerfile content of splunk universal forwarder. The 3 files (splunkforwarder.tgz, nf, nf) are delivered to /var/tmp by the install package. *The issue comes here: I want to change the indexer server host and port dynamically based on the environment. In the current state, the indexer configuration is in the nf and which is taking effect. splunkd processes and indexes your data by streaming. ![]() The splunk universal forwarder is setup as a different docker image where I copy custom nf and nf through docker COPY (shown below).Įffectively when I deploy my application, the sidecar is starting. exe has been consuming up to 100 of the CPU on servers where the Universal Forwarders are. I am setting up a splunk universal forwarder as a sidecar with my application through a deployment spec.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |