August 19, 20223 yr Author Hey @tknx First configure Splunk to listen for TCP/UDP 514, make sure you set an index for the data. https://docs.splunk.com/Documentation/Splunk/latest/Data/Monitornetworkports#Add_a_network_input_using_Splunk_Web Then add a port mapping in your docker config for the Splunk container. In the edit screen for the container, click "add a port, path, variable, label, or device" and fill it out appropriately, perhaps like the image I've attached. In my example I've mapped the container's port 514 to the local br0 port 10514. In unRAID's syslog settings (settings --> syslog) under "remote syslog server", type in the IP of your unRAID server, and set the port to the mapped port, in our example 10514. Then the data should be available in Splunk under the index you specified when creating the listener. Hope this helps
August 22, 20223 yr Hi Andrew, Here is an example pics of my config for the container and my config on the Splunk file. Nothing coming through on either UDP or TCP when I try either.
August 22, 20223 yr Author That should work. There are two things you can check: 1. Make sure the port is actually open/listening. Just open a terminal to the docker container and check netstat to make sure port 514 is open and listening. I just added 514 to my server, you can see it listed below as being open. /opt/splunk # netstat -anp | grep splunkd | grep 'LISTEN\|udp' tcp 0 0 0.0.0.0:9997 0.0.0.0:* LISTEN 71/splunkd tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 71/splunkd tcp 0 0 0.0.0.0:8089 0.0.0.0:* LISTEN 71/splunkd tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 71/splunkd udp 0 0 0.0.0.0:514 0.0.0.0:* 71/splunkd /opt/splunk # 2. Send a test syslog message. I'm sending to 10514 because that's what I mapped the port to as described in my previous post. You should send to your custom IP:514, because that's what you have configured. Something like: ~ >>> nc -v -u 192.168.1.121 10514 hi, i'm sendign some data to my syslog listener wow! ^CExiting. ~ took 10s >>> Check if it lands in the index. It should, mine did just fine. If this works for you then the problem lies elsewhere, perhaps ask in a broader unRAID support section about remote syslogging.
August 23, 20223 yr OK, test messages worked. So it is most likely Unraid that isn't sending remote logs.
December 16, 20223 yr When I modify the container and it gets rebuilt, I lose all of the reports and dashboards I have created. The password also gets reset to default and I have to reconfigure the trial license. Is there any way to retain all of these things on rebuild so I don't have to keep reconfiguring and storing copies of my report/dashboard SPL elsewhere? EDIT: To clarify - my indexes, datasets, and installed apps are all preserved. So some of my configurations are persistent, just not (most importantly) reports and dashboards. Perhaps my docker configuration is wrong, but it seems pretty straight forward... Edited December 16, 20223 yr by napalmyourmom word
December 16, 20223 yr 3 hours ago, napalmyourmom said: When I modify the container and it gets rebuilt, I lose all of the reports and dashboards I have created. The password also gets reset to default and I have to reconfigure the trial license. Is there any way to retain all of these things on rebuild so I don't have to keep reconfiguring and storing copies of my report/dashboard SPL elsewhere? EDIT: To clarify - my indexes, datasets, and installed apps are all preserved. So some of my configurations are persistent, just not (most importantly) reports and dashboards. Perhaps my docker configuration is wrong, but it seems pretty straight forward... Figured this out myself. My reports were saved with permissions as user and user data is not persisted. I had to add the following to a path variable to persist its data: /opt/splunk/etc/users As for saving the admin password, license, and free license configuration, I had to add the following paths: /opt/splunk/etc/licenses /opt/splunk/etc/system Now when I recreate the container I do not have to reset the password or reapply the free license. Edited December 16, 20223 yr by napalmyourmom
December 19, 20223 yr Author thanks @napalmyourmom, I'll add persisting license and user folders as options in the unraid GUI in a future update (should be 9.0.2 shortly after xmas).
January 30, 20242 yr Greetings. I am trying to troubleshoot an issue, but the docker seems to be missing a required package and so I cannot run splunk diag. Here is the error: libgcc_s.so.1 must be installed for pthread_cancel to work It appears I have no means of getting/installing this from the console. Any assistance would be greatly appreciated. Thanks!
July 21, 20241 yr Any plans to update this to latest version of Splunk? Or any ideas why gosplunk.sh keeps dying with errors that /opt/splunk/bin/splunk doesn't exist after it completes installation? Been trying to build my own fork with updated versions, but keep hitting that error.
July 21, 20241 yr Author hey, i stopped pushing upgrades because dockerhub started forcing me to pay money for new builds if there's an alternative to dockerhub that hosts free built images i'll update the public versions of everything to latest, do you know if there's one I can use?
July 21, 20241 yr 10 minutes ago, andrew207 said: hey, i stopped pushing upgrades because dockerhub started forcing me to pay money for new builds if there's an alternative to dockerhub that hosts free built images i'll update the public versions of everything to latest, do you know if there's one I can use? Looks like dockerhub is still free-ish. You're just limited to 200 pulls per 6 hours. https://www.docker.com/pricing/
July 21, 20241 yr Author unsustainably low for this container unfortunately every time I pushed an update previously there were around 20-30k downloads in 24hrs also, they removed auto-builds, so now I have to manually build the image locally then push it to dockerhub... destroying the time I spent building the automated build process i'd prefer to either swap to another free service or I may just nuke this entirely I actually can't get dockerhub to do any builds for me without giving them a credit card that they 'promise they won't charge' update: FWIW I have made a new branch on 9.2.2 that works fine. I had to rebase from Alpine to Ubuntu because Alpine's new MUSL/gcompat layer doesn't work properly (yet). But yeah you'll have to build it locally: git clone -b 9.2.2 [email protected]:andrew207/splunk.git docker build ./splunk --tag andrew207/splunk docker run -d andrew207/splunk -name splunk Edited July 21, 20241 yr by andrew207
July 21, 20241 yr Author for now tho @vidkun i have manually pushed to the :9.2.2 branch, you can just set this in the GUI of unRAID and it should work. i haven't tested upgrades, but fresh container installs will be fine. if it stays good over the next week or so i'll update /latest
July 22, 20241 yr 12 hours ago, andrew207 said: for now tho @vidkun i have manually pushed to the :9.2.2 branch, you can just set this in the GUI of unRAID and it should work. i haven't tested upgrades, but fresh container installs will be fine. if it stays good over the next week or so i'll update /latest Thanks! Just updated from your previous 9.0.0 build and worked fine from what I can tell.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.