Skip to content

Instantly share code, notes, and snippets.

http://docs.graylog.org/en/latest/pages/users_and_roles/permission_system.html

This will create a power user role that has permissions to do searches and create/edit dashboards (it's not necessary to include permissions already in the Reader role because Graylog will by default assign that role to all users):

curl -v -XPOST -u 'ADMIN:PASSWORD' -H 'Content-Type: application/json' 'http://graylog.example.org:9000/api/roles' -d '{"name":"Power user","description":"Dashboard and search permissions","permissions":["dashboards:create","dashboards:edit:*","dashboards:read:*","searches:absolute","searches:keyword","searches:relative"],"read_only":false}'

(Replace ADMIN, PASSWORD, and the URL as appropriate)

Here's the un-minified JSON for the Power user role:

@rsudre
rsudre / Flux.md
Created July 12, 2023 20:39 — forked from reinaldocoelho/Flux.md
Documento sobre queries no InfluxDB, explicando algumas formas de organizar.

Telegraf

  • O telegraf é o sistema que recupera, processa e dispara registros de fontes para os destinos.

O telegraf é dividido na seguinte estrutura:

  1. Configurações - Configurações gerais de comportamento
  2. Inputs - Processadores de Input que vão ler alguma estrutura de entrada, seja arquivo, banco ou log.
  3. Processors - Podem
  4. Aggregators
@rsudre
rsudre / blog20190207-01.sh
Created August 9, 2023 22:05 — forked from haproxytechblog/blog20190207-01.sh
Introduction to HAProxy Logging
sudo apt install -y rsyslog

Disclaimer: This gist is a bit outdated now. The client download page now redirects to a login page that the downloads are guarded behind. You'll want to do a web search for a pulse secure deb file and install that now. Try: http://webdev.web3.technion.ac.il/docs/cis/public/ssl-vpn/ps-pulse-ubuntu-debian.deb. When I installed Pulse Secure 9.1R13, I didn't need to do anything else to get it working.

9.1R13 download: https://drive.google.com/file/d/1xfXsg9aNISAtWUgfVmAWKd_8FE2I_Mbl/view


To install Pulse Secure for Ubuntu 20.04, it is a bit complicated since the support isn't great.

First, we'll want to go through the form at https://www.pulsesecure.net/trynow/client-download/. You'll get an email with download links to the latest versions of pulse secure. Download the Linux