Viewing content search application logs

The following information describes how to view the content search application logs.

About this task

If you want to view the content search application logs, perform the following actions.

Procedure

  1. Run the following command:
    podlog spectrum-discover-contentsearchagent
  2. Any failures of download or inspection are logged in the application log file.

    In the following example, the file fails during the inspection stage. The message shows that the failure is because the application cannot contact the Tika server.

    [2019-04-23,16:45:54.945] agent[22665][ERROR][INSPECT]: Inspection failure-origpath 
    metaocean1/alice.txt - error((HTTPConnectionPool(host='localhost',port=9998):Max retries 
    exceeded
    with url:/tika(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 
    0x7f4db813e0d0>:Failed to establish a new connection:[Errno 111] Connection refused',)))
    
    oc logs $(oc get pods -n=spectrum-discover -l app=spectrum-discover-contentsearchagent -o=jsonpath={.items[0].metadata.name}) -n spectrum-discover