Panorama Stopped Collecting Logs After a Hyper-V Failover

PAN-OS 12.2.4-h1 Panorama VM on Hyper-V, local log collector, PAN-OS 11.1 firewalls. Should apply to any Panorama 10.x–12.x with a local or dedicated log collector.

TL;DR

A Hyper-V host was patched without shutting the Panorama VM down first. The cluster failover cold-booted Panorama twice in 31 minutes. The second hard reset left Elasticsearch's transport-TLS trust file, /opt/pancfg/mgmt/saved-configs/elasticsearch/es-ca.pem, malformed on disk. From that moment Elasticsearch crash-looped on startup, the log collector stopped acknowledging logs from every firewall, and nothing new appeared in Panorama's Monitor tab. Management, commits and pushes kept working, which is why nobody noticed for eleven days.

Every user-space remedy fails: collector-group push, debug elasticsearch repair certs, ES restart, a clean reboot, deleting and re-adding the collector. The file lives in a directory only root can write, and root on PAN-OS is behind a TAC one-time token. The fix itself took TAC about two minutes with vi.

If you're seeing failed to initialize SSL TrustManager ... IOException: Incomplete data in your ES log, skip to The fix below and open a case.

Symptoms

  • Panorama Monitor tab: no new traffic/threat logs after a specific timestamp. Older logs query fine.
  • Every firewall still shows a healthy connection to the collector:
admin@fw> show logging-status

      Type      Last Log Created        Last Log Fwded       Last Seq Num Fwded  Last Seq Num Acked         Total Logs Fwded
Log Collector           : 0007XXXXXXXX
Connection Status       : lr - Active
      traffic   2026/12/02 09:39:13   2026/12/02 09:39:14      7701568891141056523 7701568891068344136          161527752

The tell is the Last Seq Num Acked column. Run the command twice, five minutes apart. "Last Log Fwded" keeps advancing; "Last Seq Num Acked" doesn't move. The firewall is connected and sending; Panorama is accepting the TCP stream and acknowledging nothing.

  • On Panorama, the receiver side confirms it:
admin@panorama> show logging-status device 0230XXXXXXXX
Source Daemon     : logrcvr
Connection Id     : 0230XXXXXXXX-log-collection-lr-x.x.x.x-def
Log rate: 0
      traffic                      N/A                      N/A                      N/A

Log rate: 0 and Last Log Rcvd: N/A for every device.

  • Panorama → Managed Collectors → Health shows a red dot. On the CLI:
admin@panorama> show log-collector all
...
<logd>GREEN</logd><vldmgr>GREEN</vldmgr><vlds>GREEN</vlds><es>RED</es>
<searchengine-status>Inactive</searchengine-status>
  • Elasticsearch isn't listening:
admin@panorama> show log-collector-es-indices
curl: (7) Failed to connect to localhost port 9200: Connection refused

admin@panorama> show log-collector-es-cluster health

admin@panorama>

A blank health output is the same thing; the command curls port 9200 and prints nothing when ES is down.

  • show system resources shows a java process owned by elasticsearch with a different PID every time you look and only a few seconds of CPU, next to an esmonitor process with hundreds of CPU-minutes. That's the monitor relaunching ES every ~25 seconds and ES dying every time.

Finding the actual error

The ES engine log is not under mp-log. It has its own log category:

admin@panorama> tail lines 120 es-log __pan_cluster__.log

(less es-log ? lists the files if the name differs on your version.) Ours:

[ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [0007XXXXXXXX] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]];
  nested: ElasticsearchException[failed to initialize SSL TrustManager];
  nested: CertificateException[java.io.IOException: Incomplete data];
  nested: IOException[Incomplete data];
Caused by: java.io.IOException: Incomplete data
        at sun.security.provider.X509Factory.readOneBlock(X509Factory.java:619)
        at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:477)
        ...
        at org.elasticsearch.xpack.core.ssl.PEMTrustConfig.createTrustManager(PEMTrustConfig.java:52)

PEMTrustConfig is the trust store defined by xpack.security.transport.ssl.certificate_authorities. X509Factory.readOneBlock throwing "Incomplete data" means the Java PEM parser hit a -----BEGIN/-----END boundary that didn't make sense: a block that ends before its base64 body is complete, or a stray footer with no header. In other words, the CA PEM file on disk is damaged.

Two other log files round out the picture, both readable without root:

  • tail lines 80 mp-log esmonitor.log: the monitor's curl to localhost:9200/_cluster/health failing in a loop, and "Failed to parse JSON response".
  • tail lines 40 mp-log es_restart.log: es_restart.py being invoked with -b, -u, -i over and over. In our case it also logged ERROR Failed to run cmd ... sdb -n "cfg.es.reset-timestamp=..." on every pass.

Worth checking before you blame the file:

admin@panorama> debug elasticsearch show certs

If this shows an expired CC certificate, you have a different (and documented) problem; debug elasticsearch repair certs is the fix for that one. Ours were fine: CA valid for years, CC cert valid, status Ok. The certificates were good; the file ES reads them from was not.

What caused it

Two cold boots, 31 minutes apart, in Panorama's own system log:

2026/11/21 09:01:57 general informational Management server started. Running version 12.2.4-h1
2026/11/21 09:01:57 general informational Residual commit job snapshots were found. Will be cleared.
...
2026/11/21 09:32:38 general high          The system is starting up.

"Residual commit job snapshots were found" is the marker for an unclean shutdown. The VM's ES init had stamped cfg.es.inited-timestamp at 08:54 during the first boot. Then the host went down again at ~09:30 before everything had been flushed. ES actually ran fine for two hours after the second boot (logs were received until 11:29), then died on its next restart and never came back.

