OK, so you do not have monitoring enabled. What do you get for
grep xpack.monitoring.enabled /etc/logstash/logstash.yml
The markdown I used was three backticks on a line before and after the text. Thus
```
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.username: "logstash_system"
```
will appear as
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.username: "logstash_system"
If you precede a line with 4 spaces
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.username: "logstash_system"
Then it is rendered as
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner ] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner ] xpack.monitoring.elasticsearch.username: "logstash_system"
The effect of these on single lines is slightly different.