How can I clean-up log messages

Platform:
###############################################################################
###############  HA_Broker2  ##################################################
###############################################################################
##        Ip = 192.168.0.252
##   Release = Raspbian GNU/Linux 9 (stretch)
##    Kernel = Linux 4.19.42-v7+
##  Platform = Raspberry Pi 2 Model B Rev 1.1
##    Uptime = 0 day(s). 0:10:31
## CPU Usage = 16.46% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.31, 5m: 0.60, 15m: 0.48
##    Memory = Free: 0.30GB (32%), Used: 0.64GB (68%), Total: 0.95GB
##      Swap = Free: 0.09GB (100%), Used: 0.00GB (0%), Total: 0.09GB
##      Root = Free: 214.38GB (98%), Used: 2.18GB (2%), Total: 228.22GB
##   Updates = 0 apt updates available.
##  Sessions = 2 session(s)
## Processes = 111 running processes of 32768 maximum processes
###############################################################################

Java version:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu8.38.0.163-CA-linux_aarch32hf) (build 1.8.0_212-b163)
OpenJDK Client VM (Zulu8.38.0.163-CA-linux_aarch32hf) (build 25.212-b163, mixed mode, Evaluation

Hello,
After some trials to successfully configure MQTT through items and things configuration files, I still have logging information that are irrelevant, because resulting of previous trials.
The user Page UI page is clean, however looking startup messages during the startup I see links to nonexistent items.
Is it a way to clean these information.
Note that only the 4 first links are actually configured
Thanks in advance
Robert
2019-05-26 16:17:04.510 [.ItemChannelLinkAddedEvent] - Link ‘MOTERR-mqtt:topic:MOTERR:MOTERR’ has been added.

2019-05-26 16:17:04.527 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:MOTE_066:MOTE_066_ACT’ has been added.

2019-05-26 16:17:04.539 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_067_ACT-mqtt:topic:MOTE_067:MOTE_067_ACT’ has been added.

2019-05-26 16:17:04.544 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_TMP-mqtt:topic:MOTE_066:MOTE_066_TMP’ has been added.

2019-05-26 16:17:04.566 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:f3220fa1:A’ has been added.

2019-05-26 16:17:04.585 [.ItemChannelLinkAddedEvent] - Link ‘MySwitch-mqtt:topic:078ddb14:Channel1’ has been added.

2019-05-26 16:17:04.593 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:217865b0:A’ has been added.

2019-05-26 16:17:04.599 [.ItemChannelLinkAddedEvent] - Link ‘66-mqtt:topic:259e5cfe:1’ has been added.

2019-05-26 16:17:04.606 [.ItemChannelLinkAddedEvent] - Link ‘new-mqtt:topic:08342d87:z’ has been added.

2019-05-26 16:17:04.612 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACTx-mqtt:topic:57347f52:a’ has been added.

2019-05-26 16:17:04.621 [.ItemChannelLinkAddedEvent] - Link ‘Lampion-mqtt:topic:HA_Broker2_Generic_MQTT_Thing_ID_New:Lampion’ has been added.

2019-05-26 16:17:04.628 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACTx-mqtt:topic:MOTE_066_ACT:123’ has been added.

2019-05-26 16:17:04.637 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:bdf4cbe8:switches’ has been added.

2019-05-26 16:17:04.641 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:5cc7b342:1’ has been added.

2019-05-26 16:17:04.648 [.ItemChannelLinkAddedEvent] - Link ‘MySwitch-mqtt:topic:2888287b:123’ has been added.

2019-05-26 16:17:04.655 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:dede5166:switch’ has been added.

2019-05-26 16:17:04.663 [.ItemChannelLinkAddedEvent] - Link ‘Myswitch-mqtt:topic:813d3ecc:123’ has been added.

2019-05-26 16:17:04.670 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:f3220fa1:1’ has been added.

2019-05-26 16:17:04.677 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:bdf4cbe8:123’ has been added.

2019-05-26 16:17:04.681 [.ItemChannelLinkAddedEvent] - Link ‘MyString-mqtt:topic:078ddb14:MyString1’ has been added.

2019-05-26 16:17:04.685 [.ItemChannelLinkAddedEvent] - Link ‘66-mqtt:topic:14fa830b:a’ has been added.

2019-05-26 16:17:04.695 [.ItemChannelLinkAddedEvent] - Link ‘MyString-mqtt:topic:HA_Broker2_Generic_Things_ID:1’ has been added.

2019-05-26 16:17:04.700 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:08342d87:1’ has been added.

2019-05-26 16:17:04.703 [.ItemChannelLinkAddedEvent] - Link ‘OnOff-mqtt:topic:HA_Broker2_Generic_MQTT_Thing_ID:Test_Switch_ID’ has been added.

2019-05-26 16:17:04.711 [.ItemChannelLinkAddedEvent] - Link ‘Lampion-mqtt:topic:HA_Broker2_Generic_MQTT_Thing_ID:2’ has been added.

2019-05-26 16:17:04.715 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:MOTE_066_ACT:x’ has been added.

2019-05-26 16:17:04.721 [.ItemChannelLinkAddedEvent] - Link ‘TestSwitch-mqtt:topic:HA_Broker2_Generic_Things_ID:Switch1’ has been added.

2019-05-26 16:17:04.725 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACT-mqtt:topic:HA_Broker2_Generic_MQTT_Thing_ID:1’ has been added.

2019-05-26 16:17:04.731 [.ItemChannelLinkAddedEvent] - Link ‘MOTE_066_ACTx-mqtt:topic:6bbf1b78:123’ has been added.

2019-05-26 16:17:04.735 [.ItemChannelLinkAddedEvent] - Link ‘Switch-mqtt:topic:0411b468:1’ has been added.

The topic is kinda misleading, you want to clean up the log but the goal is to remove the non existent items so the log does not get flooded with wrong/old information.

Question is, did you really delete the old items/things?
Did you clean the Cache? Clear the Cache
You could also use the openhab-cli to list all things/items and remove them. openhab-cli doc

Cheers :slight_smile:

1 Like

Elias,
Yes I did remove the old info
No but I tried the Clear Cache which did solve it
Yes openhab-cli openhab> smarthome:links clear solves it

Thanks for the tip
Robert

So the problem is solved?

Sorry, wrong spelling …
Clear the cache didn’t solved it …
But the clearing things, items and links with openhab-cli which is very useful was the solution.
Thank-you
Robert

Again :smiley:
So the problem is solved?
If yes please mark my answer as the solution.