Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] atunnecliffe - Splunk

Featured Replies

  • 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
 

image.png

  • Replies 88
  • Views 25.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • andrew207
    andrew207

    Hey @tkohhh yeah in super simple terms Splunk is like a syslog server with built in search/report/alert functionality. You only need this container, no dependencies. Check the readme for volume defini

  • andrew207
    andrew207

    @tkohhh The key reason I made my own was actually because the official repo requires root to install itself. My container does not, and therefore it is compatible with locked down environments like Op

  • Disregard that question for now... I'm reading some stuff that might set me straight.  https://answers.splunk.com/answers/320021/how-do-i-set-timezone-properly-in-propsconf.html

Posted Images

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.

 

 

 

Splunk Unraid Container.png

Unraid syslog settings.png

Splunk Index.png

splunk results.png

  • 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.

image.png.3694164f4071db450d79ba5b967ccc58.png

 

If this works for you then the problem lies elsewhere, perhaps ask in a broader unRAID support section about remote syslogging.

OK, test messages worked.

 

So it is most likely Unraid that isn't sending remote logs.

  • 3 months later...

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 by napalmyourmom
word

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 by napalmyourmom

  • 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).

  • 1 year later...

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!

  • 5 months later...

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.

  • 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?

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/

  • 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 by andrew207

  • 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

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.