添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
飞奔的灯泡  ·  X-scan_百度百科·  1 年前    · 
18330380933  ·  github - Installing ...·  3 年前    · 
英姿勃勃的酱牛肉  ·  Java ...·  4 周前    · 
无邪的煎饼  ·  springData 实现mongodb ...·  3 月前    · 
英俊的遥控器  ·  python读取超大csv-掘金·  9 月前    · 
健身的钥匙  ·  修饰名 | Microsoft Learn·  9 月前    · 
Collectives on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more

I am unable to find a reliable way to install elastic's packetbeat on windows. I know I'll have to download source and create my own windows package. However, all instructions are outdated and are from before it moved to elastic's domain.

Anyone know how to compile this package for windows?

The windows docs were recently updated. If they don't work, you should probably file and issue there. JimB Jul 6 '15 at 17:15 @JimB ah ok. I didn't see that. However their download link doesn't have the windows packages. I'll file with them. Shannon Duncan Jul 6 '15 at 17:59
  • Download and install WinPcap from this page . WinPcap is a library that uses a driver to enable packet capturing.
  • Download the Packetbeat Windows zip file from here .
  • Extract the contents of the zip file into C:\Program Files.
  • Rename the packetbeat--windows directory to Packetbeat.
  • Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select Run As Administrator). If you are running Windows XP, you may need to download and install PowerShell.
  • Run the following commands to install Packetbeat as a Windows service:

  • PS > cd 'C:\Program Files\Packetbeat'

  • PS C:\Program Files\Packetbeat> .\install-service-packetbeat.ps1
  • If script execution is disabled on your system, you need to set the execution policy for the current session to allow the script to run. For example: PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-packetbeat.ps1.

  • Before starting Packetbeat, you should look at the configuration options in the configuration file, for example C:\Program Files\Packetbeat\packetbeat.yml or /etc/packetbeat/packetbeat.yml

  • Here is the link to the documentation of installing packetbeat on windows.

    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review Richard Telford Jul 11 '16 at 18:40 I have updated the answer now , please let me know if you face some problems with it. rresol Jul 11 '16 at 18:49

    Note:

    winpcap.dll is required for packetbeat to function on a windows machine. WinPCap itself isn't currently supported, so the current best practice is to use npcap in winpcap compatibility mode instead. See this section of the Packetbeat FAQ

    You can download npcap's installer here .

    The command line call to install npcap (version 0.86) in winpcap compatibility mode is:

    npcap-0.86.exe /winpcap_mode=yes
    

    The silent install would be:

    npcap-0.86.exe /S /winpcap_mode=yes
            

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.