![]() For this example I’ll demonstrate how I wrote a simple bash script to query the system for CPU temperature and voltage. Ĭonfiguring the Pi to send data to your laptop is as easy as adding a script to a directory, and editing two configuration files. For complete information, including best practices, please refer to the complete documentation at. IMPORTANT: These directions are a quick start, not best practices. Step 3: Configure scripts and Splunk Universal Forwarder. Congratulations, the Splunk Universal Forwarder is running on your Raspberry Pi! ![]() splunk version, and you should see the version output for ARM Linux. You’ll see the standard output for startup. To start Splunk on your forwarder, navigate to $SPLUNK_HOME /bin/ and run. you can run on the forwarder, but for simplicity’s sake we will leave everything as default. You can set it to autostart running the following as root: $SPLUNK_HOME/bin/Splunk enable boot-start, but please see the documentation at for more detailed instructions. One important thing to know when installing the Universal Forwarder on *nix, is that the default install does NOT autorun on boot. For my Pi, running Raspian, I used (word for word) and it worked out great. Despite the “installation instructions” mentioned during the download process, this distribution is actually a Splunk installable, and NOT a Splunk app. Step 2: Install the Splunk Universal Forwarder on your Raspberry Pi.ĭownload the Universal Forwarder from to your Pi. You will need to make sure that the machine your Splunk instance is running on has the appropriate firewall ports open. Congratulations, your Splunk instance is ready to receive data from your Pi! Splunk is now listening for data from a Splunk Universal Forwarder on port 9997. For now, we will just add a new listener at port 9997, and click Save. Click “New” and you will be taken to the new configuration wizard. Assuming this is a brand new installation of Splunk, you will have no configurations. Under Data, click Forwarding and receiving, and you will be taken to the configuration page where you can set Splunk to listen for data from your Pi.Ĭlick “configure receiving”, and you will be taken to the receive data configuration page. In the upper right, click the dropdown for “Settings”. Close this out and you will be ready to configure! Once you login, you will see a popup describing new features in Splunk 6. For the first login use the username “admin” and password “changeme”. ![]() Once Splunk is installed, you should open a browser and go to You will be presented with a login page. Install using the documentation and default settings. Step 1: Install and configure Splunk on your laptop or desktop.įirst, download Splunk 6 from our download site. The potential there is only limited to your imagination and we will cover scenarios like this in future posts, but for now we will focus on building a super simple data connection which will send CPU data from a single network connected Pi to a single instance of Splunk running on a network connected laptop or desktop. With these features you could update inputs and manage scripts on thousands of distributed Pi’s, collecting all of their data remotely and forwarding it to a central Splunk indexer. You can also take advantage of Splunk’s built in remote management and maintenance through its distributed deployment features. Using a Universal Forwarder you can take advantage of Splunk’s end to end data distribution mechanisms with no need to understand or develop against Splunk’s API. ![]() While this task was not impossible before, the process involved manual streaming of data to the Splunk API. Last week we announced a release of our Universal Forwarder for Linux ARM (Raspberry Pi) which greatly simplifies the process of taking any data from a Raspberry Pi including GPIO or other connected sensors and attached shields and sending that data to Splunk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |