elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
130 stars 138 forks source link

‘Unterminated quoted string’ when installing elastic-agent #5612

Open turnerud opened 3 weeks ago

turnerud commented 3 weeks ago

Getting this error when running the installation command on my VM terminal. I'm running Kali Linux through UTM on a Mac.

"./elastic-agent: 3: Syntax error: Unterminated quoted string"

Couldn't see anything wrong with the config file but maybe I'm looking for the wrong thing? When I run the installation command it starts initially, runs through a bunch of files, asks for my password, and then gives me the error. Any help would be appreciated!

cmacknz commented 3 weeks ago

That looks a lot like the elastic-agent executable is a script with an error on line 3. It should be a symlink to a compiled Go application (or just a compiled Go application depend on where it is invoked from).