ExtFilterDefine fixtext mode=output intype=text/html cmd="/bin/sed s#www\.example1\.com#www\.example2\.com#g"
find DIR_NAME -type f | wc -l
chown -R user:group
find directory_path -type d -exec chmod 775 {} \;
find directory_path -type f -exec chmod 664 {} \;
{
"trigger": {
"schedule": {
"interval": "10s"
}
},
"input": {
"search": {
"request": {
GET rule_index/_search
{
"size": 0,
"aggs": {
"rule_doc_count": {
"terms" : { "field" : "key.keyword" }
},
"rule_count":{
"cardinality": {
PUT _cluster/settings
{
"persistent": {
"xpack": {
"monitoring": {
"collection": {
"enabled": "true",
"interval": "10s"
},
This watcher check every 5 minutes if the average heap usage of the Logstash instance is above 80%.
An action could be added to send emails automatically
"watch" : {
"trigger" : {
"schedule" : {
"interval" : "5m"
}
This watcher check every 5 minutes if the number of Logstash monitoring events are below 1 which means Logstash monitoring is in trouble.
"watch" : {
"trigger" : {
"schedule" : {
"interval" : "5m"
}
},
"input" : {