This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. hot detect HDD | |
echo "- - -" >/sys/class/scsi_host/host0/scan | |
echo "- - -" >/sys/class/scsi_host/host1/scan | |
echo "- - -" >/sys/class/scsi_host/host2/scan | |
2. configure fdisk use type 8e (LVM) | |
3. Add disk to physical volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
put _ingest/pipeline/wildfly-pipeline-parser | |
{ | |
"description": "Parse log lines", | |
"processors": [ | |
{ | |
"grok": { | |
"field": "message", | |
"patterns": [ | |
"(?<data_wildfly>\\d+-\\d+-\\d+ \\d+:\\d+:\\d+,\\d+) +(?<severity>\\S+) +\\[(?<thread>[^:]+)\\] +\\((?<class>[^:]+)\\) (?<message>(.|\r|\n)*)", | |
"(?<message>.+)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configurar filebeat em JBOSS/Wildfly | |
1. Instalar o filebeat | |
> curl -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-6.3.2-amd64.deb | |
> dpkg -i filebeat-oss-6.3.2-amd64.deb | |
2. Configurar o filebeat | |
> /etc/filebeat/filebeat.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O https://repository.jboss.org/nexus/service/local/repositories/releases/content/org/jboss/logmanager/jboss-logmanager-ext/1.0.0.Alpha3/jboss-logmanager-ext-1.0.0.Alpha3.jar | |
batch | |
# Add the module, replace the directory on the resources attribute to the path where you downloaded the jboss-logmanager-ext library | |
module add --name=org.jboss.logmanager.ext --dependencies=org.jboss.logmanager,javax.json.api,javax.xml.stream.api --resources=~/jboss-logmanager-ext-1.0.0.Alpha5.jar | |
# Add the logstash formatter | |
/subsystem=logging/custom-formatter=logstash:add(class=org.jboss.logmanager.ext.formatters.LogstashFormatter,module=org.jboss.logmanager.ext) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(exec java -jar xyz.jar &> /dev/null &) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-startup | |
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133 | |
-product | |
org.eclipse.epp.package.jee.product | |
-showsplash | |
org.eclipse.epp.package.common | |
--launcher.defaultAction | |
openFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timedatectl set-local-rtc 1 |