Tutorial Cannot Work


#1

Tried the tutorial in
https://www.elastic.co/guide/en/beats/topbeat/current/topbeat-getting-started.html

Keep getting the error after

Command:
PS C:\Users\Admin\Downloads\topbeat-1.1.0-windows> Invoke-WebRequest -Method Put -InFile topbeat.template.json -Uri http://localhost:9200/_template/topbeat?pretty

Error:
Get-Process : A positional parameter cannot be found that accepts argument 'Invoke-WebRequest'.
At line:1 char:1

  • PS C:\Users\Admin\Downloads\topbeat-1.1.0-windows> Invoke-WebRequest ...
  •   + CategoryInfo          : InvalidArgument: (:) [Get-Process], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

(Andrew Kroh) #2

What operating system?

What PowerShell version? Use this to check: PS C:\> $PSVersionTable.PSVersion


#3

PS C:\Users\Admin> $PSVersionTable.PSVersion

Major Minor Build Revision


5 0 10240 16384


#4

Solved the problem by restarting the machine


(Andrew Kroh) #5

Glad to hear that because I was out of ideas. :smile:


(system) #6