completion
stringlengths 1
920
| category
stringclasses 18
values | conversations
listlengths 2
2
|
|---|---|---|
sudo pacman -S postman-bin insomnia
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install API testing tools"
},
{
"from": "gpt",
"value": "sudo pacman -S postman-bin insomnia"
}
] |
curl -X GET https://api.example.com/data -H 'Authorization: Bearer token'
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Test API endpoint with curl"
},
{
"from": "gpt",
"value": "curl -X GET https://api.example.com/data -H 'Authorization: Bearer token'"
}
] |
sudo pacman -S httpie
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install HTTPie for API testing"
},
{
"from": "gpt",
"value": "sudo pacman -S httpie"
}
] |
http GET https://api.example.com/data Authorization:"Bearer token"
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Test API with HTTPie"
},
{
"from": "gpt",
"value": "http GET https://api.example.com/data Authorization:\"Bearer token\""
}
] |
sudo pacman -S jq
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install jq for JSON processing"
},
{
"from": "gpt",
"value": "sudo pacman -S jq"
}
] |
curl -s https://api.example.com/data | jq '.results[0].name'
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Parse JSON API response"
},
{
"from": "gpt",
"value": "curl -s https://api.example.com/data | jq '.results[0].name'"
}
] |
pip install openai
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install OpenAI CLI tools"
},
{
"from": "gpt",
"value": "pip install openai"
}
] |
curl https://api.openai.com/v1/chat/completions -H 'Content-Type: application/json' -H 'Authorization: Bearer $OPENAI_API_KEY' -d '{\"model\":\"gpt-3.5-turbo\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello!\",\"temperature\":0.7}]}'
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Test OpenAI API with curl"
},
{
"from": "gpt",
"value": "curl https://api.openai.com/v1/chat/completions -H 'Content-Type: application/json' -H 'Authorization: Bearer $OPENAI_API_KEY' -d '{\\\"model\\\":\\\"gpt-3.5-turbo\\\",\\\"messages\\\":[{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Hello!\\\",\\\"temperature\\\":0.7}]}'"
}
] |
export http_proxy=http://proxy.example.com:8080 && export https_proxy=http://proxy.example.com:8080
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure HTTP proxy"
},
{
"from": "gpt",
"value": "export http_proxy=http://proxy.example.com:8080 && export https_proxy=http://proxy.example.com:8080"
}
] |
echo -e 'Acquire::http::Proxy \"http://proxy.example.com:8080\";\nAcquire::https::Proxy \"http://proxy.example.com:8080\";' | sudo tee /etc/apt/apt.conf.d/00proxy
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure system-wide proxy"
},
{
"from": "gpt",
"value": "echo -e 'Acquire::http::Proxy \\\"http://proxy.example.com:8080\\\";\\nAcquire::https::Proxy \\\"http://proxy.example.com:8080\\\";' | sudo tee /etc/apt/apt.conf.d/00proxy"
}
] |
git config --global http.proxy http://proxy.example.com:8080
|
git
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Git proxy"
},
{
"from": "gpt",
"value": "git config --global http.proxy http://proxy.example.com:8080"
}
] |
sudo systemctl daemon-reload && sudo systemctl restart docker
|
docker
|
[
{
"from": "human",
"value": "Convert to Linux command: Reload Docker systemd config"
},
{
"from": "gpt",
"value": "sudo systemctl daemon-reload && sudo systemctl restart docker"
}
] |
npm config set proxy http://proxy.example.com:8080 && npm config set https-proxy http://proxy.example.com:8080
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure npm proxy"
},
{
"from": "gpt",
"value": "npm config set proxy http://proxy.example.com:8080 && npm config set https-proxy http://proxy.example.com:8080"
}
] |
sudo pacman -S squid
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Squid proxy server"
},
{
"from": "gpt",
"value": "sudo pacman -S squid"
}
] |
htpasswd -c /etc/squid/passwd myuser
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Squid basic auth"
},
{
"from": "gpt",
"value": "htpasswd -c /etc/squid/passwd myuser"
}
] |
sudo systemctl start squid
|
network
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Squid proxy"
},
{
"from": "gpt",
"value": "sudo systemctl start squid"
}
] |
sudo pacman -S nginx
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Nginx as reverse proxy"
},
{
"from": "gpt",
"value": "sudo pacman -S nginx"
}
] |
sudo tee /etc/nginx/sites-available/reverse << 'EOF'
server {
listen 80;
server_name api.example.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
EOF
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Nginx reverse proxy"
},
{
"from": "gpt",
"value": "sudo tee /etc/nginx/sites-available/reverse << 'EOF'\nserver {\n listen 80;\n server_name api.example.com;\n \n location / {\n proxy_pass http://localhost:3000;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n }\n}\nEOF"
}
] |
sudo pacman -S traefik
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Traefik reverse proxy"
},
{
"from": "gpt",
"value": "sudo pacman -S traefik"
}
] |
cat > traefik.yml << 'EOF'
entryPoints:
web:
Address: ":80
providers:
file:
filename: /etc/traefik/rules.yml
EOF
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Traefik dynamic config"
},
{
"from": "gpt",
"value": "cat > traefik.yml << 'EOF'\nentryPoints:\n web:\n Address: \":80\nproviders:\n file:\n filename: /etc/traefik/rules.yml\nEOF"
}
] |
sudo pacman -S caddy
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Caddy web server"
},
{
"from": "gpt",
"value": "sudo pacman -S caddy"
}
] |
echo 'example.com {
reverse_proxy localhost:3000
}' | sudo tee /etc/caddy/Caddyfile
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Caddy with automatic HTTPS"
},
{
"from": "gpt",
"value": "echo 'example.com {\n reverse_proxy localhost:3000\n}' | sudo tee /etc/caddy/Caddyfile"
}
] |
sudo systemctl start caddy
|
web
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Caddy with systemd"
},
{
"from": "gpt",
"value": "sudo systemctl start caddy"
}
] |
sudo pacman -S jenkins
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Jenkins CI/CD server"
},
{
"from": "gpt",
"value": "sudo pacman -S jenkins"
}
] |
sudo systemctl start jenkins
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Jenkins service"
},
{
"from": "gpt",
"value": "sudo systemctl start jenkins"
}
] |
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Get Jenkins initial password"
},
{
"from": "gpt",
"value": "sudo cat /var/lib/jenkins/secrets/initialAdminPassword"
}
] |
sudo pacman -S gitlab
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install GitLab self-hosted"
},
{
"from": "gpt",
"value": "sudo pacman -S gitlab"
}
] |
sudo gitlab-ctl reconfigure
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure GitLab"
},
{
"from": "gpt",
"value": "sudo gitlab-ctl reconfigure"
}
] |
sudo pacman -S drone
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Drone CI/CD"
},
{
"from": "gpt",
"value": "sudo pacman -S drone"
}
] |
cat > /etc/drone/drone.env << 'EOF'
DRONE_GITEA_SERVER=https://git.example.com
DRONE_GITEA_CLIENT_ID=your-client-id
DRONE_GITEA_CLIENT_SECRET=your-client-secret
DRONE_RPC_SECRET=your-rpc-secret
DRONE_SERVER_HOST=drone.example.com
DRONE_SERVER_PROTO=https
EOF
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Drone server"
},
{
"from": "gpt",
"value": "cat > /etc/drone/drone.env << 'EOF'\nDRONE_GITEA_SERVER=https://git.example.com\nDRONE_GITEA_CLIENT_ID=your-client-id\nDRONE_GITEA_CLIENT_SECRET=your-client-secret\nDRONE_RPC_SECRET=your-rpc-secret\nDRONE_SERVER_HOST=drone.example.com\nDRONE_SERVER_PROTO=https\nEOF"
}
] |
sudo pacman -S prometheus
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Prometheus monitoring"
},
{
"from": "gpt",
"value": "sudo pacman -S prometheus"
}
] |
cat > /etc/prometheus/prometheus.yml << 'EOF'
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'node'
static_configs:
- targets: ['localhost:9100']
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Prometheus scrape config"
},
{
"from": "gpt",
"value": "cat > /etc/prometheus/prometheus.yml << 'EOF'\nglobal:\n scrape_interval: 15s\n\nscrape_configs:\n - job_name: 'node'\n static_configs:\n - targets: ['localhost:9100']\nEOF"
}
] |
sudo systemctl start prometheus
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Prometheus"
},
{
"from": "gpt",
"value": "sudo systemctl start prometheus"
}
] |
sudo pacman -S grafana
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Grafana dashboard"
},
{
"from": "gpt",
"value": "sudo pacman -S grafana"
}
] |
sudo systemctl start grafana-server
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Grafana"
},
{
"from": "gpt",
"value": "sudo systemctl start grafana-server"
}
] |
sudo pacman -S loki
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Loki log aggregation"
},
{
"from": "gpt",
"value": "sudo pacman -S loki"
}
] |
cat > /etc/loki/loki.yml << 'EOF'
auth_enabled: false
server:
http_listen_port: 3100
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
storage_config:
boltdb_shipper:
active_index_directory: /tmp/loki/boltdb-shipper-active
cache_location: /tmp/loki/boltdb-shipper-cache
shared_store: filesystem
filesystem:
directory: /tmp/loki/chunks
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
chunk_store_config:
max_look_back_period: 0s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Loki"
},
{
"from": "gpt",
"value": "cat > /etc/loki/loki.yml << 'EOF'\nauth_enabled: false\n\nserver:\n http_listen_port: 3100\n\ningester:\n lifecycler:\n address: 127.0.0.1\n ring:\n kvstore:\n store: inmemory\n replication_factor: 1\n final_sleep: 0s\n chunk_idle_period: 5m\n chunk_retain_period: 30s\n\nschema_config:\n configs:\n - from: 2020-10-24\n store: boltdb-shipper\n object_store: filesystem\n schema: v11\n index:\n prefix: index_\n period: 24h\n\nstorage_config:\n boltdb_shipper:\n active_index_directory: /tmp/loki/boltdb-shipper-active\n cache_location: /tmp/loki/boltdb-shipper-cache\n shared_store: filesystem\n filesystem:\n directory: /tmp/loki/chunks\n\nlimits_config:\n enforce_metric_name: false\n reject_old_samples: true\n reject_old_samples_max_age: 168h\n\nchunk_store_config:\n max_look_back_period: 0s\n\ntable_manager:\n retention_deletes_enabled: false\n retention_period: 0s\nEOF"
}
] |
sudo pacman -S promtail
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Promtail log collector"
},
{
"from": "gpt",
"value": "sudo pacman -S promtail"
}
] |
cat > /etc/promtail/promtail.yml << 'EOF'
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://localhost:3100/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Promtail"
},
{
"from": "gpt",
"value": "cat > /etc/promtail/promtail.yml << 'EOF'\nserver:\n http_listen_port: 9080\n grpc_listen_port: 0\n\npositions:\n filename: /tmp/positions.yaml\n\nclients:\n - url: http://localhost:3100/loki/api/v1/push\n\nscrape_configs:\n- job_name: system\n static_configs:\n - targets:\n - localhost\n labels:\n job: varlogs\n __path__: /var/log/*log\nEOF"
}
] |
sudo pacman -S prometheus-node-exporter
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Node Exporter for metrics"
},
{
"from": "gpt",
"value": "sudo pacman -S prometheus-node-exporter"
}
] |
sudo systemctl start prometheus-node-exporter
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Node Exporter"
},
{
"from": "gpt",
"value": "sudo systemctl start prometheus-node-exporter"
}
] |
sudo pacman -S prometheus-blackbox-exporter
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Blackbox Exporter"
},
{
"from": "gpt",
"value": "sudo pacman -S prometheus-blackbox-exporter"
}
] |
cat > /etc/blackbox_exporter/config.yml << 'EOF'
modules:
http_2xx:
prober: http
timeout: 5s
http:
valid_status_codes: []
method: GET
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Blackbox Exporter"
},
{
"from": "gpt",
"value": "cat > /etc/blackbox_exporter/config.yml << 'EOF'\nmodules:\n http_2xx:\n prober: http\n timeout: 5s\n http:\n valid_status_codes: []\n method: GET\nEOF"
}
] |
sudo pacman -S prometheus-alertmanager
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Alertmanager for alerts"
},
{
"from": "gpt",
"value": "sudo pacman -S prometheus-alertmanager"
}
] |
cat > /etc/alertmanager/alertmanager.yml << 'EOF'
route:
group_by: ['alertname']
group_wait: 10s
group_interval: 10s
repeat_interval: 1h
receiver: 'web.hook'
receivers:
- name: 'web.hook'
webhook_configs:
- url: 'http://127.0.0.1:5001/'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'dev', 'instance']
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Alertmanager"
},
{
"from": "gpt",
"value": "cat > /etc/alertmanager/alertmanager.yml << 'EOF'\nroute:\n group_by: ['alertname']\n group_wait: 10s\n group_interval: 10s\n repeat_interval: 1h\n receiver: 'web.hook'\nreceivers:\n- name: 'web.hook'\n webhook_configs:\n - url: 'http://127.0.0.1:5001/'\ninhibit_rules:\n - source_match:\n severity: 'critical'\n target_match:\n severity: 'warning'\n equal: ['alertname', 'dev', 'instance']\nEOF"
}
] |
sudo pacman -S telegraf
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Telegraf metrics collector"
},
{
"from": "gpt",
"value": "sudo pacman -S telegraf"
}
] |
cat > /etc/telegraf/telegraf.conf << 'EOF'
[agent]
interval = "10s
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb]]
urls = ["http://localhost:8086"]
database = "telegraf"
timeout = "5s"
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.mem]]
[[inputs.disk]]
[[inputs.diskio]]
[[inputs.net]]
[[inputs.processes]]
[[inputs.system]]
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Telegraf"
},
{
"from": "gpt",
"value": "cat > /etc/telegraf/telegraf.conf << 'EOF'\n\n[agent]\n interval = \"10s\n round_interval = true\n metric_batch_size = 1000\n metric_buffer_limit = 10000\n collection_jitter = \"0s\"\n flush_interval = \"10s\"\n flush_jitter = \"0s\"\n precision = \"\"\n hostname = \"\"\n omit_hostname = false\n\n[[outputs.influxdb]]\n urls = [\"http://localhost:8086\"]\n database = \"telegraf\"\n timeout = \"5s\"\n\n[[inputs.cpu]]\n percpu = true\n totalcpu = true\n collect_cpu_time = false\n report_active = false\n\n[[inputs.mem]]\n[[inputs.disk]]\n[[inputs.diskio]]\n[[inputs.net]]\n[[inputs.processes]]\n[[inputs.system]]\nEOF"
}
] |
sudo pacman -S influxdb
|
database
|
[
{
"from": "human",
"value": "Convert to Linux command: Install InfluxDB time-series database"
},
{
"from": "gpt",
"value": "sudo pacman -S influxdb"
}
] |
sudo systemctl start influxdb
|
database
|
[
{
"from": "human",
"value": "Convert to Linux command: Start InfluxDB service"
},
{
"from": "gpt",
"value": "sudo systemctl start influxdb"
}
] |
influx -execute "CREATE DATABASE telegraf"
|
database
|
[
{
"from": "human",
"value": "Convert to Linux command: Create InfluxDB database"
},
{
"from": "gpt",
"value": "influx -execute \"CREATE DATABASE telegraf\""
}
] |
sudo pacman -S chronograf
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Chronograf dashboard"
},
{
"from": "gpt",
"value": "sudo pacman -S chronograf"
}
] |
sudo systemctl start chronograf
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Chronograf"
},
{
"from": "gpt",
"value": "sudo systemctl start chronograf"
}
] |
sudo pacman -S kapacitor
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Kapacitor for alerting"
},
{
"from": "gpt",
"value": "sudo pacman -S kapacitor"
}
] |
cat > /etc/kapacitor/kapacitor.conf << 'EOF'
data_dir = "/var/lib/kapacitor
hostname = "localhost" [http] bind-address = ":9092" auth-enabled = false log-enabled = true [[influxdb]] enabled = true urls = ["http://localhost:8086"] EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Kapacitor"
},
{
"from": "gpt",
"value": "cat > /etc/kapacitor/kapacitor.conf << 'EOF'\ndata_dir = \"/var/lib/kapacitor\nhostname = \"localhost\" [http] bind-address = \":9092\" auth-enabled = false log-enabled = true [[influxdb]] enabled = true urls = [\"http://localhost:8086\"] EOF"
}
] |
sudo pacman -S elasticsearch
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Elasticsearch search engine"
},
{
"from": "gpt",
"value": "sudo pacman -S elasticsearch"
}
] |
sudo sed -i 's/#network.host: 192.168.0.1/network.host: localhost/' /etc/elasticsearch/elasticsearch.yml
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Elasticsearch"
},
{
"from": "gpt",
"value": "sudo sed -i 's/#network.host: 192.168.0.1/network.host: localhost/' /etc/elasticsearch/elasticsearch.yml"
}
] |
sudo systemctl start elasticsearch
|
development
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Elasticsearch"
},
{
"from": "gpt",
"value": "sudo systemctl start elasticsearch"
}
] |
sudo pacman -S kibana
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Kibana visualization"
},
{
"from": "gpt",
"value": "sudo pacman -S kibana"
}
] |
sudo sed -i 's/#server.host: \"localhost\"/server.host: \"localhost\"/' /etc/kibana/kibana.yml
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Kibana"
},
{
"from": "gpt",
"value": "sudo sed -i 's/#server.host: \\\"localhost\\\"/server.host: \\\"localhost\\\"/' /etc/kibana/kibana.yml"
}
] |
sudo systemctl start kibana
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Kibana"
},
{
"from": "gpt",
"value": "sudo systemctl start kibana"
}
] |
sudo pacman -S logstash
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Logstash log processor"
},
{
"from": "gpt",
"value": "sudo pacman -S logstash"
}
] |
cat > /etc/logstash/conf.d/example.conf << 'EOF'
input {
beats {
port => 5044
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "apache-%{+YYYY.MM.dd}"
}
}
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Logstash pipeline"
},
{
"from": "gpt",
"value": "cat > /etc/logstash/conf.d/example.conf << 'EOF'\ninput {\n beats {\n port => 5044\n }\n}\n\nfilter {\n grok {\n match => { \"message\" => \"%{COMBINEDAPACHELOG}\" }\n }\n}\n\noutput {\n elasticsearch {\n hosts => [\"localhost:9200\"]\n index => \"apache-%{+YYYY.MM.dd}\"\n }\n}\nEOF"
}
] |
sudo pacman -S filebeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Filebeat log shipper"
},
{
"from": "gpt",
"value": "sudo pacman -S filebeat"
}
] |
sudo sed -i 's/output.elasticsearch:/#output.elasticsearch:/' /etc/filebeat/filebeat.yml && sudo sed -i 's/#output.logstash:/output.logstash:/' /etc/filebeat/filebeat.yml
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Filebeat"
},
{
"from": "gpt",
"value": "sudo sed -i 's/output.elasticsearch:/#output.elasticsearch:/' /etc/filebeat/filebeat.yml && sudo sed -i 's/#output.logstash:/output.logstash:/' /etc/filebeat/filebeat.yml"
}
] |
sudo systemctl start filebeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Filebeat"
},
{
"from": "gpt",
"value": "sudo systemctl start filebeat"
}
] |
sudo pacman -S metricbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Metricbeat metrics shipper"
},
{
"from": "gpt",
"value": "sudo pacman -S metricbeat"
}
] |
sudo metricbeat modules enable system
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Metricbeat"
},
{
"from": "gpt",
"value": "sudo metricbeat modules enable system"
}
] |
sudo systemctl start metricbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Metricbeat"
},
{
"from": "gpt",
"value": "sudo systemctl start metricbeat"
}
] |
sudo pacman -S packetbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Packetbeat network monitor"
},
{
"from": "gpt",
"value": "sudo pacman -S packetbeat"
}
] |
sudo packetbeat setup --dashboards
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Packetbeat"
},
{
"from": "gpt",
"value": "sudo packetbeat setup --dashboards"
}
] |
sudo systemctl start packetbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Packetbeat"
},
{
"from": "gpt",
"value": "sudo systemctl start packetbeat"
}
] |
sudo pacman -S heartbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Heartbeat uptime monitor"
},
{
"from": "gpt",
"value": "sudo pacman -S heartbeat"
}
] |
cat > /etc/heartbeat/heartbeat.yml << 'EOF'
heartbeat.monitors: - type: http urls: ["http://localhost:80"] schedule: '@every 5s' output.elasticsearch: hosts: ["localhost:9200"] EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Heartbeat"
},
{
"from": "gpt",
"value": "cat > /etc/heartbeat/heartbeat.yml << 'EOF'\nheartbeat.monitors: - type: http urls: [\"http://localhost:80\"] schedule: '@every 5s' output.elasticsearch: hosts: [\"localhost:9200\"] EOF"
}
] |
sudo pacman -S auditbeat
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Auditbeat security audit"
},
{
"from": "gpt",
"value": "sudo pacman -S auditbeat"
}
] |
sudo auditbeat setup --dashboards
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Auditbeat"
},
{
"from": "gpt",
"value": "sudo auditbeat setup --dashboards"
}
] |
sudo systemctl start auditbeat
|
security
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Auditbeat"
},
{
"from": "gpt",
"value": "sudo systemctl start auditbeat"
}
] |
sudo pacman -S journalbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Journalbeat systemd journal"
},
{
"from": "gpt",
"value": "sudo pacman -S journalbeat"
}
] |
cat > /etc/journalbeat/journalbeat.yml << 'EOF'
journalbeat.inputs: - paths: [] seek: cursor output.elasticsearch: hosts: ["localhost:9200"] EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Journalbeat"
},
{
"from": "gpt",
"value": "cat > /etc/journalbeat/journalbeat.yml << 'EOF'\njournalbeat.inputs: - paths: [] seek: cursor output.elasticsearch: hosts: [\"localhost:9200\"] EOF"
}
] |
sudo pacman -S functionbeat
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Functionbeat serverless"
},
{
"from": "gpt",
"value": "sudo pacman -S functionbeat"
}
] |
sudo functionbeat setup --dashboards
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Functionbeat"
},
{
"from": "gpt",
"value": "sudo functionbeat setup --dashboards"
}
] |
sudo pacman -S community-beats
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Community Beats collection"
},
{
"from": "gpt",
"value": "sudo pacman -S community-beats"
}
] |
sudo community-beats setup
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Community Beats"
},
{
"from": "gpt",
"value": "sudo community-beats setup"
}
] |
sudo pacman -S fluentd
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Fluentd log collector"
},
{
"from": "gpt",
"value": "sudo pacman -S fluentd"
}
] |
cat > /etc/fluent/fluent.conf << 'EOF'
<source>
@type forward
port 24224
</source>
<match **>
@type stdout
</match>
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Fluentd"
},
{
"from": "gpt",
"value": "cat > /etc/fluent/fluent.conf << 'EOF'\n<source>\n @type forward\n port 24224\n</source>\n\n<match **>\n @type stdout\n</match>\nEOF"
}
] |
sudo pacman -S fluent-bit
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Fluent Bit lightweight collector"
},
{
"from": "gpt",
"value": "sudo pacman -S fluent-bit"
}
] |
cat > /etc/fluent-bit/fluent-bit.conf << 'EOF'
[SERVICE]
Flush 5
Daemon Off
Log_Level info
[INPUT]
Name cpu
Interval_Sec 1
[OUTPUT]
Name stdout
Match *
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Fluent Bit"
},
{
"from": "gpt",
"value": "cat > /etc/fluent-bit/fluent-bit.conf << 'EOF'\n[SERVICE]\n Flush 5\n Daemon Off\n Log_Level info\n\n[INPUT]\n Name cpu\n Interval_Sec 1\n\n[OUTPUT]\n Name stdout\n Match *\nEOF"
}
] |
sudo pacman -S vector
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Vector log aggregator"
},
{
"from": "gpt",
"value": "sudo pacman -S vector"
}
] |
cat > /etc/vector/vector.toml << 'EOF'
[sources.in]
type = "stdin
[sinks.out] type = "console" inputs = ["in"] encoding.codec = "json" EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Vector"
},
{
"from": "gpt",
"value": "cat > /etc/vector/vector.toml << 'EOF'\n[sources.in]\ntype = \"stdin\n[sinks.out] type = \"console\" inputs = [\"in\"] encoding.codec = \"json\" EOF"
}
] |
sudo pacman -S jaeger
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Jaeger distributed tracing"
},
{
"from": "gpt",
"value": "sudo pacman -S jaeger"
}
] |
jaeger-all-in-one --collector.zipkin.host-port=:9411
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Jaeger all-in-one"
},
{
"from": "gpt",
"value": "jaeger-all-in-one --collector.zipkin.host-port=:9411"
}
] |
sudo pacman -S zipkin
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Zipkin distributed tracing"
},
{
"from": "gpt",
"value": "sudo pacman -S zipkin"
}
] |
zipkin-server
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Start Zipkin server"
},
{
"from": "gpt",
"value": "zipkin-server"
}
] |
sudo pacman -S opentelemetry-collector
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install OpenTelemetry Collector"
},
{
"from": "gpt",
"value": "sudo pacman -S opentelemetry-collector"
}
] |
cat > /etc/otel-collector/config.yaml << 'EOF'
receivers:
otlp:
protocols:
grpc:
http:
exporters:
logging:
loglevel: debug
service:
pipelines:
traces:
receivers: [otlp]
exporters: [logging]
EOF
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure OpenTelemetry Collector"
},
{
"from": "gpt",
"value": "cat > /etc/otel-collector/config.yaml << 'EOF'\nreceivers:\n otlp:\n protocols:\n grpc:\n http:\n\nexporters:\n logging:\n loglevel: debug\n\nservice:\n pipelines:\n traces:\n receivers: [otlp]\n exporters: [logging]\nEOF"
}
] |
sudo pacman -S thanos
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Thanos long-term storage"
},
{
"from": "gpt",
"value": "sudo pacman -S thanos"
}
] |
thanos compact --data-dir /var/lib/thanos/compact
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Thanos"
},
{
"from": "gpt",
"value": "thanos compact --data-dir /var/lib/thanos/compact"
}
] |
sudo pacman -S cortex
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Cortex horizontally scalable Prometheus"
},
{
"from": "gpt",
"value": "sudo pacman -S cortex"
}
] |
cortex -config.file=/etc/cortex/cortex.yml
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Cortex"
},
{
"from": "gpt",
"value": "cortex -config.file=/etc/cortex/cortex.yml"
}
] |
sudo pacman -S mimir
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Install Mimir Prometheus long-term storage"
},
{
"from": "gpt",
"value": "sudo pacman -S mimir"
}
] |
mimir -config.file=/etc/mimir/mimir.yml
|
monitoring
|
[
{
"from": "human",
"value": "Convert to Linux command: Configure Mimir"
},
{
"from": "gpt",
"value": "mimir -config.file=/etc/mimir/mimir.yml"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.