Palo Alto Networks Knowledgebase: How to Collect Logs (logcat) from an Android Phone

How to Collect Logs (logcat) from an Android Phone

8098
Created On 02/07/19 23:58 PM - Last Updated 02/07/19 23:58 PM
VPNs
Resolution

While troubleshooting a VPN connection with an Android phone, it might be necessary to examine logs from the phone.

To gather logs (logcat) from an android phone, follow either one of the following processes.

Using ADB

  1. Install Android SDK from http://developer.android.com/sdk/index.html. Make sure platform-tools is included (http://developer.android.com/sdk/installing/adding-packages.html).
  2. Install usb driver for the phone (http://developer.sonymobile.com/wportal/devworld/search-downloads/driver)
  3. Enable USB Debugging on your device. Go to settings, applications, development and tick "USB Debugging".
  4. Connect usb cable to the phone
  5. Go to the Android SDK directory (for example C:\Program Files\Android\android-sdk\platform-tools)
  6. Type adb shell
  7. Type logcat (ref: http://developer.android.com/tools/help/logcat.html)
  8. Collect the log while trying to connect to the gateway and browse

Using a log app

  1. Some applications from the play store allow easy access to the logcat log (CatLog and LogCollectors are examples but many other apps can perform the same task)

owner: kkondo



Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClYXCA0&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language