I have SSH access to a production/QA LAMP site, but I need to examine raw solr documents. How do I do it?

  • Page Owner: Not Set
  • Last Reviewed: 2018-08-30

I'm debugging a solr problem on a remote environment, but I need to look at Solr directly. I promise I'll be safe!


Answer

You can examine the remote solr server from your local browser using SSH tunneling, but Be Careful . If you make a commit / delete / etc. while tunneling, you will be altering production data.

Here's how to view in your browser:

ssh -L {LOCAL_PORT_YOU_MAKE_UP}:{HOST_FOR_SOLR_RELATIVE_TO_SITE_SERVER}:{SOLR_PORT} {SSH_CONNECTION_TO_SITE}

e.g.

ssh -L 8988:solr5.srv:8983 christianscience@christianscience.com

Then you'd visit http://localhost:8988/solr in your browser to see your solr admin pages.