Generating Logs

Overview

Install Log Generator App

Now let’s install the log generator app, so we can give Splunk something to consume.

  1. SSH into the Splunk VM (Putty on Windows, Terminal on Mac)

    • Username - root

    • Password - nutanix/4u

    ssh root@10.38.19.50
    
  2. Copy down the GoGen files, modified for Nutanix/Splunk.

    cd /tmp
    curl -LJO https://github.com/livearchivist/splunk/raw/master/assets/TA-Nutanix.zip -o TA-Nutanix.zip
    yum install unzip -y
    unzip TA-Nutanix.zip
    cp -r gogen-master/splunk_app_gogen /opt/splunk/etc/apps/
    
  3. Restart Splunk so the new application shows up.

    /opt/splunk/bin/splunk restart
    
  4. Log back into the Splunk web interface, you’ll see that GoGen is now showing up in the application list.

    ../../_images/1417.png
  5. Click on Settings > Data Inputs.

    ../../_images/1514.png
  6. Click on GoGen.

  7. Click on the stanza name: retail_transaction.

  8. Fill in the fields to look like the below image, click save:

    ../../_images/2313.png
  9. Enable retail_transaction.

    ../../_images/2411.png
  10. Restart Splunk one more time.

    /opt/splunk/bin/splunk restart
    

Data in Objects

After a little bit of time, you should be able to head over to Objects in PC and see that your bucket is being populated with data.

Note

If after 5 minutes, you’re not seeing this, you can try running the following script from the Splunk server:

splunk _internal call /data/indexes/main/roll-hot-buckets -auth admin:nutanix/4u
  1. You can see in the performance information for my bucket that there have been some Puts and Gets, although the timeline is short for the purposes of this demo, these patterns would continue.

    ../../_images/2510.png

Takeaways

  • Nutanix Objects makes it easy for your customers to migrate to SmartStore, giving them the flexibility to scale incrementally as their Splunk environment grows.