title: GCP | Stackdriver Logging | Filter | Required String
body: <p>In GCP Stackdriver (GCP Console - Operation logging), I am not able to execute Query to fetch specific exception from the logs.</p>
  <p>Keyword:</p>
  <pre><code>&quot;AuthenticationServiceException: Unable to connect to LDAP&quot;
  resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;
  </code></pre>
  <p>I tried below query to fetch above Exception from the logs:
  But I am not getting any results (LDAP error presents in the logs)</p>
  <p><strong>Query:</strong></p>
  <pre><code>textPayload=&quot;AuthenticationServiceException: Unable to connect to LDAP&quot; resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;
  
  resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;  textPayload=&quot;LDAP&quot;
  
  resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;  textPayload:&quot;LDAP&quot;
  
  resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;  textPayload:&quot;AuthenticationServiceException: Unable to connect to LDAP&quot;
  </code></pre>
  <p>If I execute query (simple keyword) as below - I am able to fetch the results.</p>
  <pre><code>&quot;AuthenticationServiceException: Unable to connect to LDAP&quot;
  resource.labels.cluster_name=&quot;test-env-kcl-01-euwe1&quot;
  </code></pre>
  <p>But above format is not correct as I want to embedded this exception into terraform file.
  Could you please provide any pointers to fetch the exception using proper query format.</p>
  <p>Thanks in advance :).</p>