Archive for Juni 5th, 2021

President Joe Biden – on the line with President Obama

Samstag, Juni 5th, 2021

Die Finanzminister der sieben führenden Industrienationen (G7) – verpflichten sich auf eine globale Mindeststeuer von 15 % für Konzerne

Samstag, Juni 5th, 2021

Darmstadt Luisenplatz – online webcam

Samstag, Juni 5th, 2021


Bundesverkehrsminister Andreas Scheuer (CSU) – hat Aussagen der Grünen Kanzlerkandidatin Annalena Baerbock zu einem Rechtsanspruch auf schnelles Internet zum Anlass für eine beißende Kritik genommen

Samstag, Juni 5th, 2021

Bundesverkehrsminister Andreas Scheuer (CSU) – „Frau Baerbock läuft der Zeit hinterher und wird damit immer mehr zur Kandidatin „Ahnungslos“ denn wir haben das Recht auf ein schnelles Internet im April längst mit der TKG-Novelle beschlossen – da haben die Grünen im Bundestag aber dagegen gestimmt“

Samstag, Juni 5th, 2021

Terminland – einfach Termine online buchen (lassen)

Samstag, Juni 5th, 2021

   Terminland – einfach Termine online buchen (lassen)

St. Wolfgang – BioNTech Impfdosen für Ü18 Leute

Samstag, Juni 5th, 2021

Samstag/Sonntag 12./13.06.2021 von 08:00 Uhr bis 20:00 Uhr

Ort Goldachhalle Schulstraße 42 84427 Sankt Wolfgang

2.400 Dosen BioNTech stehen dafür bereit

Die Termine für die Zweitimpfung sind der 24.07./25.07.2021

Bayerischer Ministerpräsident Dr. Markus Söder – Pressekonferenz zur Covid-19 Pandemie am 04.06.2021

Samstag, Juni 5th, 2021

Crystal Cruises ‚Serenity‘ – online webcam

Samstag, Juni 5th, 2021


Elastic Logstash – ist eine kostenlose und offene serverseitige Datenverarbeitungspipeline die Daten aus unterschiedlichen Quellen ingestiert transformiert und dann an die von ihnen festgelegte Ablage sendet

Samstag, Juni 5th, 2021

  Elastic Logstash – zentralisieren transformieren und speichern von Daten

