Splunk Search

How to run a command / Documentation unclear

DEkocklukas
Engager

Hi.

How do i run this command?
export OPENSSL_CONF=$SPLUNK_HOME/openssl/openssl.cnf

I am trying to follow these instructions.
http://splunk-base.splunk.com/answers/7164/how-do-i-set-up-ssl-forwarding-with-new-self-signed-certi...

However, Windows Command Prompt does not have a command called export. Nor does OpenSSL.
So how do i run this command "export"

Through which interface. It might seem like an idiotic question, but seriously. Nothing spesifies how or where to run these commands. The MKDir command is supported by command prompt, so i would have assumed Export should be run by the same thing.

echalex
Builder

Hi Dekocklukas,

That command is specific to sh-compatible shells, bash for example, which you normally use in different flavours of nix, e.g. Linux, Solaris, *BSD and so forth. You *can use it within such a shell in Windows, but most people would use the "normal" Windows command line.

Simply put, it's not a Windows command. The instructions you linked to are specific to *nix, not Windows. The documentation also includes instructions for Windows, here:
http://docs.splunk.com/Documentation/Splunk/latest/Admin/SecureaccesstoyourSplunkserverwithSSL#Gener...

The same command in Windows would be:

set OPENSSL_CONF=%SPLUNK_HOME%\opensssl\openssl.cnf

...provided that SPLUNK_HOME is set to point to the Splunk installation folder. You can check this by running

echo %SPLUNK_HOME%

Also note that all the commands with a filename extension .sh are for *nix. In Windows, you typically use the .bat extension.

HTH

echalex
Builder

I'm glad if it helped you! Thanks so much for the points. You know, if you like an anser, you can always vote it up with the arrow and/or accept it as the correct one. This will also reward the responder, but won't cost you any karma.

0 Karma

DEkocklukas
Engager

woo hoo. Thx. This is much appreciated.

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!

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...