This tutorial demonstrates the global search function in OpenResty Edge.

Search for Request ID

OpenResty Edge Admin’s search box is located in the upper center of the screen. You can enter keywords to search. There are various types of keywords.

Embeded image

First, let’s look at the Request ID. The Request ID is a unique identifier that OpenResty Edge makes for each request so that requests can be tracked easily. It is a 24-bit identifier consisting of lowercase letters and numbers. Now let’s see what we can find with this identifier.

Embeded image

We go to the OpenResty Edge’s Admin web console. It is our sample deployment of the console. Every user has her local deployment. We will find a Request ID to search for in one of these applications.

Screenshot

Type in openresty.org in the search box.

Screenshot

Enter this application.

Screenshot

Enter the Error Logs page。

Screenshot

You can find the error logs of this application. Each log has a Request ID.

Copy the first Request ID.

Screenshot

Click to open the search box.

Screenshot

If you have searched before, the search history will be shown below. Now it is empty.

Screenshot

Paste the Request ID we just copied into the search box.

Screenshot

You can see a search result.

Screenshot

Click this result.

Screenshot

You will enter the Request ID Decoder page. Here you can find some detailed information about this request. Now you know how to search for requests using Request ID.

Screenshot

Search for texts on the interface

The second searchable type is the text on the interface. Assume that you’re not familiar with the OpenRsty Edge interface and forget where you can work with static files.

Click to open the search box.

Screenshot

In this case, you can search for “file” in the search box.

Screenshot

There are three search results.

Screenshot

Click the third result to enter the static file page.

Screenshot

You can find this page because it has buttons that contain the text “file”.

Screenshot

Search for upstreams

You can also search for upstreams by IP addresses or names. First, let’s see how to search upstreams by their IP addresses.

Click to open the search box again.

Screenshot

Enter an IP address ending with .188.

Screenshot

You find 6 results.

Screenshot

You see upstream names in the search results.

Screenshot

The application name.

Screenshot

There is no application name here, and the Global in parentheses means that it is a global upstream.

Screenshot

Click the third result. You will go to the application and open the Edit Upstream panel.

Screenshot

Look at the host of this upstream, which is exactly the IP address ending with .188.

Screenshot

Click to close this panel.

Screenshot

Upstreams can also be searched by names.

Screenshot

Enter “github” into the search box

Screenshot

You find 4 upstreams that have name that contains “github”.

Screenshot

Click to enter the first upstream.

Screenshot

Look at the host of this upstream, which contains the text “github”.

Screenshot

Click to close this panel.

Screenshot

Search for applications

Similarly, you can search for applications by their names.

Open the search box again.

Screenshot

Enter openresty.org.

Screenshot

You can see that there are seven results.

Screenshot

Click to enter the first result.

Screenshot

You can see that we are on the Application Overview page.

Screenshot

Search for blog posts

The last thing that we can search for in OpenResty Edge is blog articles.

Screenshot

Enter “staging servers”.

Screenshot

We find one result in the group “Blog”.

Screenshot

The title and update date of the article are shown in the results.

Screenshot

Click on the title. You can open this article.

Screenshot

Screenshot

What is OpenResty Edge

OpenResty Edge is our all-in-one gateway software for microservices and distributed traffic architectures. It combines traffic management, private CDN construction, API gateway, security, and more to help you easily build, manage, and protect modern applications. OpenResty Edge delivers industry-leading performance and scalability to meet the demanding needs of high concurrency, high load scenarios. It supports scheduling containerized application traffic such as K8s and manages massive domains, making it easy to meet the needs of large websites and complex applications.

If you like this tutorial, please subscribe to this blog site and/or our Vimeo account and/or our YouTube channel. Thank you!

About The Author

Yichun Zhang (Github handle: agentzh), is the original creator of the OpenResty® open-source project and the CEO of OpenResty Inc..

Yichun is one of the earliest advocates and leaders of “open-source technology”. He worked at many internationally renowned tech companies, such as Cloudflare, Yahoo!. He is a pioneer of “edge computing”, “dynamic tracing” and “machine coding”, with over 22 years of programming and 16 years of open source experience. Yichun is well-known in the open-source space as the project leader of OpenResty®, adopted by more than 40 million global website domains.

OpenResty Inc., the enterprise software start-up founded by Yichun in 2017, has customers from some of the biggest companies in the world. Its flagship product, OpenResty XRay, is a non-invasive profiling and troubleshooting tool that significantly enhances and utilizes dynamic tracing technology. And its OpenResty Edge product is a powerful distributed traffic management and private CDN software product.

As an avid open-source contributor, Yichun has contributed more than a million lines of code to numerous open-source projects, including Linux kernel, Nginx, LuaJIT, GDB, SystemTap, LLVM, Perl, etc. He has also authored more than 60 open-source software libraries.