---
title: "How to Set Multiline Ignore Key on FKM"
description: "Setting a multiline Ignore Key in FKM involves using Start and End patterns with Ignore Key. This method filters specific multiline error sequences using regex to exclude them from the dataview."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004028049-geneos-how-to-set-multiline-ignore-key-on-fkm/index.html"
---
**Primarily, you will need to use the Multi line functionality of FKM, where the idea is that the FKM key, be it FAIL or Warning, is composed of multiple lines tagged by Start pattern and End pattern, in conjunction with the Ignore Key.**

Here's how. Suppose you have a text file composed of the following lines:

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-040-image2015-12-1-14-4-28-ce52800ba766.png)

Using the basic setup with ERROR as your FAIL key, plus the Multiple Trigger mode setting configured:

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-041-image2015-12-1-14-11-1-017f092c9fbd.png)

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-042-image2015-12-1-14-10-5-6984afa8dbb4.png)

This would yield the following FKM dataview:

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-043-image2015-12-1-14-7-53-1195db27f383.png)

As there are multiple lines with ERROR, and you require that the FAIL key will be a composition of ERROR messages and of MISTAKE message to form a single FAIL key, you will have to perform the following:

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-044-image2015-12-1-14-14-9-c53096c0c8f9.png)

The resulting FKM dataview would now look like:

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-045-image2015-12-1-14-16-29-59fe3135dbaa.png)

At this point, you can now set your FKM Ignore Key. In this case, we will set it so that 4 lines of ERROR messages followed by a line of MISTAKE message will be IGNORED. Using REGEX string **^(ERROR\n){4}MISTAKE** will sort the dataview required.

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-046-image2015-12-1-15-2-48-5fbca243543c.png)

The resulting dataview would now become the following, where 2 lines from the previous dataview were taken out as it satisfied the IGNORE KEY condition of 4 lines of ERROR messages followed by a line of MISTAKE message.

![Geneos - How to Set Multiline Ignore Key on FKM](https://docscdn.itrsgroup.com/faq/images/geneos/115004028049-remote-047-image2015-12-1-15-1-36-c2f9d2002c08.png)


