--- title: "Has" slug: "has" tags: ["Reference", "Helix", "Sec Ops and Analytics"] updated: 2026-09-02T19:14:07Z published: 2026-09-02T19:14:07Z canonical: "docs.trellix.com/has" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Has The `has` function provides a filter for events that contain data in one or more fields. The parameters to the `has` function are field names. Any number of field names can be specified. For example: ``` has(dstcity) ``` Result: would return only results that included a populated `dstcity` field. ``` has(dstcity,srccity) ``` Result: would return only results that included a populated `dstcity` field and a populated `srccity` field. > [!NOTE] > Note > > The legacy `has`:field and `has`= field syntax is deprecated as of TQL 2.0.