Global Search in OpenResty Edge
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.
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.
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.
Type in openresty.org in the search box.
Enter this application.
Enter the Error Logs page。
You can find the error logs of this application. Each log has a Request ID.
Copy the first Request ID.
Click to open the search box.
If you have searched before, the search history will be shown below. Now it is empty.
Paste the Request ID we just copied into the search box.
You can see a search result.
Click this result.
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.
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.
In this case, you can search for “file” in the search box.
There are three search results.
Click the third result to enter the static file page.
You can find this page because it has buttons that contain the text “file”.
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.
Enter an IP address ending with .188.
You find 6 results.
You see upstream names in the search results.
The application name.
There is no application name here, and the Global in parentheses means that it is a global upstream.
Click the third result. You will go to the application and open the Edit Upstream panel.
Look at the host of this upstream, which is exactly the IP address ending with .188.
Click to close this panel.
Upstreams can also be searched by names.
Enter “github” into the search box
You find 4 upstreams that have name that contains “github”.
Click to enter the first upstream.
Look at the host of this upstream, which contains the text “github”.
Click to close this panel.
Search for applications
Similarly, you can search for applications by their names.
Open the search box again.
Enter openresty.org.
You can see that there are seven results.
Click to enter the first result.
You can see that we are on the Application Overview page.
Search for blog posts
The last thing that we can search for in OpenResty Edge is blog articles.
Enter “staging servers”.
We find one result in the group “Blog”.
The title and update date of the article are shown in the results.
Click on the title. You can open this article.
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.