root@pve-02-ubuntu-2:~# apt-get update -y
root@pve-02-ubuntu-2:~# wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add –
root@pve-02-ubuntu-2:~# apt-get install apt-transport-https
root@pve-02-ubuntu-2:~# echo „deb https://artifacts.elastic.co/packages/7.x/apt stable main“ | tee -a /etc/apt/sources.list.d/elastic-7.x.list
root@pve-02-ubuntu-2:~# apt-get update -y
root@pve-02-ubuntu-2:~# apt-get install logstash
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
logstash
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 363 MB of archives.
After this operation, 625 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 logstash amd64 1:7.13.1-1 [363 MB]
Fetched 363 MB in 33s (10.8 MB/s)
Selecting previously unselected package logstash.
(Reading database … 36002 files and directories currently installed.)
Preparing to unpack …/logstash_1%3a7.13.1-1_amd64.deb …
Unpacking logstash (1:7.13.1-1) …
Setting up logstash (1:7.13.1-1) …
Using bundled JDK: /usr/share/logstash/jdk
Using provided startup.options file: /etc/logstash/startup.options
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.32/lib/pleaserun/platform/base.rb:112: warning: constant ::Fixnum is deprecated
Successfully created system startup script for Logstash
root@pve-02-ubuntu-2:~# service logstash start
root@pve-02-ubuntu-2:~# service logstash status
* logstash.service – logstash
Loaded: loaded (/etc/systemd/system/logstash.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 08:00:01 UTC; 7s ago
Main PID: 1941 (java)
Tasks: 19 (limit: 4915)
Memory: 472.0M
CGroup: /system.slice/logstash.service
`-1941 /usr/share/logstash/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyO>
Jun 04 08:00:01 pve-02-ubuntu-2 systemd[1]: Started logstash.
Jun 04 08:00:01 pve-02-ubuntu-2 logstash[1941]: Using bundled JDK: /usr/share/logstash/jdk
Jun 04 08:00:01 pve-02-ubuntu-2 logstash[1941]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be rem>
root@pve-02-ubuntu-2:~# apt-get install rsyslog -y
root@pve-02-ubuntu-2:~# apt-get install filebeat -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
filebeat
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 36.3 MB of archives.
After this operation, 142 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 filebeat amd64 7.13.1 [36.3 MB]
Fetched 36.3 MB in 3s (11.0 MB/s)
Selecting previously unselected package filebeat.
(Reading database … 52810 files and directories currently installed.)
Preparing to unpack …/filebeat_7.13.1_amd64.deb …
Unpacking filebeat (7.13.1) …
Setting up filebeat (7.13.1) …
Processing triggers for systemd (245.4-4ubuntu3.6) …
root@pve-02-ubuntu-2:~# apt-get install kibana -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
kibana
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 304 MB of archives.
After this operation, 805 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 kibana amd64 7.13.1 [304 MB]
Fetched 304 MB in 27s (11.1 MB/s)
Selecting previously unselected package kibana.
(Reading database … 54255 files and directories currently installed.)
Preparing to unpack …/kibana_7.13.1_amd64.deb …
Unpacking kibana (7.13.1) …
Setting up kibana (7.13.1) …
Creating kibana group… OK
Creating kibana user… OK
Created Kibana keystore in /etc/kibana/kibana.keystore
Processing triggers for systemd (245.4-4ubuntu3.6) …
root@pve-02-ubuntu-2:~# vi /etc/kibana/kibana.yml
server.port: 5601
server.host: „localhost“
elasticsearch.hosts: [„http://localhost:9200“]
root@pve-02-ubuntu-2:~# systemctl enable kibana
Synchronizing state of kibana.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable kibana
Created symlink /etc/systemd/system/multi-user.target.wants/kibana.service -> /etc/systemd/system/kibana.service.
root@pve-02-ubuntu-2:~# systemctl start kibana
root@pve-02-ubuntu-2:~# systemctl status kibana
* kibana.service – Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 08:22:11 UTC; 7s ago
Docs: https://www.elastic.co
Main PID: 6216 (node)
Tasks: 18 (limit: 4915)
Memory: 192.0M
CGroup: /system.slice/kibana.service
|-6216 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist –logging.dest=/var/log/kibana/kibana.log –pid.file=/run/kiban>
`-6228 /usr/share/kibana/node/bin/node –preserve-symlinks-main –preserve-symlinks /usr/share/kibana/src/cli/dist –logging.dest=/var/log/kibana/k>
Jun 04 08:22:11 pve-02-ubuntu-2 systemd[1]: Started Kibana.
lines 1-12/12 (END)…skipping…
* kibana.service – Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 08:22:11 UTC; 7s ago
Docs: https://www.elastic.co
Main PID: 6216 (node)
Tasks: 18 (limit: 4915)
Memory: 192.0M
CGroup: /system.slice/kibana.service
|-6216 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli/dist –logging.dest=/var/log/kibana/kibana.log –pid.file=/run/kiban>
`-6228 /usr/share/kibana/node/bin/node –preserve-symlinks-main –preserve-symlinks /usr/share/kibana/src/cli/dist –logging.dest=/var/log/kibana/k>
Jun 04 08:22:11 pve-02-ubuntu-2 systemd[1]: Started Kibana.
root@pve-02-ubuntu-2:~# apt-get install nginx -y
root@pve-02-ubuntu-2:~# echo „kibana:`openssl passwd -apr1`“ | tee -a /etc/nginx/htpasswd.users
Password:
Verifying – Password:
kibana:$apr1$dRDID0U9$x7qJokJUEvIKHa3udZ3VX.
root@pve-02-ubuntu-2:~# vi /etc/nginx/sites-available/pve-02-ubuntu-2.fritz.box
server {
listen 80;
server_name pve-02-ubuntu-2.fritz.box;
auth_basic „Restricted Access“;
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://pve-02-ubuntu-2.fritz.box:5601;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
root@pve-02-ubuntu-2:~# ln -s /etc/nginx/sites-available/elastic.local /etc/nginx/sites-enabled/elastic.local
root@pve-02-ubuntu-2:~# systemctl restart nginx
root@pve-02-ubuntu-2:~# systemctl status nginx
* nginx.service – A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-06-04 08:34:36 UTC; 9s ago
Docs: man:nginx(8)
Process: 8806 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 8807 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 8808 (nginx)
Tasks: 5 (limit: 4915)
Memory: 4.9M
CGroup: /system.slice/nginx.service
|-8808 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
|-8809 nginx: worker process
|-8810 nginx: worker process
|-8811 nginx: worker process
`-8812 nginx: worker process
Jun 04 08:34:36 pve-02-ubuntu-2 systemd[1]: Starting A high performance web server and a reverse proxy server…
Jun 04 08:34:36 pve-02-ubuntu-2 systemd[1]: Started A high performance web server and a reverse proxy server.

root@pve-02-ubuntu-2:~# vi /etc/rsyslog.conf
# provides UDP syslog reception
module(load=“imudp“)
input(type=“imudp“ port=“514″)
root@pve-02-ubuntu-2:~# vi /etc/logstash/conf.d/02-beats-input.conf
input {
beats {
port => 5044
}
}
root@pve-02-ubuntu-2:~# vi /etc/logstash/conf.d/10-syslog-filter.conf
filter {
if [type] == „syslog“ {
grok {
match => { „message“ => „%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}“ }
add_field => [ „received_at“, „%{@timestamp}“ ]
add_field => [ „received_from“, „%{host}“ ]
}
syslog_pri { }
date {
match => [ „syslog_timestamp“, „MMM d HH:mm:ss“, „MMM dd HH:mm:ss“ ]
}
}
}
root@pve-02-ubuntu-2:~# vi /etc/logstash/conf.d/10-syslog-filter.conf
output {
elasticsearch {
hosts => [„localhost:9200“]
manage_template => false
index => „%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}“
document_type => „%{[@metadata][type]}“
}
}
root@pve-02-ubuntu-2:~# systemctl start logstash
root@pve-02-ubuntu-2:~# systemctl enable logstash
Created symlink /etc/systemd/system/multi-user.target.wants/logstash.service -> /etc/systemd/system/logstash.service.
root@pve-02-ubuntu-2:~# systemctl status logstash
* logstash.service – logstash
Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: e>
Active: active (running) since Sat 2021-06-05 12:39:03 UTC; 7s ago
Main PID: 23856 (java)
Tasks: 19 (limit: 4915)
Memory: 512.2M
CGroup: /system.slice/logstash.service
`-23856 /usr/share/logstash/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMark>
Jun 05 12:39:03 pve-02-ubuntu-2 systemd[1]: Started logstash.
Jun 05 12:39:03 pve-02-ubuntu-2 logstash[23856]: Using bundled JDK: /usr/share/logst>
Jun 05 12:39:03 pve-02-ubuntu-2 logstash[23856]: OpenJDK 64-Bit Server VM warning: O>
lines 1-12/12 (END)…skipping…
* logstash.service – logstash
Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: e>
Active: active (running) since Sat 2021-06-05 12:39:03 UTC; 7s ago
Main PID: 23856 (java)
Tasks: 19 (limit: 4915)
Memory: 512.2M
CGroup: /system.slice/logstash.service
`-23856 /usr/share/logstash/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMark>
Jun 05 12:39:03 pve-02-ubuntu-2 systemd[1]: Started logstash.
Jun 05 12:39:03 pve-02-ubuntu-2 logstash[23856]: Using bundled JDK: /usr/share/logst>
Jun 05 12:39:03 pve-02-ubuntu-2 logstash[23856]: OpenJDK 64-Bit Server VM warning: O>
root@pve-02-ubuntu-2:~# vi /etc/filebeat/filebeat.yml
[…]
– type: syslog
protocol.udp:
host: „localhost:514“
[…]
[…]
#output.elasticsearch:
# Array of hosts to connect to.
#hosts: [„localhost:9200“]
[…]
[…]
output.logstash:
# The Logstash hosts
hosts: [„localhost:5044“]
[…]
root@pve-02-ubuntu-2:~# filebeat modules enable system
Enabled system
root@pve-02-ubuntu-2:~# filebeat setup –template -E output.logstash.enabled=false -E ‚output.elasticsearch.hosts=[„localhost:9200“]‘
Flag –template has been deprecated, please use –index-management instead
Overwriting ILM policy is disabled. Set `setup.ilm.overwrite: true` for enabling.
Index setup finished.
root@pve-02-ubuntu-2:~# filebeat setup -e -E output.logstash.enabled=false -E output.elasticsearch.hosts=[‚localhost:9200‘] -E setup.kibana.host=localhost:5601
root@pve-02-ubuntu-2:~# systemctl start filebeat
root@pve-02-ubuntu-2:~# systemctl enable filebeat
Synchronizing state of filebeat.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable filebeat
Created symlink /etc/systemd/system/multi-user.target.wants/filebeat.service -> /lib/systemd/system/filebeat.service.
root@pve-02-ubuntu-2:~# systemctl status filebeat
* filebeat.service – Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/lib/systemd/system/filebeat.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-05 12:55:08 UTC; 33s ago
Docs: https://www.elastic.co/beats/filebeat
Main PID: 27626 (filebeat)
Tasks: 10 (limit: 4915)
Memory: 100.4M
CGroup: /system.slice/filebeat.service
`-27626 /usr/share/filebeat/bin/filebeat –environment systemd -c /etc/filebeat/filebeat.yml –path.home >
Jun 05 12:55:16 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:16.066Z INFO [publisher] pipeli>
Jun 05 12:55:23 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:23.683Z ERROR [publisher_pipeline_outp>
Jun 05 12:55:23 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:23.683Z INFO [publisher_pipeline_outpu>
Jun 05 12:55:23 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:23.684Z INFO [publisher] pipeli>
Jun 05 12:55:23 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:23.684Z INFO [publisher] pipeli>
Jun 05 12:55:34 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:34.154Z ERROR [publisher_pipeline_outp>
Jun 05 12:55:34 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:34.154Z INFO [publisher_pipeline_outpu>
Jun 05 12:55:34 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:34.154Z INFO [publisher] pipeli>
Jun 05 12:55:34 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:34.154Z INFO [publisher] pipeli>
Jun 05 12:55:39 pve-02-ubuntu-2 filebeat[27626]: 2021-06-05T12:55:39.431Z INFO [monitoring] log/l>
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty“
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open cars aTuTjjeKS4ef3nCr_rpdCA 1 1 1 0 4.7kb 4.7kb
yellow open licenses oH12Rp-3SpWT1Gn2VYmPBg 1 1 8749 0 1.3mb 1.3mb
yellow open schools Rvp8ytkYT5G9p04MT8RD3Q 1 1 3 0 10.1kb 10.1kb
yellow open shakespeare rV1bXB_8RGeIdd-zKSX0SQ 1 1 111396 0 19.3mb 19.3mb
yellow open products o5Xg9jLxQh-ZgXbzWQpa0A 1 1 2 0 8.5kb 8.5kb
yellow open filebeat-7.13.1-2021.06.05 3TsgoCkoSjiQIyls-iWBhA 1 1 116203 0 37.6mb 37.6mb
root@pve-02-ubuntu-2:~# curl -XGET ‚http://localhost:9200/filebeat-*/_search?pretty‘