A Hyper-V failover is a power cut from the guest's point of view. SAN-backed virtual disks don't help: the data that reached the array was fine; the guest hadn't finished writing the file. The lesson: shut the Panorama VM down before patching its host.

Everything that does NOT fix it (so you don't waste a day)

I tried all of these, in this order, with the API or CLI. None changed anything. Including them because they're the first things every KB article and forum thread tells you to do.

  1. Collector Group push. Palo Alto's KB says ES needs a collector-group push after an upgrade to set an sdb flag. Pushed (commit-all log-collector-config log-collector-group <name>), accepted ("config sent to log collector"), ES still dead.
  2. debug elasticsearch repair certs. Printed Created elasticsearch keystore in /usr/share/elasticsearch/config/elasticsearch.keystore and nothing else. It regenerates the keystore and client cert; it does not rewrite the CA PEM.
  3. debug elasticsearch es-restart option all. Restarts straight back into the same exception.
  4. Graceful request restart system. ES init does not rerun on a reboot (cfg.es.inited-timestamp unchanged), so the broken file survives.
  5. Delete and re-add the managed collector and collector group. I'd hoped this would re-run ES initialization, since creating the collector on a fresh box is what initialized ES originally (cfg.es.reset-timestamp). It doesn't; the timestamp never moved.
  6. request system system-mode management-only and back to panorama to force a full log-collector rebuild. Refused on a single-VM deployment: all devices must be included in log-collector-group(s). Management-only mode assumes you have dedicated log collectors to forward to. If you do, this might work, but you'd lose every log on the box.
  7. debug elasticsearch repair ? has only certs, close, scroll, unassigned. No "regenerate config".
  8. The XML API refuses tail, less and debug outright ("invalid client cli"), so you can't even read the ES log remotely; it's an SSH session.

Deleting the collector, by the way, also disconnects nothing and loses nothing beyond what's already lost; firewalls simply fall back to the Panorama's default receiver. It just doesn't help.

The fix

Open a TAC case. Put the __pan_cluster__.log exception and the show log-collector all output in the description, say explicitly that debug elasticsearch show certs shows valid certs, and ask for a root session to repair the ES transport-TLS CA PEM. Two constraints worth stating up front:

  • Don't let anyone reset the SC3 CA. On PAN-OS 10.2+ every firewall trusts Panorama's internal CA for the management channel. Regenerating it disconnects the whole fleet. The ES problem has nothing to do with that CA; the CA was fine, only ES's copy of it on disk was broken.
  • A full ES/logdb wipe is not necessary. The index data on the log disk is untouched. Don't accept it as a first offer.

TAC generates a one-time token that unlocks root on the box. The file was:

/opt/pancfg/mgmt/saved-configs/elasticsearch/es-ca.pem

Ours was 13 lines, 686 bytes: one certificate body followed by two -----END CERTIFICATE----- lines. The TAC engineer fixed it in vi so it contained exactly the valid certificate block(s) and nothing else, then restarted ES. It came up on the first try. show log-collector-es-cluster health went yellow, then green as shards loaded. Within a minute the firewalls' "Last Seq Num Acked" started moving again.

Total hands-on-keyboard time for the actual fix: about two minutes. Time to get to a root prompt: a support case and a call.

Recovery: what comes back and what doesn't

Firewalls keep logs on their own disk and track the last sequence number the collector acknowledged. Once the collector acks again, each firewall replays from that point. So the backlog recovers on its own, but only what is still on the firewall's local disk. Check before you assume:

admin@fw> show system logdb-quota
...
traffic: Logs and Indexes: 4.2G Current Retention: 0 days
threat:  Logs and Indexes: 2.2G Current Retention: 10 days

On our busier branch firewalls the local traffic retention was 0–2 days, so eleven days of traffic logs from those sites were gone; threat logs (10–380 days) replayed in full. Quieter sites with 29 days of traffic retention replayed everything. The longer this sits, the more you lose. Which brings us to the real problem.

The real problem: the restarts went unreported

The outage started at 11:29 on a Friday and was found on a Wednesday eleven days later, because the two unplanned restarts during host patching were never reported, so nobody connected them to the logging gap. Monitoring caught nothing because the firewalls reported a healthy collector connection the whole time; the only broken metric was one Panorama cared about.

What changed as a result:

  1. Host patching checklist: before touching a Hyper-V host that runs Panorama, request shutdown system on Panorama, wait for the VM to show Off, patch, boot, then verify Panorama → Managed Collectors is green. No cluster failovers for this VM, ever. Snapshots with the VM off.
  2. Any unplanned restart of Panorama gets reported the same day, to the people who own it.
  3. Monitor the thing that actually broke: alert on the es health flag in show log-collector all, or on the collector's "Last Log Rcvd" age, not on the firewalls' connection status.
  4. Check the nightly config-bundle export. Make sure it's actually succeeding. It's the only DR copy of Panorama's config, and a failing export is easy to miss until the day you need it.

Quick reference

Check Command Healthy This problem
Firewall → collector show logging-status (on firewall) Acked seq advancing Acked seq frozen, status still lr - Active
Collector receive show logging-status device <serial> (on Panorama) Log rate > 0 Log rate: 0, Last Log Rcvd N/A
Collector processes show log-collector all all GREEN es RED, searchengine Inactive
ES listening show log-collector-es-indices index list curl: (7) ... port 9200: Connection refused
ES cluster show log-collector-es-cluster health green/yellow blank
ES process show system resources stable java PID new java PID every ~25 s
ES error tail lines 120 es-log __pan_cluster__.log – failed to initialize SSL TrustManager / Incomplete data
Certs debug elasticsearch show certs valid valid (that's what distinguishes this from the expired-cert KB)
Fix TAC root session – repair /opt/pancfg/mgmt/saved-configs/elasticsearch/es-ca.pem, restart ES