Code Monkey home page Code Monkey logo

Comments (13)

ffscl avatar ffscl commented on July 25, 2024 6

@rayh0001
Mount your config maps inside /var/opt/splunk/etc instead of directly inside ${SPLUNK_HOME}. This fix works because the entrypoint copies the files over before trying to change the ownership https://github.com/splunk/docker-splunk/blob/master/universalforwarder/entrypoint.sh#L24

from docker-splunk-legacy.

guilhemmarchand avatar guilhemmarchand commented on July 25, 2024 6

Thanks @ffscl
I just tested it in a Kubernetes v1.10.2 cluster and this fixes the issue, I used:

        volumeMounts:
        - name: ufconfig
          mountPath: /var/opt/splunk/etc/apps/search/local

And still reference any file with $SPLUNK_HOME

from docker-splunk-legacy.

sharmmoh1983 avatar sharmmoh1983 commented on July 25, 2024 1

Sorry I am not getting what solved the issue here... I updated daemonset yaml with:

volumeMounts:
        - name: ufconfig
          mountPath: /var/opt/splunk/etc/apps/search/local

But nothing seems to work. Please let me know what exactly need to be done to resolve the issue

from docker-splunk-legacy.

sforsman avatar sforsman commented on July 25, 2024 1

@sharmmoh1983 If you are using Splunk Cloud, you need to mount the ConfigMap to /var/opt/splunk/etc/apps/splunkclouduf/default

from docker-splunk-legacy.

halr9000 avatar halr9000 commented on July 25, 2024

@mchene ^

from docker-splunk-legacy.

halr9000 avatar halr9000 commented on July 25, 2024

@erks I've alerted PM and got ack back that they will triage.

from docker-splunk-legacy.

erks avatar erks commented on July 25, 2024

@halr9000 if you're okay with doing chown ... || true, which seems to work for me, I can create a quick PR for that.

from docker-splunk-legacy.

rayh0001 avatar rayh0001 commented on July 25, 2024

Any updates? Any temporary fix or work-around?

from docker-splunk-legacy.

rayh0001 avatar rayh0001 commented on July 25, 2024

Thanks @ffscl @guilhemmarchand that seems to work

from docker-splunk-legacy.

erks avatar erks commented on July 25, 2024

This definitely should be documented. @halr9000

from docker-splunk-legacy.

vasartori avatar vasartori commented on July 25, 2024

@guilhemmarchand Works like a charm!!

from docker-splunk-legacy.

mychalsexton avatar mychalsexton commented on July 25, 2024

@ffscl That worked like a charm! Thank goodness I found this otherwise I might have gone crazy.

from docker-splunk-legacy.

pgilad avatar pgilad commented on July 25, 2024

Can't get this to work with a daemonset and configmaps. Does anyone has any working example with splunkforwarder:7.3.0 ?

from docker-splunk-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.