Getting Data In

How to install the decompressed .gz file on AIX for a Splunk universal forwarder?

lloydknight
Builder

Well, this is technically a Unix question but still asked it here since it involves with Splunk.

I already installed a forwarder on Linux and didn't have a problem with tar files, but I am having a hard time installing the forwarder for AIX. I don't know how to install the decompressed .gz file to the AIX OS unlike in Linux, you'll just have to type
sudo tar xvzf splunkforwarder.tar -C /opt/

How about in AIX? I tried:
sudo tar xvf -C /opt/ /home/splunkforwarder.gz and it's not working. It's returning an error that directories are not located etc.. I already tried a variety of commands to run it.

Tried gzip -d splunkforwarder.gz and it's just decompressing it. Kindly show me the procedure please. Thank you!

0 Karma
1 Solution

acharlieh
Influencer

Many blogs seem to indicate that lacking the integrated options like tar has on linux, you just need to pipe the output of one command to the other. So (without an AIX system in front of me)... Assuming you downloaded splunkforwarder-6.3.1-f3e41e4b37b2-AIX-powerpc.tgz and it's on your system as /home/splunkforwarder.tgz: First become root with sudo bash or sudo -s or something like that. cd /opt and then

gunzip -c /home/splunkforwarder.tgz | tar xvf -

Alternatively, this one line might work, but you'd have to check me (lacking an AIX system to play with directly 🙂 😞

cd /opt; gunzip -c /home/splunkforwarder.tgz | sudo tar xvf -

View solution in original post

acharlieh
Influencer

Many blogs seem to indicate that lacking the integrated options like tar has on linux, you just need to pipe the output of one command to the other. So (without an AIX system in front of me)... Assuming you downloaded splunkforwarder-6.3.1-f3e41e4b37b2-AIX-powerpc.tgz and it's on your system as /home/splunkforwarder.tgz: First become root with sudo bash or sudo -s or something like that. cd /opt and then

gunzip -c /home/splunkforwarder.tgz | tar xvf -

Alternatively, this one line might work, but you'd have to check me (lacking an AIX system to play with directly 🙂 😞

cd /opt; gunzip -c /home/splunkforwarder.tgz | sudo tar xvf -

lloydknight
Builder

I used gzip -d /home/splunkforwarder.gz then tar xvf splunkforwarder. that's it. I'm having an error when using |. thanks!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...