-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No logs in splunk #89
Comments
Please post your the yaml you used to deploy the daemonset. Be sure to scrub any sensitive info. Are you familiar with configuring/troubleshooting the Splunk UF? You can exec into the pod, cd to There is a lot of “it depends” here, so please provide more info about what you have configured and from inside the pod. |
Also there are no log files getting generated I am getting : Active forwards:
|
are you using the certs that come with the UF for cloud? I assume they would be the ones you need for hec? Your config is inactive, so we should review the config. My guess is ssl config or certs The log files are in the container.
|
@matthewmodestino My main issue is how to give the same parameters as giving for HEC in configuration file: I have gone to the location and following files are visible: -rw------- 1 root root 70 Jul 26 02:23 first_install.log I got this following error in the middle of the file: 07-26-2018 02:23:46.769 +0000 ERROR SSLCommon - Can't read certificate file /opt/splunk/etc/apps/splunkclouduf/default/client.pem errno=33558530 error:02001002:system library:fopen:No such file or directory I am cheking splunkd.log... I have updated my daemon file - mountPath: /opt/splunk/etc/apps/splunkclouduf/default
because of the work around described in issues |
disregard my comment anout hec, i have been focused on Splunk Connect for Kubernetes... This is straight UF forwarding. Based on the logs, the cloud uf app is not in the right spot, i guess... is your outputs.conf really blank in your file or you just scrubbed it? Your outputs config is definitey appears to be the issue. index can be set in inputs.conf |
Thanks for your input.. But I will explain my issue.. When I am running daemonset with following configuration with confg path mount: Deamonset always crashes and as per #70 , when I change the file like following: So how to solve the issue |
here is how I mounted apps in one of my kubernetes configs:
Create a configmap with the contents of the clouduf app, and mount it into I just ran this for any dir under my splunk app...:
|
And what path is appearing for the ssl certificates in splunk log files?..Why there are two config map? |
I have made some progress with your help but now I am seeing following error:
|
Before we go any further, can you tell me more about your kubernetes deploy? Are you just testing/learning, or are you looking to monitor a real enviro? Where is this kubernetes cluster running? Looks like you didn’t mount the correct volumes is my guess. We posted a prototype UF deamonset here: https://github.com/splunk/docker-itmonitoring/blob/master/README-k8s.md I suggest you take a look at the configs there, and we should probably move this thread there as this is beyond the docker image now... If you are planning on using this in a production scenario you should check out our supported option, Splunk Connect for Kubernetes here: https://github.com/splunk/splunk-connect-for-kubernetes While the UF will move the logs, this docker image is not officially Splunk supported and you will run into challenges with parsing the json logs and you wont be able to monitor journald. These are use cases we are looking at enhancing with the UF, but as of today, you should only really use the UF in a sidecar pattern or for testing/learning, use connect for kube if this is going to see real enviros |
Thanks for your support We are planning to push log data to splunk in real environments and hence trying out different options I am also analyzing fluentd to do the splunk integration But I dont know what is the right image to do so. So according to your opinion , splunk/universalforwarder is not right for real env and we should go for By the way,I resolved the issue by working out the mount issues. Splunk logs looks all ok, but I don't sees any logs showing data successfully posted to splunk Do you know is there any log which shows what all data got posted to splunk from the logs which gets watched by daemon Also is splunk-connect-for-kubernetes enterprise supported or not as we have the support from splunk? |
Yes, Splunk Connect for Kubernetes is our supported option, I strongly recommend you go that route at this time. |
I have followed all the steps mentioned and it shows that the daemonset is running on each of the nodes, However, when I see the Splunk Dashboard, I see no logs. Any pointers?
How to debug deamonset functionality?
The text was updated successfully, but these errors were encountered: