# US 2022/0292021 A1 · Cache Aware Searching Based on One or More Files in Remote Storage

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292021 A1
- Document ID: US20220292021A1
- Status: Published application
- Kind: A1
- Application number: 17/652,635
- Filed: 2022-02-25
- Published: 2022-09-15
- Earliest claimed: 2017-01-09
- Assignees: Splunk Inc.
- Applicants: Splunk Inc.
- Inventors: Ledion Bitincka; Alexandros Batsakis; Paul J. Lucas; Nicholas Robert Romito
- Web page: https://patentgrep.com/patent/US20220292021A1

## CPC

- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 3/061: {Improving I/O performance}
- G06F 3/0611: {in relation to response time}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0862: with prefetch
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0873: Mapping of cache memory to specific storage devices or parts thereof
- G06F 16/148: {File search processing}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06F 16/9574: {of access to content, e.g. by caching}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/45: Caching of specific data in cache memory
- G06F 2212/6024: History based prefetching
- G06F 2212/6026: Prefetching based on access pattern detection, e.g. stride based prefetch
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are disclosed for performing cache aware searching. In response to a search query, a first bucket and a second bucket in remote storage for processing the search query. A determination is made that a first file in the first bucket is present in a cache when the search query is received. In response to the search query, a search is performed using the first file based on the determination that the first file is present in the cache when the search query is received, and the search is performed using a second file from the second bucket once the second file is stored in the cache.

## Claims

### Claim at position 1

-30. (canceled)

### Claim 31

A method, comprising:
in response to a search query, identifying a bucket to be searched;
determining that a first file of the bucket is stored in a remote storage;
determining a length of time to download the first file from the remote storage to a cache; and
based on a determination that the length of time satisfies a timing threshold, searching, in accordance with the search query, a second file of the bucket stored in the cache.

### Claim 32 (depends on 31)

The method of claim 31, wherein the first file comprises a gate file and the second file comprises an event file.

### Claim 33 (depends on 31)

The method of claim 31, wherein the second file comprises a plurality of events and the first file comprises summary information regarding the plurality of events.

### Claim 34 (depends on 31)

The method of claim 31, wherein the second file comprises a plurality of events and the first file comprises summary information regarding the plurality of events, wherein the first file comprises a host identifier, a source identifier, and a source type identifier for each of the plurality of events.

### Claim 35 (depends on 31)

The method of claim 31, further comprising determining the length of time satisfies the timing threshold.

### Claim 36 (depends on 31)

The method of claim 31, further comprising determining the second file is stored in the cache.

### Claim 37 (depends on 31)

The method of claim 31, wherein the search query is a first search query, the bucket is a first bucket, the remote storage is first remote storage, the length of time is a first length of time, the cache is a first cache, the timing threshold is a first timing threshold, the method further comprising:
in response to a second search query, identifying a second bucket to be searched;
determining that a third file of the second bucket is stored in a second remote storage;
determining a second length of time to download the third file from the second remote storage to a second cache; and
based on a determination that the second length of time does not exceed a second timing threshold, downloading the third file and searching the third file.

### Claim 38 (depends on 31)

The method of claim 31, wherein the search query is a first search query, the bucket is a first bucket, the remote storage is first remote storage, the length of time is a first length of time, the cache is a first cache, the timing threshold is a first timing threshold, the method further comprising:
in response to a second search query, identifying a second bucket to be searched;
determining that a third file of the second bucket is stored in a second remote storage;
determining a second length of time to download the third file from the second remote storage to a second cache; and
based on a determination that the second length of time does not exceed a second timing threshold, downloading the third file to the cache, searching the third file, and eliminating the second bucket from further searching in response to searching the third file, wherein eliminating the second bucket comprises not searching a remaining file of the second bucket.

### Claim 39 (depends on 31)

The method of claim 31, wherein the search query is a first search query, the bucket is a first bucket, the remote storage is first remote storage, the length of time is a first length of time, the cache is a first cache, the timing threshold is a first timing threshold, the method further comprising:
in response to a second search query, identifying a second bucket to be searched;
determining that a third file of the second bucket is stored in a second remote storage;
determining a second length of time to download the third file from the second remote storage to a second cache; and
based on a determination that the second length of time does not exceed a second timing threshold, downloading the third file to the cache, searching the third file, and searching a fourth file in response to searching the third file.

### Claim 40 (depends on 31)

The method of claim 31, wherein the search query is a first search query, the bucket is a first bucket, the remote storage is first remote storage, the length of time is a first length of time, the cache is a first cache, the timing threshold is a first timing threshold, the method further comprising:
in response to a second search query, identifying a second bucket to be searched;
determining that a third file of the second bucket is stored in a second remote storage, wherein the third file comprises summary information regarding a plurality of events, wherein the third file comprises a host identifier, a source identifier, and a source type identifier for each of the plurality of events;
determining a second length of time to download the third file from the second remote storage to a second cache;
based on a determination that the second length of time does not exceed a second timing threshold, downloading the third file to the cache;
comparing at least one of the host identifier, the source identifier, or the source type identifier to the second search query to obtain a comparison result indicating that the at least one of the host identifier, the source identifier, or the source type identifier does not match the second search query; and
eliminating the second bucket from further searching based on the comparison result, wherein eliminating the second bucket comprises not searching a remaining file in the second bucket.

### Claim 41 (depends on 31)

The method of claim 31, wherein the search query is a first search query, the bucket is a first bucket, the remote storage is first remote storage, the length of time is a first length of time, the cache is a first cache, the timing threshold is a first timing threshold, the method further comprising:
in response to a second search query, identifying a second bucket to be searched;
determining that a third file of the second bucket is stored in a second remote storage, wherein the third file comprises summary information regarding a plurality of events, wherein the third file comprises a host identifier, a source identifier, and a source type identifier for each of the plurality of events;
determining a second length of time to download the third file from the second remote storage to a second cache;
based on a determination that the second length of time does not exceed a second timing threshold, downloading the third file to the cache;
comparing at least one of the host identifier, the source identifier, or the source type identifier to the second search query to obtain a comparison result indicating that the at least one of the host identifier, the source identifier, or the source type identifier matches the second search query; and
searching a fourth file of the second bucket stored in the second cache based on the comparison result.

### Claim 42 (depends on 31)

The method of claim 31, further comprising:
identifying an order on a list of buckets for processing the search query, wherein the bucket is processed out of the order based on the determining the second file is stored in the cache.

### Claim 43 (depends on 31)

The method of claim 31, further comprising:
based on a relative size of the second file in the cache, selecting the second file for eviction after searching the second file.

### Claim 44 (depends on 31)

The method of claim 31, wherein the second file comprises a plurality of events and the first file comprises summary information regarding the plurality of events, wherein each of the plurality of events comprises raw machine data associated with a timestamp.

### Claim 45 (depends on 31)

The method of claim 31, wherein the remote storage is located in a cloud storage or a storage in an on-premises environment.

### Claim 46 (depends on 31)

The method of claim 31, wherein the second file comprises the first file, wherein searching the second file stored in the cache comprises downloading the first file to the cache and searching the first file.

### Claim 47 (depends on 31)

The method of claim 31, wherein the first file and the second file comprise different files.

### Claim 48 (depends on 31)

The method of claim 31, wherein searching the second file comprises searching at least a portion of the bucket.

### Claim 49

Non-transitory computer-readable media comprising computer-executable instructions, wherein execution of the computer-executable instructions causes one or more processors to:
in response to a search query, identify a bucket to be searched;
determine that a first file of the bucket is stored in a remote storage;
determine a length of time to download the first file from the remote storage to a cache; and
based on a determination that the length of time satisfies a timing threshold, search, in accordance with the search query, a second file of the bucket stored in the cache.

### Claim 50

A computer system, comprising:
a data store comprising a cache; and
one or more processors communicatively coupled to the data store and configured to:
in response to a search query, identify a bucket to be searched;
determine that a first file of the bucket is stored in a remote storage;
determine a length of time to download the first file from the remote storage to the cache; and
based on a determination that the length of time satisfies a timing threshold, search, in accordance with the search query, a second file of the bucket stored in the cache.
