Skip to content

Instantly share code, notes, and snippets.

@haxorjim
Last active September 17, 2021 16:37
Show Gist options
  • Select an option

  • Save haxorjim/921df8f1f8fa138f14e6566536ae1f95 to your computer and use it in GitHub Desktop.

Select an option

Save haxorjim/921df8f1f8fa138f14e6566536ae1f95 to your computer and use it in GitHub Desktop.

Revisions

  1. haxorjim revised this gist Sep 17, 2021. 2 changed files with 12 additions and 2 deletions.
    10 changes: 10 additions & 0 deletions manjaro.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    sudo pacman -S metricbeat

    sudo vi /etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    sudo systemctl enable metricbeat
    sudo systemctl start metricbeat
    sudo systemctl status metricbeat
    4 changes: 2 additions & 2 deletions ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -9,5 +9,5 @@ sudo vi /etc/metricbeat/metricbeat.yml
    # hosts: ["elk.local:5044"]

    sudo systemctl enable metricbeat
    sudo service metricbeat start
    sudo service metricbeat status
    sudo systemctl metricbeat start
    sudo systemctl status metricbeat
  2. haxorjim revised this gist Sep 17, 2021. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions windows.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # https://www.elastic.co/downloads/beats/metricbeat

    cd 'C:\Program Files\Metricbeat'
    notepad metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-metricbeat.ps1
    Start-Service metricbeat
  3. haxorjim renamed this gist Sep 17, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. haxorjim revised this gist Sep 17, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion mb.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    asdf
  5. haxorjim renamed this gist Sep 17, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. haxorjim revised this gist Sep 17, 2021. 3 changed files with 10 additions and 10 deletions.
    9 changes: 0 additions & 9 deletions mac.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +0,0 @@
    brew tap elastic/tap
    brew install elastic/tap/metricbeat-full

    vi /usr/local/etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    brew services start elastic/tap/metricbeat-full
    1 change: 1 addition & 0 deletions mb.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    asdf
    10 changes: 9 additions & 1 deletion metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,9 @@
    # Setting up Metricbeat
    brew tap elastic/tap
    brew install elastic/tap/metricbeat-full

    vi /usr/local/etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    brew services start elastic/tap/metricbeat-full
  7. haxorjim revised this gist Sep 17, 2021. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions mac.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    brew tap elastic/tap
    brew install elastic/tap/metricbeat-full

    vi /usr/local/etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    brew services start elastic/tap/metricbeat-full
  8. haxorjim revised this gist Sep 17, 2021. 1 changed file with 0 additions and 9 deletions.
    9 changes: 0 additions & 9 deletions mac.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +0,0 @@
    brew tap elastic/tap
    brew install elastic/tap/metricbeat-full

    vi /usr/local/etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    brew services start elastic/tap/metricbeat-full
  9. haxorjim revised this gist Sep 17, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # Setting up Metricbeat
  10. haxorjim revised this gist Sep 17, 2021. 2 changed files with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions mac.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    brew tap elastic/tap
    brew install elastic/tap/metricbeat-full

    vi /usr/local/etc/metricbeat/metricbeat.yml

    #output.logstash:
    # hosts: ["elk.local:5044"]

    brew services start elastic/tap/metricbeat-full
    File renamed without changes.
  11. haxorjim renamed this gist Sep 17, 2021. 1 changed file with 1 addition and 9 deletions.
    10 changes: 1 addition & 9 deletions metricbeat.md → metricbeat.sh
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,13 @@
    ```bash
    curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    sudo apt update
    sudo apt install metricbeat
    ```

    ```bash
    sudo vi /etc/metricbeat/metricbeat.yml
    ```

    ```bash
    #output.logstash:
    # hosts: ["elk.local:5044"]
    ```

    ```bash
    sudo systemctl enable metricbeat
    sudo service metricbeat start
    sudo service metricbeat status
    ```
    sudo service metricbeat status
  12. haxorjim revised this gist Sep 17, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ sudo apt install metricbeat
    ```

    ```bash
    sudo vi /etc/metricbeat/metricbeat.yml`
    sudo vi /etc/metricbeat/metricbeat.yml
    ```

    ```bash
  13. haxorjim revised this gist Sep 17, 2021. 1 changed file with 14 additions and 8 deletions.
    22 changes: 14 additions & 8 deletions metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,21 @@
    `curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -`
    `echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list`
    `sudo apt update`
    `sudo apt install metricbeat`
    ```bash
    curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    sudo apt update
    sudo apt install metricbeat
    ```

    `sudo vi /etc/metricbeat/metricbeat.yml`
    ```bash
    sudo vi /etc/metricbeat/metricbeat.yml`
    ```

    ```bash
    #output.logstash:
    # hosts: ["elk.local:5044"]
    ```

    `sudo systemctl enable metricbeat`
    `sudo service metricbeat start`
    `sudo service metricbeat status`
    ```bash
    sudo systemctl enable metricbeat
    sudo service metricbeat start
    sudo service metricbeat status
    ```
  14. haxorjim revised this gist Sep 17, 2021. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    sudo apt update
    sudo apt install metricbeat
    `curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -`
    `echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list`
    `sudo apt update`
    `sudo apt install metricbeat`

    sudo vi /etc/metricbeat/metricbeat.yml
    `sudo vi /etc/metricbeat/metricbeat.yml`

    ```bash
    #output.logstash:
    # hosts: ["elk.local:5044"]
    ```

    sudo systemctl enable metricbeat
    sudo service metricbeat start
    sudo service metricbeat status
    `sudo systemctl enable metricbeat`
    `sudo service metricbeat start`
    `sudo service metricbeat status`
  15. haxorjim created this gist Sep 17, 2021.
    15 changes: 15 additions & 0 deletions metricbeat.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
    sudo apt update
    sudo apt install metricbeat

    sudo vi /etc/metricbeat/metricbeat.yml

    ```bash
    #output.logstash:
    # hosts: ["elk.local:5044"]
    ```

    sudo systemctl enable metricbeat
    sudo service metricbeat start
    sudo service metricbeat status