# Log Neighbor Changes

Load **isis.cfg**

```
#IOS-XE
config replace flash:isis.cfg

#IOS-XR
configure
load bootflash:isis.cfg
commit replace
y
```

Configure R1 so that when Gi2.12 is manually shut down, the following log message appears:

<figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2Fh4mVtFYpV8XGIclWocjw%2Fimage.png?alt=media&#x26;token=2eb9ce58-56bc-4ebf-8521-201b26b7bf1d" alt=""><figcaption></figcaption></figure>

Configure R2 so that when Gi2.12 on R1 is shut down, no log message appears at all.

## Answer <a href="#cd1a1040-cf0a-41d6-9ca0-ab7a1273420b" id="cd1a1040-cf0a-41d6-9ca0-ab7a1273420b"></a>

```
#R1
router isis
 log-adjacency-changes all

#R2
router isis
 no log-adjacency-changes
```

## Explanation <a href="#badb304c-9bca-494a-899e-286b484fb0d7" id="badb304c-9bca-494a-899e-286b484fb0d7"></a>

By default, **log-adjacency-changes** is enabled. However, this only logs adjacency changes that are detected through the ISIS Hello. If the interface goes down, the adjacency is lost based on the interface, not the missing Hellos, so no log is generated. If we use the **all** keyword, it will log all adjacency changes, even those caused by non-Hello events.

<div align="left"><figure><img src="https://3072390383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkUz2C3GqnZcWhoVL6jfk%2Fuploads%2FDahuCh7E39jsH1KLpZFm%2Fimage.png?alt=media&#x26;token=864028ca-cf97-4af9-9eab-0ceecfd4ede5" alt=""><figcaption></figcaption></figure></div>

On R2, we will lose the R1 neighbor based on lost Hellos. The default setting on this version of IOS-XE appears to be **log-adjacency-changes**. So if we disable this, R2 will not see any log messages when any neighbors are lost.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ccie-sp.gitbook.io/ccie-spv5.1-labs/labs/isis/log-neighbor-changes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
