Disable Logging of Bluetooth packet captures to /var/log/Bluetooth on macOS Mojave

Im using .10.14.5 macOS Mojave, on a MackBook Pro.

How do I disable the diagnostic logging to /var/log/Bluetooth ?

This creates files such as PacketLoggerBluetoothTraceFile-DD-MM-YYY_xx.xx.xx.pklg,

which can be probelmatic to eat up disk space.


Is there a terminal command I can use ?


In previous OS versions was able to Shift+Alt and click on the Bluetooth in the menu to get Debug section which had Enable Bluetooth Logging. It appears Apple disabled that functionality.


Thanks,

Francis


MacBook Pro 15″, macOS 10.14

Posted on Apr 2, 2022 4:37 PM

Reply

Similar questions

4 replies

Apr 3, 2022 7:56 PM in response to BDAqua

I believe this is related to the issue, but I can't seem yet to figure out how to modify or delete this file, com.apple.bluetoothReporter.plist, in /System/Library/LaunchDaemons .


I have tried becoming root, and attempted to changed the file permissions / ownership, with chmod, chown but that also failed.

Basically, I want to change /private/var/log/bluetooth.pklg to go to the /dev/null ,

rather than storing to the hard drisk, or simply disable the dumpPacketLog all together.


location

/System/Library/LaunchDaemons


com.apple.bluetoothReporter.plist


contents:


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Label</key>

<string>com.apple.bluetoothReporter</string>

<key>POSIXSpawnType</key>

<string>Interactive</string>

<key>MachServices</key>

<dict>

<key>com.apple.bluetoothReporter</key>

<true/>

</dict>

<key>ProgramArguments</key>

<array>

<string>/System/Library/Frameworks/IOBluetooth.framework/Versions/A/Resources/BluetoothReporter</string>

<string>--dumpPacketLog</string>

<string>/private/var/log/bluetooth.pklg</string>

</array>

<key>EnableTransactions</key>

<true/>

</dict>

</plist>






This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disable Logging of Bluetooth packet captures to /var/log/Bluetooth on macOS Mojave

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.