Installing Filebeat

Hi All,

I have downloaded Filebeat and trying to install per instruction provided on the site.
I have extracted it to C:\Program Files , I have renamed it and ran powershell as admin as well.
When I run the command C:\Program Files\Filebeat> .\install-service-filebeat.ps1
I get the following error message

At line:9 char:23
+ $workdir = Split-Path $MyInvocation.MyCommand.Path
+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Split-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand

I was able to get it to work.
Just to share with everyone I changed the variable $workdir to:
$workdir = 'C:\Program Files\Filebeat'

That is my solution.

1 Like

Thanks for sharing your solution!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.