US20220237101A1 - Schema Inference and Log Data Validation System - Google Patents

Schema Inference and Log Data Validation System Download PDF

Info

Publication number
US20220237101A1
US20220237101A1 US17/155,670 US202117155670A US2022237101A1 US 20220237101 A1 US20220237101 A1 US 20220237101A1 US 202117155670 A US202117155670 A US 202117155670A US 2022237101 A1 US2022237101 A1 US 2022237101A1
Authority
US
United States
Prior art keywords
log data
metrics
data items
data item
schemas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US17/155,670
Other versions
US11449409B2 (en
Inventor
Sahibdeep Singh
Linda Wei
Ahmet Bugdayci
Mario Sergio Rodriguez
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Salesforce Inc
Original Assignee
Salesforce com Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Salesforce com Inc filed Critical Salesforce com Inc
Priority to US17/155,670 priority Critical patent/US11449409B2/en
Assigned to SALESFORCE.COM, INC. reassignment SALESFORCE.COM, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: SINGH, SAHIBDEEP, BUGDAYCI, AHMET, RODRIGUEZ, MARIO SERGIO, WEI, LINDA
Publication of US20220237101A1 publication Critical patent/US20220237101A1/en
Application granted granted Critical
Publication of US11449409B2 publication Critical patent/US11449409B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3442Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for planning or managing the needed capacity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/40Data acquisition and logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/815Virtual

Definitions

  • One or more implementations relate to performance measurement and monitoring in cloud computing environments, and more specifically, to schema inference and log data validation in a cloud computing system.
  • Cloud computing services provide shared resources, software, and information to computers and other devices upon request or on demand. Cloud computing typically involves the over-the-Internet provision of dynamically scalable and often virtualized resources. Technological details can be abstracted from end-users, who no longer have need for expertise in, or control over, the technology infrastructure “in the cloud” that supports them. In cloud computing environments, software applications can be accessible over the Internet rather than installed locally on personal or in-house computer systems. Some of the applications or on-demand services provided to end-users can include the ability for a user to create, view, modify, store and share documents and other files.
  • log data is represented as “free form” text as a collection of key-value pairs. Developers of applications (being run in the cloud computing system) generating the log data typically have the flexibility to log any attributes regarding user interface interactions or performance measurements, without being restricted to a fixed set of attributes with a defined format. This flexibility of using key-value pairs to describe event attributes is convenient for the developers of those logs. However, this lack of consistent formatting of events in logs creates problems for downstream applications and system monitoring tools that need to consume those events.
  • FIG. 1 illustrates an example computing environment according to some embodiments.
  • FIG. 2 is a diagram of an example schema inference and log data validation system according to some embodiments.
  • FIG. 3 is a diagram of a schema inference system according to some embodiments.
  • FIG. 4 is a diagram of a log data validation system according to some embodiments.
  • FIG. 5 is a diagram of a metrics analytics tool according to some embodiments.
  • FIG. 6 is a flow diagram of schema inference and log data validation processing according to some embodiments.
  • FIG. 7A is a block diagram illustrating an electronic device according to some example implementations.
  • FIG. 7B is a block diagram of a deployment environment according to some example implementations.
  • Embodiments of the present invention comprise a method and apparatus to generate metrics measuring performance of user interface (UI) interactions of a computing system from log data items recording performance of the UI interactions, automatically infer one or more schemas based at least in part on analyzing samples of log data items, validate samples of log data items against the schemas to detect log data errors, and analyze the log data errors according to metrics analytics rules to determine the effect of log data errors on a quality measurement of the metrics.
  • UI user interface
  • FIG. 1 illustrates an example computing environment 100 according to some embodiments.
  • At least one production data center (PDC) 104 in a cloud computing environment comprises a plurality of conventional computer servers, storage devices, and network interfaces (not shown) to run computer applications for users. Users interact with user devices 102 to access the applications running in the PDC over one or more computer or communications networks. Examples of user devices include laptop and desktop personal computers, smart phones, tablet computers, personal digital assistants (PDAs), smart home appliances, home networking equipment, and so on.
  • PDC 104 runs a plurality of applications 1 106 , 2 108 , . . . N 110 , where N is a natural number.
  • N may be very large—millions or even tens of millions of instances of applications being accessed by millions or tens of millions of users worldwide.
  • PDC 104 is operated by a cloud service provider (CSP) and comprises a plurality of production data centers distributed in sites throughout the world.
  • CSP cloud service provider
  • at least one application is a search service.
  • log data items 112 comprise any information relating to the applications that can be measured to assess system performance of PDC 104 and/or the applications.
  • log data items 112 may include user typing actions (the user entering text using a physical or virtual keyboard, for example), mouse selections (e.g., clicks), mouse hovers, search terms, hyperlink selections (clicks), etc.
  • Each log data item 112 may include a plurality of fields such as log type, attributes, time stamp, etc.
  • the format of each log data item is a “free form” text as determined by the developer of the application generating the log data item.
  • the number of log data items generated may be extremely large, perhaps in the millions, tens of millions, hundreds of millions, or even billions of log data items in a plurality of PDCs over a selected period of time (which may be a minute, an hour, a day, a week, a month, a quarter, a year, etc.).
  • the log data items 112 are generated by the applications, the log data items are inserted into at least one PDC log data queue 114 .
  • the at least one PDC log data queue 114 is implemented as a Kafka® message queue available from the Apache® Software Foundation on the Internet at kafka.apache.org, although other message queues may also be used.
  • Apache® Kafka® is an open-source stream-processing software platform developed by the Apache® Software Foundation, written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds.
  • At least one non-production data center (NPDC) 116 communicates with PDC 104 to read log data items 112 from the at least one PDC log data queue 114 .
  • Log data items 112 obtained from the at least one PDC log data queue 114 of PDC 104 are stored in NPDC log data queue 118 in NPDC 116 .
  • NPDC log data queue 118 is also a Kafka® message queue, although other message queues may also be used.
  • NPDC 116 is situated at a different location than the at least one PDC 104 .
  • NPDC 116 is situated at the same location as at least one of the PDCs 104 .
  • NPDC 116 does not run applications for access by user devices 102 , but instead runs applications and/or tools for research and development activities, data center monitoring activities, and so on.
  • Performance metrics generator 120 reads log data items from NPDC log data queue 118 and generates metrics 122 representing measurements of the performance of applications by PDC 104 .
  • Metrics 122 may be input to metrics analytics 124 .
  • Metrics analytics 124 uses metrics 122 to present information to systems administrators of NPDC 116 and/or PDC 104 to allow the systems administrators to manage PDC 104 to provide better service to user devices 102 .
  • metrics analytics 124 includes a visual dashboard capability representing current operating attributes of PDC 104 .
  • metrics analytics 124 includes machine learning (ML) processes to analyze metrics 122 to improve cloud computing services to user devices 102 .
  • ML machine learning
  • metrics analytics 124 automatically communicates with PDC 104 to instruct the PDC to change one or more operating characteristics of the PDC based on metrics 122 .
  • metrics analytics 124 is replaced by any program for analyzing and/or interpreting metrics 122 .
  • each UI interaction event or performance event is represented as a JavaScript object notation (JSON) object containing a collection of key-value pairs.
  • JSON JavaScript object notation
  • performance metrics generator 120 system generates metrics 122 based on UI interactions and performance events logged by applications. Changes, intentional or not, in the instrumentation such as attribute structure changes or unexpected attribute values can have a negative impact on the quality of the metrics 122 used to monitor and update the cloud computing environment. Many times those changes go unnoticed until a later time, because those changes don't often lead to “hard” failures (like exceptions or causing a visible failure to an application program (such as application 1 106 , application 2 108 , . . .
  • a system administrator of the cloud computing environment wants to assess how relevant are the search results generated by a search service by using a click-through rate (CTR) metric on a search results page.
  • CTR click-through rate
  • the formula for a Search Results Page CTR is calculated as equal to: (#of user clicks on the Search Results page)/(#of Search Results Pages shown to the user).
  • An example click event logged for each user click on the Search Results page is shown in Table 1.
  • the metrics calculation requires that “attributes.sessionId” is non-null.
  • performance metrics generator 120 Since performance metrics generator 120 is not aware of the changes, all such click events would be left out of the metrics 122 calculation after the changes were deployed to production in PDC 104 . This results in erroneous and misleading metrics 122 .
  • Embodiments of the invention detect unexpected errors in semi-structured log data items 112 and analyze the impact of those errors by tying the errors directly to the quality of metrics 122 using a rule-based system.
  • One goal is to have an objective way to evaluate the quality of generated metrics on a periodic basis by examining the information gaps in logged events between the producer (e.g., the developer of applications 106 , 108 , . . . 110 ) and consumer (e.g., metrics analytics 124 in NPDC 116 ) of semi-structured log data items.
  • FIG. 2 is a diagram of an example schema inference and log data validation system 200 according to some embodiments.
  • Performance metrics generator 120 generates metrics 122 based at least in part on log data items 112 retrieved from NPDC log data queue 118 .
  • Performance metrics generator 120 reads log data items 112 from NPDC log data queue 118 , analyzes the log data items by an events generator (not shown in FIG. 2 ) within performance metrics generator 120 using event definitions to generate events stored in an events table and dimensions stored in a dimensions table, and analyzes the events and dimensions using metrics definitions by a metrics generator (not shown in FIG. 2 ) within performance metrics generator 120 to generate metrics 122 .
  • performance metrics generator 120 parses log data items to find events in the log data items, wherein an event comprises at least a portion of a selected log data item matching an event definition; aggregates a plurality of performance metric definitions into a single expression; and generates a plurality of performance metrics 122 from the events, in one pass through the events, by applying the single expression to the events.
  • Schema inference system 202 reads log data items 112 from NPDC log data queue 118 and automatically infers one or more schemas based at least in part on analysis of the semi-structured log data items.
  • a schema defines the field names and data types for a dataset (e.g., log data items 112 ).
  • Inferred schemas are stored in schema database (DB) 204 .
  • Log data validation system 206 reads log data items 112 from NPDC log data queue 118 and compares the log data items to inferred schemas from schema DB 204 to identify any log data item errors. Log data item errors are stored in log data validation DB 208 .
  • Metrics analytics 124 analyzes log data item errors from log data validation DB 208 with respect to metrics 122 generated by performance metrics generator 120 to determine an effect, if any, of the log data item errors on a quality measurement of metrics 122 . Metrics analytics 124 generates a plurality of alerts and reports 210 as needed. Metrics analytics 124 also stores metrics 122 and/or selected log data validation DB information into time series DB 212 for possible further trend analysis. If the quality measurement does not meet a predetermined threshold, an alert (as part of alerts and reports 210 ) may be sent to a system administrator of NPDC 116 and/or PDC 104 .
  • FIG. 3 is a diagram of schema inference system 202 according to some embodiments.
  • one or more schemas 308 are automatically inferred for all log data items 112 that contribute to metrics generation.
  • schema inferencing may be performed every time a new release of one or more applications 106 , 108 , . . . 110 is deployed into production in PDC 104 for access by user devices 102 , because changes in applications may result in changes to the format of log data items produced by those applications.
  • Examples of log data items 112 include click events on a Search Results page and impression events of a Search Results page.
  • log data items 112 may output log data items 112 in several different formats, such as JavaScript object notation (JSON), Extensible Markup Language (XML), yet another markup language (YAML), key-value pairs, or comma separated values (CSV).
  • JSON JavaScript object notation
  • XML Extensible Markup Language
  • YAML yet another markup language
  • CSV comma separated values
  • log data items 112 are in a semi-structured JSON format and schema inferencer 306 is implemented using an existing library called Apache® Kite software development kit (SDK) (available on the Internet at kitesdk.org) to generate one or more schemas 308 from the semi-structured JSON objects.
  • Kite parses the log data items in the semi-structured format, determines data types of attributes, determines the structure of the data types, and produces one or more schemas 308 reflecting a format of the data types.
  • other methods of schema inferencing may be used.
  • Schemas 308 automatically inferred by schema inferencer 306 need to be vetted and approved by a reviewer 210 before storing the schemas in schema DB 204 .
  • Reviewer 210 is a person, such as a system administrator of PDC 104 or NPDC 116 .
  • Reviewer 210 may in some cases edit the schemas 308 to correct the schemas to more accurately reflect desired formats of the log data items.
  • there may be many schemas 308 (e.g., hundreds, thousands, or even tens of thousands of schemas in large cloud computing environments having many applications running in many PDCs 104 ).
  • schema inference system 202 includes log data sample collector 302 .
  • log data sample collector 302 obtains samples 304 of log data items 112 from production logs generated by the applications running in PDC 104 . Only samples 304 of log data items 112 are needed to infer schemas, rather than entire logs (which may be too large to efficiently infer schemas).
  • Spunk® Enterprise software for searching, monitoring and analyzing big data streams commercially available from Splunk®, Inc., is used to obtain log data samples 304 from log data items 112 .
  • log data samples may be collected from other sources, such as Apache® Kafka® (an open-source stream processing platform available on the Internet at kafka.apache.org), files downloaded by file transfer protocol (ftp), a Hadoop® File System (HDFS) connector if the data source is on a HDFS, etc.
  • Apache® Kafka® an open-source stream processing platform available on the Internet at kafka.apache.org
  • HDFS Hadoop® File System
  • log data samples are semi-structured and may be changed for a given release of an application.
  • schema 308 is an AvroTM schema file.
  • AvroTM is a row-oriented remote procedure call and data serialization framework developed by the Apache® Software Foundation within Apache's Hadoop® project (available on the Internet at avro.apache.org).
  • AvroTM uses JSON for defining data types and protocols and serializes data in a compact binary data encoding format.
  • schema 308 is in an XML scheme definition (XSD) format.
  • FIG. 4 is a diagram of log data validation system 206 according to some embodiments.
  • log data validation system 206 is run on a periodic basis (for example, daily, every other day, weekly, monthly, and so on) or on demand by a system administrator.
  • Log data samples 404 are collected by log data sample collector 402 from log data items 112 in NPDC log data queue 118 . Only samples 404 of log data items are needed to detect log data item errors, rather than entire logs (which may be too large to efficiently process).
  • Log data samples 404 are validated against corresponding schemas 308 from schema DB 204 by log data validator 406 . A validation summary of any detected errors is created for each run and stored in log data validation DB 208 .
  • Spunk® Enterprise software for searching, monitoring and analyzing big data streams is used to obtain log data samples 404 from log data items 112 .
  • log data samples may be collected from other sources, such as Apache® Kafka® (an open-source stream processing platform available on the Internet at kafka.apache.org), files downloaded by file transfer protocol (ftp), a Hadoop® File System (HDFS) connector if the data source is on a HDFS, etc.
  • Apache® Kafka® an open-source stream processing platform available on the Internet at kafka.apache.org
  • files downloaded by file transfer protocol (ftp) files downloaded by file transfer protocol (ftp)
  • HDFS Hadoop® File System
  • log data samples 404 are semi-structured and may be changed for a given release of an application.
  • Log data validator 406 validates a collection of log data samples 404 against a corresponding schema 308 from schema DB 204 . What should be validated depends on the specifics of the format in which the log data items are outputted, and inferred schema 308 . It also depends on a specific use case. For example, the significance of the field order might play an important role in how a log data item is interpreted. In one embodiment, the types of errors log data validator 406 reports include: missing required fields, fields with unexpected data types, and fields with unexpected values.
  • log data validator 406 is implemented using open-source software AvroTM Schema Validator available on the Internet at www*npmjs*com*package*avro-schema-validator (with “.” and “/” being replaced by “*” to deactivate live links). In other embodiments, other schema validators may be used.
  • the output of log data validator 406 includes time series metrics, a validation summary and all log data item errors found during the validation process, all of which are stored in log data validation DB 208 .
  • the time series metrics may include a count of each type of error.
  • the validation summary includes a total number of log data items processed, a total number of valid log data items, a violation map comprising a summary of each type of log data item error found from the schema comparison and the number of log data items that have the specific error.
  • the violation map is a mapping from (field, type of error, schema version, log type) to the number of errors found.
  • log data validation DB 208 An example of a list of log data item errors stored in log data validation DB 208 is below.
  • FIG. 5 is a diagram of metrics analytics 124 according to some embodiments.
  • log error and metrics quality analyzer 504 of metrics analytics 124 examines each type of log data item error in log data validation DB 208 reported by log data validator 406 and analyzes the impact of the log data item errors on metrics 122 produced by performance metrics generator 120 .
  • the analysis may trigger alerts in alerts and reports 210 to be emailed to a system administrator if the errors cause an impact to a quality measurement of one or more metrics 122 such that the quality measurement fails to meet a predetermined threshold.
  • One type of log data item error may have an impact on multiple metrics, with varying degrees of impact.
  • Time series metrics generated by log data validator 406 are uploaded to time series DB 212 for trend analysis.
  • an open source time series monitoring and alerting platform called Argus (available on the Internet at openargus.org) is used as time series DB 212 .
  • An example of a metrics analytics rule is when a number of log data item errors in log data items used by a metric 122 is more than 5% of the log data items used, then send an alert.
  • search_initiation_event as follows:
  • search_intiation_event for example, because the payload_attributes_searchDialogSessionId is null, then that means there is a problem with all metrics that use this event.
  • the search_intiation_event is a denominator in all metrics that use this event. For example, for the deflectionClickRate metric:
  • deflection_rate ( ta_clk ” + “ ta_preview ⁇ _clk ” + 1.09 * ⁇ “ mru_clk ” + “ mru_preview ⁇ _clk ” + “ lv_clk ” + “ _lv ⁇ _preview ⁇ _clk ” ) / ( “ search_initiation ⁇ _event ” * ⁇ 1.04 )
  • a forecasting component may provide forecast estimates, in one example, for the events:
  • a rule for deflection_rate in one example is:
  • search_results_page_click to an example metric is shown below.
  • the following selectors are used to filter an event such as
  • the following selectors are used to filter an event such as
  • the bug may be, for example, that the logging code left out “attributes.sessionId” when logging the search_results_page_click log data item.
  • Log data validation system 206 would report errors for “missing required field” for “attributes.sessionId” in the search_results_page_click event for PDCs 104 that have the patch release. In this example, having fewer search_results_page_click events would decrease the Search Results Page CTR metric.
  • metrics analytics 124 may be able to estimate a more realistic CTR. Metrics analytics 124 knows which events are affected by log data item errors from the event definitions in performance metrics generator 120 . Metrics analytics 124 knows which metrics are impacted and how they are impacted by the affected events from the metrics definitions in performance metrics generator 120 (e.g., the type of event is counted in the numerator and/or the denominator of a metric).
  • Metrics analytics 124 can estimate the number of search_results_page_click events that should be computed based on the percentage of errors being seen for that type of event from the output of log data validation system 206 . Metrics analytics 124 can then estimate the actual CTR.
  • metric analytics 124 may forecast what metrics the performance metrics generator might produce. Metrics analytics 124 can estimate the expected and actual (metric calculated without logging errors) Search Results Page CTR based on forecasts and the percentage of errors being seen for that type of event from the output of log data validation system 202 . Log error and metrics quality analyzer 504 sends out alerts if the difference between an expected and actual metric is above a threshold specified in metrics analytics rules 502 .
  • FIG. 6 is a flow diagram 600 of schema inference and log data validation processing according to some embodiments.
  • performance metrics generator generates metrics from log data items.
  • the log data items are generated by applications running in a computing system.
  • schema inference system 202 automatically infers schemas from samples of the log data items.
  • log data validation system 206 validates samples of the log data items against the schemas to detect log data item errors.
  • metrics analytics analyzes the log data item errors according to metrics analytics rules to determine the effect of the log data item errors on a quality measurement of the metrics.
  • Example Electronic Devices and Environments may include software.
  • Software is a general term whose meaning can range from part of the code and/or metadata of a single computer program to the entirety of multiple programs.
  • a computer program also referred to as a program
  • Code (sometimes referred to as computer program code or program code) comprises software instructions (also referred to as instructions). Instructions may be executed by hardware to perform operations.
  • Executing software includes executing code, which includes executing instructions. The execution of a program to perform a task involves executing some or all the instructions in that program.
  • An electronic device (also referred to as a device, computing device, computer, computer server, cloud computing server, etc.) includes hardware and software.
  • an electronic device may include a set of one or more processors coupled to one or more machine-readable storage media (e.g., non-volatile memory such as magnetic disks, optical disks, read only memory (ROM), Flash memory, phase change memory, solid state drives (SSDs)) to store code and optionally data.
  • non-volatile memory such as magnetic disks, optical disks, read only memory (ROM), Flash memory, phase change memory, solid state drives (SSDs)
  • SSDs solid state drives
  • an electronic device may include non-volatile memory (with slower read/write times) and volatile memory (e.g., dynamic random-access memory (DRAM), static random-access memory (SRAM)).
  • DRAM dynamic random-access memory
  • SRAM static random-access memory
  • Non-volatile memory persists code/data even when the electronic device is turned off or when power is otherwise removed, and the electronic device copies that part of the code that is to be executed by the set of processors of that electronic device from the non-volatile memory into the volatile memory of that electronic device during operation because volatile memory typically has faster read/write times.
  • an electronic device may include a non-volatile memory (e.g., phase change memory) that persists code/data when the electronic device has power removed, and that has sufficiently fast read/write times such that, rather than copying the part of the code to be executed into volatile memory, the code/data may be provided directly to the set of processors (e.g., loaded into a cache of the set of processors).
  • this non-volatile memory operates as both long term storage and main memory, and thus the electronic device may have no or only a small amount of volatile memory for main memory.
  • typical electronic devices can transmit and/or receive code and/or data over one or more machine-readable transmission media (also called a carrier) (e.g., electrical, optical, radio, acoustical or other forms of propagated signals—such as carrier waves, and/or infrared signals).
  • machine-readable transmission media also called a carrier
  • typical electronic devices also include a set of one or more physical network interface(s) to establish network connections (to transmit and/or receive code and/or data using propagated signals) with other electronic devices.
  • an electronic device may store and transmit (internally and/or with other electronic devices over a network) code and/or data with one or more machine-readable media (also referred to as computer-readable media).
  • Software instructions are capable of causing (also referred to as operable to cause and configurable to cause) a set of processors to perform operations when the instructions are executed by the set of processors.
  • the phrase “capable of causing” includes various scenarios (or combinations thereof), such as instructions that are always executed versus instructions that may be executed.
  • instructions may be executed: 1) only in certain situations when the larger program is executed (e.g., a condition is fulfilled in the larger program; an event occurs such as a software or hardware interrupt, user input (e.g., a keystroke, a mouse-click, a voice command); a message is published, etc.); or 2) when the instructions are called by another program or part thereof (whether or not executed in the same or a different process, thread, lightweight thread, etc.).
  • instructions, code, program, and software are capable of causing operations when executed, whether the operations are always performed or sometimes performed (e.g., in the scenarios described previously).
  • the phrase “the instructions when executed” refers to at least the instructions that when executed cause the performance of the operations described herein but may or may not refer to the execution of the other instructions.
  • Electronic devices are designed for and/or used for a variety of purposes, and different terms may reflect those purposes (e.g., user devices, network devices).
  • Some user devices are designed to mainly be operated as servers (sometimes referred to as server devices), while others are designed to mainly be operated as clients (sometimes referred to as client devices, client computing devices, client computers, or end user devices; examples of which include desktops, workstations, laptops, personal digital assistants, smartphones, wearables, augmented reality (AR) devices, virtual reality (VR) devices, mixed reality (MR) devices, etc.).
  • AR augmented reality
  • VR virtual reality
  • MR mixed reality
  • the software executed to operate a user device (typically a server device) as a server may be referred to as server software or server code), while the software executed to operate a user device (typically a client device) as a client may be referred to as client software or client code.
  • a server provides one or more services (also referred to as serves) to one or more clients.
  • the term “user” refers to an entity (e.g., an individual person) that uses an electronic device.
  • Software and/or services may use credentials to distinguish different accounts associated with the same and/or different users.
  • Users can have one or more roles, such as administrator, programmer/developer, and end user roles.
  • As an administrator a user typically uses electronic devices to administer them for other users, and thus an administrator often works directly and/or indirectly with server devices and client devices.
  • FIG. 7A is a block diagram illustrating an electronic device 700 according to some example implementations.
  • FIG. 7A includes hardware 720 comprising a set of one or more processor(s) 722 , a set of one or more network interfaces 724 (wireless and/or wired), and machine-readable media 726 having stored therein software 728 (which includes instructions executable by the set of one or more processor(s) 722 ).
  • the machine-readable media 726 may include non-transitory and/or transitory machine-readable media.
  • Each of the previously described clients and schema inference and log data validation system 200 may be implemented in one or more electronic devices 700 .
  • each of the clients is implemented in a separate one of the electronic devices 700 (e.g., in end user devices where the software 728 represents the software to implement clients to interface directly and/or indirectly with the schema inference and log data validation system 200 (e.g., software 728 represents a web browser, a native client, a portal, a command-line interface, and/or an application programming interface (API) based upon protocols such as Simple Object Access Protocol (SOAP), Representational State Transfer (REST), etc.)); 2) the schema inference and log data validation system 200 is implemented in a separate set of one or more of the electronic devices 700 (e.g., a set of one or more server devices where the software 728 represents the software to implement the schema inference and log data validation system 200 ); and 3) in operation, the electronic devices implementing the clients and the schema inference and log data validation system 200 would be communicatively coupled (e.g., by a network) and would establish between them (or through one or more other layers and/or or other
  • an instance of the software 728 (illustrated as instance 706 and referred to as a software instance; and in the more specific case of an application, as an application instance) is executed.
  • the set of one or more processor(s) 722 typically execute software to instantiate a virtualization layer 708 and one or more software container(s) 704 A- 704 R (e.g., with operating system-level virtualization, the virtualization layer 708 may represent a container engine (such as Docker Engine by Docker, Inc.
  • the virtualization layer 708 represents a hypervisor (sometimes referred to as a virtual machine monitor (VMM)) or a hypervisor executing on top of a host operating system
  • the software containers 704 A- 704 R each represent a tightly isolated form of a software container called a virtual machine that is run by the hypervisor and may include a guest operating system; with para-virtualization, an operating system and/or application running with a virtual machine may be aware of the presence of virtualization for optimization purposes).
  • an instance of the software 728 is executed within the software container 704 A on the virtualization layer 708 .
  • the instance 706 on top of a host operating system is executed on the “bare metal” electronic device 700 .
  • the instantiation of the instance 706 , as well as the virtualization layer 708 and software containers 704 A- 704 R if implemented, are collectively referred to as software instance(s) 702 .
  • FIG. 7B is a block diagram of a deployment environment according to some example implementations.
  • a system 740 includes hardware (e.g., a set of one or more server devices) and software to provide service(s) 742 , including the schema inference and log data validation system 200 .
  • the system 740 is in one or more datacenter(s).
  • These datacenter(s) may be: 1) first party datacenter(s), which are datacenter(s) owned and/or operated by the same entity that provides and/or operates some or all of the software that provides the service(s) 742 ; and/or 2) third-party datacenter(s), which are datacenter(s) owned and/or operated by one or more different entities than the entity that provides the service(s) 742 (e.g., the different entities may host some or all of the software provided and/or operated by the entity that provides the service(s) 742 ).
  • third-party datacenters may be owned and/or operated by entities providing public cloud services (e.g., Amazon.com, Inc. (Amazon Web Services), Google LLC (Google Cloud Platform), Microsoft Corporation (Azure)).
  • the system 740 is coupled to user devices 780 A- 780 S over a network 782 .
  • the service(s) 742 may be on-demand services that are made available to one or more of the users 784 A- 784 S working for one or more entities other than the entity which owns and/or operates the on-demand services (those users sometimes referred to as outside users) so that those entities need not be concerned with building and/or maintaining a system, but instead may make use of the service(s) 742 when needed (e.g., when needed by the users 784 A- 784 S).
  • the service(s) 742 may communicate with each other and/or with one or more of the user devices 780 A- 780 S via one or more APIs (e.g., a REST API).
  • the user devices 780 A- 780 S are operated by users 784 A- 784 S, and each may be operated as a client device and/or a server device. In some implementations, one or more of the user devices 780 A- 780 S are separate ones of the electronic device 700 or include one or more features of the electronic device 700 .
  • service(s) 742 includes schema inference and log data validation system 200 .
  • the system 740 is a multi-tenant system (also known as a multi-tenant architecture).
  • the term multi-tenant system refers to a system in which various elements of hardware and/or software of the system may be shared by one or more tenants.
  • a multi-tenant system may be operated by a first entity (sometimes referred to a multi-tenant system provider, operator, or vendor; or simply a provider, operator, or vendor) that provides one or more services to the tenants (in which case the tenants are customers of the operator and sometimes referred to as operator customers).
  • a tenant includes a group of users who share a common access with specific privileges.
  • the tenants may be different entities (e.g., different companies, different departments/divisions of a company, and/or other types of entities), and some or all of these entities may be vendors that sell or otherwise provide products and/or services to their customers (sometimes referred to as tenant customers).
  • a multi-tenant system may allow each tenant to input tenant specific data for user management, tenant-specific functionality, configuration, customizations, non-functional properties, associated applications, etc.
  • a tenant may have one or more roles relative to a system and/or service. For example, in the context of a customer relationship management (CRM) system or service, a tenant may be a vendor using the CRM system or service to manage information the tenant has regarding one or more customers of the vendor.
  • CRM customer relationship management
  • one set of tenants may be vendors providing data and another set of tenants may be customers of different ones or all the vendors' data.
  • one set of tenants may be third-party application developers providing applications/services and another set of tenants may be customers of different ones or all of the third-party application developers.
  • a multi-tenant architecture may include a single software instance (e.g., a single database instance) which is shared by multiple tenants; other implementations may include a single software instance (e.g., database instance) per tenant; yet other implementations may include a mixed model; e.g., a single software instance (e.g., an application instance) per tenant and another software instance (e.g., database instance) shared by multiple tenants.
  • a single software instance e.g., a single database instance
  • a mixed model e.g., a single software instance (e.g., an application instance) per tenant and another software instance (e.g., database instance) shared by multiple tenants.
  • the system 740 is a multi-tenant cloud computing architecture supporting multiple services, such as one or more of the following types of services: schema inference and event validation processing, Customer relationship management (CRM); Configure, price, quote (CPQ); Business process modeling (BPM); Customer support; Marketing; External data connectivity; Productivity; Database-as-a-Service; Data-as-a-Service (DAAS or DaaS); Platform-as-a-service (PAAS or PaaS); Infrastructure-as-a-Service (IAAS or IaaS) (e.g., virtual machines, servers, and/or storage); Analytics; Community; Internet-of-Things (IoT); Industry-specific; Artificial intelligence (AI); Application marketplace (“app store”); Data modeling; Security; and Identity and access management (IAM).
  • schema inference and event validation processing CRM
  • CPM Customer relationship management
  • CPQ Configure, price, quote
  • BPM Business process modeling
  • Customer support Marketing
  • External data connectivity Productivity
  • Database-as-a-Service Data-
  • system 740 may include an application platform 744 that enables PAAS for creating, managing, and executing one or more applications developed by the provider of the application platform 744 , users accessing the system 740 via one or more of user devices 780 A- 780 S, or third-party application developers accessing the system 740 via one or more of user devices 780 A- 780 S.
  • an application platform 744 that enables PAAS for creating, managing, and executing one or more applications developed by the provider of the application platform 744 , users accessing the system 740 via one or more of user devices 780 A- 780 S, or third-party application developers accessing the system 740 via one or more of user devices 780 A- 780 S.
  • one or more of the service(s) 742 may use one or more multi-tenant databases 746 , as well as system data storage 750 for system data 752 accessible to system 740 .
  • the system 740 includes a set of one or more servers that are running on server electronic devices and that are configured to handle requests for any authorized user associated with any tenant (there is no server affinity for a user and/or tenant to a specific server).
  • the user devices 780 A- 780 S communicate with the server(s) of system 740 to request and update tenant-level data and system-level data hosted by system 740 , and in response the system 740 (e.g., one or more servers in system 740 ) automatically may generate one or more Structured Query Language (SQL) statements (e.g., one or more SQL queries) that are designed to access the desired information from the multi-tenant database(s) 746 and/or system data storage 750 .
  • SQL Structured Query Language
  • the service(s) 742 are implemented using virtual applications dynamically created at run time responsive to queries from the user devices 780 A- 780 S and in accordance with metadata, including: 1) metadata that describes constructs (e.g., forms, reports, workflows, user access privileges, business logic) that are common to multiple tenants; and/or 2) metadata that is tenant specific and describes tenant specific constructs (e.g., tables, reports, dashboards, interfaces, etc.) and is stored in a multi-tenant database.
  • metadata that describes constructs (e.g., forms, reports, workflows, user access privileges, business logic) that are common to multiple tenants
  • metadata that is tenant specific and describes tenant specific constructs (e.g., tables, reports, dashboards, interfaces, etc.) and is stored in a multi-tenant database.
  • the program code 760 may be a runtime engine that materializes application data from the metadata; that is, there is a clear separation of the compiled runtime engine (also known as the system kernel), tenant data, and the metadata, which makes it possible to independently update the system kernel and tenant-specific applications and schemas, with virtually no risk of one affecting the others.
  • the application platform 744 includes an application setup mechanism that supports application developers' creation and management of applications, which may be saved as metadata by save routines. Invocations to such applications, including the schema inference and log data validation system 200 , may be coded using Procedural Language/Structured Object Query Language (PL/SOQL) that provides a programming language style interface. Invocations to applications may be detected by one or more system processes, which manages retrieving application metadata for the tenant making the invocation and executing the metadata as an application in a software container (e.g., a virtual machine).
  • PL/SOQL Procedural Language/Structured Object Query Language
  • Network 782 may be any one or any combination of a LAN (local area network), WAN (wide area network), telephone network, wireless network, point-to-point network, star network, token ring network, hub network, or other appropriate configuration.
  • the network may comply with one or more network protocols, including an Institute of Electrical and Electronics Engineers (IEEE) protocol, a 3rd Generation Partnership Project (3GPP) protocol, a 4 th generation wireless protocol (4G) (e.g., the Long Term Evolution (LTE) standard, LTE Advanced, LTE Advanced Pro), a fifth generation wireless protocol (5G), and/or similar wired and/or wireless protocols and may include one or more intermediary devices for routing data between the system 740 and the user devices 780 A- 780 S.
  • IEEE Institute of Electrical and Electronics Engineers
  • 3GPP 3rd Generation Partnership Project
  • 4G 4 th generation wireless protocol
  • LTE Long Term Evolution
  • LTE Advanced Pro LTE Advanced
  • 5G fifth generation wireless protocol
  • Each user device 780 A- 780 S typically includes one or more user interface devices, such as a keyboard, a mouse, a trackball, a touch pad, a touch screen, a pen or the like, video or touch free user interfaces, for interacting with a graphical user interface (GUI) provided on a display (e.g., a monitor screen, a liquid crystal display (LCD), a head-up display, a head-mounted display, etc.) in conjunction with pages, forms, applications and other information provided by system 740 .
  • GUI graphical user interface
  • the user interface device can be used to access data and applications hosted by system 740 , and to perform searches on stored data, and otherwise allow one or more of users 784 A- 784 S to interact with various GUI pages that may be presented to the one or more of users 784 A- 784 S.
  • User devices 780 A- 780 S might communicate with system 740 using TCP/IP (Transfer Control Protocol and Internet Protocol) and, at a higher network level, use other networking protocols to communicate, such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), Andrew File System (AFS), Wireless Application Protocol (WAP), Network File System (NFS), an application program interface (API) based upon protocols such as Simple Object Access Protocol (SOAP), Representational State Transfer (REST), etc.
  • TCP/IP Transfer Control Protocol and Internet Protocol
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • AFS Andrew File System
  • WAP Wireless Application Protocol
  • NFS Network File System
  • API application program interface
  • SOAP Simple Object Access Protocol
  • REST Re
  • one or more user devices 780 A- 780 S might include an HTTP client, commonly referred to as a “browser,” for sending and receiving HTTP messages to and from server(s) of system 740 , thus allowing users 784 A- 784 S of the user devices 780 A- 780 S to access, process and view information, pages and applications available to it from system 740 over network 782 .
  • HTTP HyperText Transfer Protocol
  • references in the specification to “one implementation,” “an implementation,” “an example implementation,” etc., indicate that the implementation described may include a particular feature, structure, or characteristic, but every implementation may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same implementation. Further, when a particular feature, structure, and/or characteristic is described in connection with an implementation, one skilled in the art would know to affect such feature, structure, and/or characteristic in connection with other implementations whether or not explicitly described.
  • the figure(s) illustrating flow diagrams sometimes refer to the figure(s) illustrating block diagrams, and vice versa.
  • the alternative implementations discussed with reference to the figure(s) illustrating block diagrams also apply to the implementations discussed with reference to the figure(s) illustrating flow diagrams, and vice versa.
  • the scope of this description includes implementations, other than those discussed with reference to the block diagrams, for performing the flow diagrams, and vice versa.
  • Bracketed text and blocks with dashed borders may be used herein to illustrate optional operations and/or structures that add additional features to some implementations. However, such notation should not be taken to mean that these are the only options or optional operations, and/or that blocks with solid borders are not optional in certain implementations.
  • Coupled is used to indicate that two or more elements, which may or may not be in direct physical or electrical contact with each other, co-operate or interact with each other.
  • example or “exemplary” are used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” or “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the words “example” or “exemplary” is intended to present concepts in a concrete fashion.
  • non-transitory computer-readable storage medium any type of tangible computer-readable storage medium (referred to herein as a “non-transitory computer-readable storage medium”).
  • RAM random access memory
  • ROM read-only memory
  • magnetic media such as a hard-drive or a floppy disk
  • optical medium such as a compact disc (CD) or digital versatile disc (DVD), flash memory, and the like, or any combination of such storage or transmission devices.
  • Computer-readable media encoded with the software/program code may be packaged with a compatible device or provided separately from other devices (for example, via Internet download). Any such computer-readable medium may reside on or within a single computing device or an entire computer system and may be among other computer-readable media within a system or network.
  • a computer system, or other computing device may include a monitor, printer, or other suitable display for providing any of the results mentioned herein to a user.

Abstract

Systems and methods are described for generating metrics from log data items, automatically interring one or more schemas based at least in part on analyzing samples of the log data items, validating samples of the log data items against the one or more schemas to detect log data item errors, and analyzing the log data item errors according to metrics analytics rules to determine an effect of the log data item errors on a quality measurement of the metrics.

Description

    TECHNICAL FIELD
  • One or more implementations relate to performance measurement and monitoring in cloud computing environments, and more specifically, to schema inference and log data validation in a cloud computing system.
  • BACKGROUND
  • “Cloud computing” services provide shared resources, software, and information to computers and other devices upon request or on demand. Cloud computing typically involves the over-the-Internet provision of dynamically scalable and often virtualized resources. Technological details can be abstracted from end-users, who no longer have need for expertise in, or control over, the technology infrastructure “in the cloud” that supports them. In cloud computing environments, software applications can be accessible over the Internet rather than installed locally on personal or in-house computer systems. Some of the applications or on-demand services provided to end-users can include the ability for a user to create, view, modify, store and share documents and other files.
  • One technique used to improve cloud computing services is to generate performance measurements called metrics that represent user engagements and service performance. Metrics are typically computed from one or more events stored in a log for each user interface interaction or performance measurement. In some systems, log data is represented as “free form” text as a collection of key-value pairs. Developers of applications (being run in the cloud computing system) generating the log data typically have the flexibility to log any attributes regarding user interface interactions or performance measurements, without being restricted to a fixed set of attributes with a defined format. This flexibility of using key-value pairs to describe event attributes is convenient for the developers of those logs. However, this lack of consistent formatting of events in logs creates problems for downstream applications and system monitoring tools that need to consume those events.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The included drawings are for illustrative purposes and serve to provide examples of possible structures and operations for the disclosed inventive systems, apparatus, methods, and computer-readable storage media. These drawings in no way limit any changes in form and detail that may be made by one skilled in the art without departing from the spirit and scope of the disclosed implementations.
  • FIG. 1 illustrates an example computing environment according to some embodiments.
  • FIG. 2 is a diagram of an example schema inference and log data validation system according to some embodiments.
  • FIG. 3 is a diagram of a schema inference system according to some embodiments.
  • FIG. 4 is a diagram of a log data validation system according to some embodiments.
  • FIG. 5 is a diagram of a metrics analytics tool according to some embodiments.
  • FIG. 6 is a flow diagram of schema inference and log data validation processing according to some embodiments.
  • FIG. 7A is a block diagram illustrating an electronic device according to some example implementations.
  • FIG. 7B is a block diagram of a deployment environment according to some example implementations.
  • DETAILED DESCRIPTION
  • Embodiments of the present invention comprise a method and apparatus to generate metrics measuring performance of user interface (UI) interactions of a computing system from log data items recording performance of the UI interactions, automatically infer one or more schemas based at least in part on analyzing samples of log data items, validate samples of log data items against the schemas to detect log data errors, and analyze the log data errors according to metrics analytics rules to determine the effect of log data errors on a quality measurement of the metrics.
  • FIG. 1 illustrates an example computing environment 100 according to some embodiments. At least one production data center (PDC) 104 in a cloud computing environment comprises a plurality of conventional computer servers, storage devices, and network interfaces (not shown) to run computer applications for users. Users interact with user devices 102 to access the applications running in the PDC over one or more computer or communications networks. Examples of user devices include laptop and desktop personal computers, smart phones, tablet computers, personal digital assistants (PDAs), smart home appliances, home networking equipment, and so on. PDC 104 runs a plurality of applications 1 106, 2 108, . . . N 110, where N is a natural number. In some situations, N may be very large—millions or even tens of millions of instances of applications being accessed by millions or tens of millions of users worldwide. In some scenarios, PDC 104 is operated by a cloud service provider (CSP) and comprises a plurality of production data centers distributed in sites throughout the world. In one embodiment, at least one application is a search service. In some embodiments, there are multiple PDCs.
  • In order to measure the performance of applications 106, 108, . . . 110, data is collected from the applications. In one embodiment, applications 106, 108, . . . 110 are instrumented by application developers to provide log data items 112. Log data items 112 comprise any information relating to the applications that can be measured to assess system performance of PDC 104 and/or the applications. For example, when an application, such as application 2 108 for example, is a search application, log data items 112 may include user typing actions (the user entering text using a physical or virtual keyboard, for example), mouse selections (e.g., clicks), mouse hovers, search terms, hyperlink selections (clicks), etc. Each log data item 112 may include a plurality of fields such as log type, attributes, time stamp, etc. In some embodiments, the format of each log data item is a “free form” text as determined by the developer of the application generating the log data item. In some embodiments, there is no universal format of the log data items, and thus they may be in any format. There may be any number of log data items 112 generated by applications over a selected period of time. In some scenarios, the number of log data items generated may be extremely large, perhaps in the millions, tens of millions, hundreds of millions, or even billions of log data items in a plurality of PDCs over a selected period of time (which may be a minute, an hour, a day, a week, a month, a quarter, a year, etc.).
  • As log data items 112 are generated by the applications, the log data items are inserted into at least one PDC log data queue 114. In one embodiment, the at least one PDC log data queue 114 is implemented as a Kafka® message queue available from the Apache® Software Foundation on the Internet at kafka.apache.org, although other message queues may also be used. Apache® Kafka® is an open-source stream-processing software platform developed by the Apache® Software Foundation, written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds.
  • At least one non-production data center (NPDC) 116 communicates with PDC 104 to read log data items 112 from the at least one PDC log data queue 114. Log data items 112 obtained from the at least one PDC log data queue 114 of PDC 104 are stored in NPDC log data queue 118 in NPDC 116. In one embodiment, NPDC log data queue 118 is also a Kafka® message queue, although other message queues may also be used. In an embodiment, NPDC 116 is situated at a different location than the at least one PDC 104. In another embodiment, NPDC 116 is situated at the same location as at least one of the PDCs 104. In an embodiment, NPDC 116 does not run applications for access by user devices 102, but instead runs applications and/or tools for research and development activities, data center monitoring activities, and so on.
  • Performance metrics generator 120 reads log data items from NPDC log data queue 118 and generates metrics 122 representing measurements of the performance of applications by PDC 104. Metrics 122 may be input to metrics analytics 124. Metrics analytics 124 uses metrics 122 to present information to systems administrators of NPDC 116 and/or PDC 104 to allow the systems administrators to manage PDC 104 to provide better service to user devices 102. In an embodiment, metrics analytics 124 includes a visual dashboard capability representing current operating attributes of PDC 104. In an embodiment, metrics analytics 124 includes machine learning (ML) processes to analyze metrics 122 to improve cloud computing services to user devices 102. In an embodiment, metrics analytics 124 automatically communicates with PDC 104 to instruct the PDC to change one or more operating characteristics of the PDC based on metrics 122. In some embodiments, metrics analytics 124 is replaced by any program for analyzing and/or interpreting metrics 122.
  • In one embodiment, each UI interaction event or performance event is represented as a JavaScript object notation (JSON) object containing a collection of key-value pairs. There is no schema defined for the JSON objects, so the applications 106, 108, . . . 110 executing in PDC 104 of the cloud computing environment that are generating the log data items have the flexibility to log any attributes in “free form” text (e.g., a list of text strings separated by commas) without being restricted to a fixed set of attributes.
  • This flexibility of using key-value pairs to describe event attributes in log data items is convenient for the producers of those logs (e.g., those applications being assessed such as application 1 106, application 2 108, . . . application N 110). However, this flexibility creates problems for downstream applications that need to consume those event attributes, such as performance analysis applications (e.g., metrics analytics 124).
  • In some embodiments, performance metrics generator 120 system generates metrics 122 based on UI interactions and performance events logged by applications. Changes, intentional or not, in the instrumentation such as attribute structure changes or unexpected attribute values can have a negative impact on the quality of the metrics 122 used to monitor and update the cloud computing environment. Many times those changes go unnoticed until a later time, because those changes don't often lead to “hard” failures (like exceptions or causing a visible failure to an application program (such as application 1 106, application 2 108, . . . application N 110) being used by the user, which would prompt the user to generate a case or file a bug), but instead lead to “soft” failures, such as the gradual degradation of metrics, often masked, at least initially, by the normal variability in metrics tracked in PDC(s) 104 of the cloud computing environment.
  • For example, assume a system administrator of the cloud computing environment wants to assess how relevant are the search results generated by a search service by using a click-through rate (CTR) metric on a search results page. In one example, the formula for a Search Results Page CTR is calculated as equal to: (#of user clicks on the Search Results page)/(#of Search Results Pages shown to the user).
  • An example click event logged for each user click on the Search Results page is shown in Table 1. In one embodiment, for a click event to be counted in the Search Results page CTR for performance measurement purposes, the metrics calculation requires that “attributes.sessionId” is non-null.
  • TABLE 1
    “payload”: {
     “eventSource”: “click”,
     “eventType”: “user”,
     “locator”: “searchResultPage”,
     “attributes: {
      “sessionId”: “123456”,
      “clickSource”:“SearchResult”,
      “recordId”: “ka0Rqwert”,
      “queryId”: “1tmowa4qw8i5y”
    }
    }
  • Now let's assume there has been a change made to the event logging code in one of the applications 106, 108, . . . 110; for example, a new map “searchActivity” containing “sessionId” was introduced in the click event as shown in Table 2. Assume that the change has not been communicated to system administrators operating performance metrics generator 120 in NPDC 116.
  • TABLE 2
    ″payload″: {
     ″eventSource″: ″click″,
     ″eventType″: ″user″,
     ″locator″: ″searchResultPage″,
     ″attributes: {
      “searchActivity”: {
      ″sessionId″: ″123456″,
      }
      ″clickSource″:″SearchResult″.
      ″recordId″: ″ka0Rqwert″,
      ″queryId″: ″1tmowa4qw8i5y″
    }
    }
  • Since performance metrics generator 120 is not aware of the changes, all such click events would be left out of the metrics 122 calculation after the changes were deployed to production in PDC 104. This results in erroneous and misleading metrics 122.
  • Changes in event formats may cause other problems. Even once an event format change is identified, troubleshooting the root cause of metrics issues becomes more difficult, since there can be various scenarios where clicks could be missing, for example, a bug in the UI could be preventing clicks from being registered, preventing clicks from being logged, the events could be queued up in PDC log data queue 114, etc. In addition, in cases where multiple kinds of clicks are being tracked, in different UI experiences, it is possible that the application developer may not have changed the event format for the logged click in all possible instances in the application, so instead of logging no clicks, perhaps only a portion of clicks are unlogged. Even in cases when a change in metrics 122 results from a change in event format, determining which specific field changed in log data feeding into a metric 122 can be difficult and time-consuming (e.g., the change could result in a drop in the numerator of a metric, or the denominator of a metric, or both).
  • Embodiments of the invention detect unexpected errors in semi-structured log data items 112 and analyze the impact of those errors by tying the errors directly to the quality of metrics 122 using a rule-based system. One goal is to have an objective way to evaluate the quality of generated metrics on a periodic basis by examining the information gaps in logged events between the producer (e.g., the developer of applications 106, 108, . . . 110) and consumer (e.g., metrics analytics 124 in NPDC 116) of semi-structured log data items.
  • FIG. 2 is a diagram of an example schema inference and log data validation system 200 according to some embodiments. Performance metrics generator 120 generates metrics 122 based at least in part on log data items 112 retrieved from NPDC log data queue 118. Performance metrics generator 120 reads log data items 112 from NPDC log data queue 118, analyzes the log data items by an events generator (not shown in FIG. 2) within performance metrics generator 120 using event definitions to generate events stored in an events table and dimensions stored in a dimensions table, and analyzes the events and dimensions using metrics definitions by a metrics generator (not shown in FIG. 2) within performance metrics generator 120 to generate metrics 122. In one embodiment, performance metrics generator 120 parses log data items to find events in the log data items, wherein an event comprises at least a portion of a selected log data item matching an event definition; aggregates a plurality of performance metric definitions into a single expression; and generates a plurality of performance metrics 122 from the events, in one pass through the events, by applying the single expression to the events.
  • Schema inference system 202 reads log data items 112 from NPDC log data queue 118 and automatically infers one or more schemas based at least in part on analysis of the semi-structured log data items. As used herein, a schema defines the field names and data types for a dataset (e.g., log data items 112). Inferred schemas are stored in schema database (DB) 204. Log data validation system 206 reads log data items 112 from NPDC log data queue 118 and compares the log data items to inferred schemas from schema DB 204 to identify any log data item errors. Log data item errors are stored in log data validation DB 208. Metrics analytics 124 analyzes log data item errors from log data validation DB 208 with respect to metrics 122 generated by performance metrics generator 120 to determine an effect, if any, of the log data item errors on a quality measurement of metrics 122. Metrics analytics 124 generates a plurality of alerts and reports 210 as needed. Metrics analytics 124 also stores metrics 122 and/or selected log data validation DB information into time series DB 212 for possible further trend analysis. If the quality measurement does not meet a predetermined threshold, an alert (as part of alerts and reports 210) may be sent to a system administrator of NPDC 116 and/or PDC 104.
  • FIG. 3 is a diagram of schema inference system 202 according to some embodiments. In embodiments, one or more schemas 308 are automatically inferred for all log data items 112 that contribute to metrics generation. In an embodiment, schema inferencing may be performed every time a new release of one or more applications 106, 108, . . . 110 is deployed into production in PDC 104 for access by user devices 102, because changes in applications may result in changes to the format of log data items produced by those applications. Examples of log data items 112 include click events on a Search Results page and impression events of a Search Results page. Applications 106, 108, . . . 110 may output log data items 112 in several different formats, such as JavaScript object notation (JSON), Extensible Markup Language (XML), yet another markup language (YAML), key-value pairs, or comma separated values (CSV). In one embodiment, log data items 112 are in a semi-structured JSON format and schema inferencer 306 is implemented using an existing library called Apache® Kite software development kit (SDK) (available on the Internet at kitesdk.org) to generate one or more schemas 308 from the semi-structured JSON objects. Kite parses the log data items in the semi-structured format, determines data types of attributes, determines the structure of the data types, and produces one or more schemas 308 reflecting a format of the data types. In other embodiments, other methods of schema inferencing may be used.
  • Schemas 308 automatically inferred by schema inferencer 306 need to be vetted and approved by a reviewer 210 before storing the schemas in schema DB 204. Reviewer 210 is a person, such as a system administrator of PDC 104 or NPDC 116. Reviewer 210 may in some cases edit the schemas 308 to correct the schemas to more accurately reflect desired formats of the log data items. In some scenarios, there may be many schemas 308 (e.g., hundreds, thousands, or even tens of thousands of schemas in large cloud computing environments having many applications running in many PDCs 104).
  • In some embodiments, schema inference system 202 includes log data sample collector 302. For a given release of an application, log data sample collector 302 obtains samples 304 of log data items 112 from production logs generated by the applications running in PDC 104. Only samples 304 of log data items 112 are needed to infer schemas, rather than entire logs (which may be too large to efficiently infer schemas). In one embodiment, Spunk® Enterprise software for searching, monitoring and analyzing big data streams, commercially available from Splunk®, Inc., is used to obtain log data samples 304 from log data items 112. In other embodiments, log data samples may be collected from other sources, such as Apache® Kafka® (an open-source stream processing platform available on the Internet at kafka.apache.org), files downloaded by file transfer protocol (ftp), a Hadoop® File System (HDFS) connector if the data source is on a HDFS, etc.
  • As noted above, log data samples are semi-structured and may be changed for a given release of an application.
  • An example of a log data sample 304 is shown below:
  • {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
    {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
    {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
  • In one embodiment, schema 308 is an Avro™ schema file. Avro™ is a row-oriented remote procedure call and data serialization framework developed by the Apache® Software Foundation within Apache's Hadoop® project (available on the Internet at avro.apache.org). Avro™ uses JSON for defining data types and protocols and serializes data in a compact binary data encoding format. In another embodiment, schema 308 is in an XML scheme definition (XSD) format.
  • An example of a schema 308 is shown below.
  • {
     type”: “record”,
     “name”: “payload”,
     “fields”: [ {
     “name”: “eventSource”,
     “type”: “string”,
     “doc”: “Type inferred from ‘\“click\”’”
     }, {
      “name”: “eventType”,
      “type”: “string”,
      “doc”: “Type inferred from ‘\“user\”’”
     }, {
      “name”: “locator”,
      type”: “string”,
      “doc”: “Type inferred from ‘\“searchResultPage\”’”
     }, {
      “name”: “attributes”,
      “type”: {
      “type”: “record”,
      “name”: “attributes”,
      “fields”: [ {
       “name”: “clickSource”,
       “type”: “string”,
       “doc”: “Type inferred from ‘\“SearchResult\”’”
      }, {
       “name”: “sessionId”,
       “type”: “string”,
       “doc”: “Type inferred from ‘\“bda6d746-5192-e893\”’”
      }, {
       “name”: “queryId”,
       “type”: “string”,
       “doc”: “Type inferred from ‘\“5y5t1zrz\”’”
      }, {
       “name”: “recordId”,
       “type”: “string”,
       “doc”: “Type inferred from ‘\“5000M0000\”’”
      }]
     }
     }]
    }
  • FIG. 4 is a diagram of log data validation system 206 according to some embodiments. In one embodiment, log data validation system 206 is run on a periodic basis (for example, daily, every other day, weekly, monthly, and so on) or on demand by a system administrator. Log data samples 404 are collected by log data sample collector 402 from log data items 112 in NPDC log data queue 118. Only samples 404 of log data items are needed to detect log data item errors, rather than entire logs (which may be too large to efficiently process). Log data samples 404 are validated against corresponding schemas 308 from schema DB 204 by log data validator 406. A validation summary of any detected errors is created for each run and stored in log data validation DB 208.
  • In one embodiment, Spunk® Enterprise software for searching, monitoring and analyzing big data streams, commercially available from Splunk®, Inc., is used to obtain log data samples 404 from log data items 112. In other embodiments, log data samples may be collected from other sources, such as Apache® Kafka® (an open-source stream processing platform available on the Internet at kafka.apache.org), files downloaded by file transfer protocol (ftp), a Hadoop® File System (HDFS) connector if the data source is on a HDFS, etc.
  • As noted above, log data samples 404 are semi-structured and may be changed for a given release of an application.
  • An example of a log data sample 404 is shown below:
  • {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
    {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
    {“eventSource”: “click”, “eventType”: “user”, “locator”: “searchResultPage”, “attribute”}
  • Log data validator 406 validates a collection of log data samples 404 against a corresponding schema 308 from schema DB 204. What should be validated depends on the specifics of the format in which the log data items are outputted, and inferred schema 308. It also depends on a specific use case. For example, the significance of the field order might play an important role in how a log data item is interpreted. In one embodiment, the types of errors log data validator 406 reports include: missing required fields, fields with unexpected data types, and fields with unexpected values. In one embodiment, log data validator 406 is implemented using open-source software Avro™ Schema Validator available on the Internet at www*npmjs*com*package*avro-schema-validator (with “.” and “/” being replaced by “*” to deactivate live links). In other embodiments, other schema validators may be used. The output of log data validator 406 includes time series metrics, a validation summary and all log data item errors found during the validation process, all of which are stored in log data validation DB 208. The time series metrics may include a count of each type of error. In one embodiment, the validation summary includes a total number of log data items processed, a total number of valid log data items, a violation map comprising a summary of each type of log data item error found from the schema comparison and the number of log data items that have the specific error. In one embodiment, the violation map is a mapping from (field, type of error, schema version, log type) to the number of errors found.
  • An example of a violation map stored in log data validation DB 208 is below.
  • [errorType=missing_value, field=attributes.sessionId,
    schema=rel_10_search_results_click.avsc, logType=searchui] −> 105
    [errorType=missing_value, field=attributes.recordId,
    schema=rel_10_search_results_click.avsc, logType=searchui] −> 28
    [errorType=wrong_datatype, field=attributes.recordId,
    schema=rel_10_search_results_click.avsc, logType=searchui] −> 5
  • An example of a list of log data item errors stored in log data validation DB 208 is below.
  • {“errorCategory”: {“errorType”: “missing_value”, “field”: “attributes. sessionId”, “schema”:
    {“errorCategory”: {“errorType”: “wrong_datatype”, “field”: “attributes.recordId”, “schema”: . . .
  • FIG. 5 is a diagram of metrics analytics 124 according to some embodiments. Given a set of metrics analytics rules 502, log error and metrics quality analyzer 504 of metrics analytics 124 examines each type of log data item error in log data validation DB 208 reported by log data validator 406 and analyzes the impact of the log data item errors on metrics 122 produced by performance metrics generator 120. The analysis may trigger alerts in alerts and reports 210 to be emailed to a system administrator if the errors cause an impact to a quality measurement of one or more metrics 122 such that the quality measurement fails to meet a predetermined threshold. One type of log data item error may have an impact on multiple metrics, with varying degrees of impact.
  • Time series metrics generated by log data validator 406 are uploaded to time series DB 212 for trend analysis. In one embodiment, an open source time series monitoring and alerting platform called Argus (available on the Internet at openargus.org) is used as time series DB 212.
  • An example of a metrics analytics rule is when a number of log data item errors in log data items used by a metric 122 is more than 5% of the log data items used, then send an alert.
  • In an example, assume an event is being processed, such as a search_initiation_event as follows:
  •  {
     “event”: “search_initiation_event”,
     “platform”: “LEX”,
     “selectors”: {
     “appName”: “one:one”,
     “payload_eventSource”: “synthetic-click”,
     “payload_locator_scope”: “search-input-desktop”,
     “payload_locator_target”: “search-input”
     },
     “not_null_fields”: [“payload_attributes_searchDialogSessionId”],
     “null_fields”: [ ]
    }

    For this event, the number of times the payload_attributes_searchDialogSessionId is null may be tracked. For example, if a current error rate is approximately 4%, the following metrics are examples of metrics that may use the search_initiation_event: val and oer. The metric may be:
  • Metric
    = {
     new Metric(
     “OER”,
     Seq(“LEX”, “ES”),
     castAndSum(col(“ta_clk”) ∥ col(“ta_preview_clk”) ∥ col(“mru_clk”) ∥
     col(“mru_preview_clk”) ∥ col(“lv_clk”) ∥ col(“lv_preview_clk”) ∥
     col(“cq_clk”) ∥ col(“rr_clk”) ∥ col(“search_result_clk”)),
     castAndSum(col(“search_initiation_event”))
     )
     }
    val
    mruCoverage:
    Metric = {
      new Metric(
      “MRU_IR_Coverage”,
      Seq(“LEX”, “ES”),
      castAndSum(when(col(“mru_imp”) > 0, 1).otherwise(0)),
      castAndSum(col(“search_initiation_event”))
      )
      }
    val
    querySuggestionCoverage:
    Metric = {
        new Metric(
        “Query_Suggestion_IR_Coverage”,
        Seq(“ES”),
        castAndSum(when(col(“qs_imp”) > 0, 1).otherwise(0)),
        castAndSum(col(“search_initiation_event”))
        )
        }
    val
    deflectionClickRate:
    Metric = {
       new Metric(
       “Deflection_Rate”,
       Seq(“LEX”, “ES”),
       castAndSum(col(“ta_clk”) ∥ col(“ta_preview_clk”) ∥
       col(“mru_clk”) ∥ col(“mru_preview_clk”) ∥
       col(“lv_clk”) ∥ col(“lv_preview_clk”)),
       castAndSum(col(“search_initiation_event”))
       )
       }
  • If there are problems with the search_intiation_event (for example, because the payload_attributes_searchDialogSessionId is null), then that means there is a problem with all metrics that use this event.
  • In one embodiment, the search_intiation_event is a denominator in all metrics that use this event. For example, for the deflectionClickRate metric:
  • numerator: castAndSum(col(“ta_clk”)∥col(“ta_preview_clk”)∥col(“mru_clk”)∥col(“mru_preview_clk”)∥col(“lv_clk”)∥col(“lv_preview_clk”)),
  • denominator: castAndSum(col(“search_initiation_event”)) or more simply: deflection_rate=numerator/denominator.
  • A 4% loss on those events means the metric computed based on those events will overestimate by 4%. If, in addition to problems with search_initiation_event, there are problems with the event mru_clk, perhaps causing a loss of 9% of those events, then the (adjusted) metric computed should be:
  • deflection_rate = ( ta_clk + ta_preview _clk + 1.09 * mru_clk + mru_preview _clk + lv_clk + _lv _preview _clk ) / ( search_initiation _event * 1.04 )
  • In an embodiment, a forecasting component may provide forecast estimates, in one example, for the events:
  • ta_clk, ta_preview_clk, mru_clk, mru_preview_clk, lv_clk, lv_preview_clk and search_initiation_event
    This would then allow a forecasted metric to be computed, as well as the expected compute metric based on sample errors: ta_clk,=30, ta_preview_clk,=4, mru_clk,=20, mru_preview_clk,=4, lv_clk,=3, lv_preview_clk=1, search_initiation_event=100.
  • forecast = ( 3 0 + 4 + 2 0 + 4 + 3 + 1 ) / 1 0 0 = 0 . 6 2 actual = ( 3 0 + 4 * 0 . 9 1 + 2 0 + 4 + 3 + 1 ) / 1 0 0 * 0 . 9 6 = 0 . 5 9
  • A rule for deflection_rate in one example is:
  • if abs(forecast-actual)>0.25 then alert
  • Thus, in this case, an alert would be generated.
  • An example illustrating a log data item error for an event called
  • “search_results_page_click” to an example metric is shown below.
  • Example Metric: Search Results Page CTR
  • Numerator: #of search_results_page_click events
    Denominator: #of search_results_page_impression events
  • In one example, the following selectors are used to filter an event such as
  • “search_results_page_click” from all log data items.
    “eventSource”: “click”
    “eventType”: “user”
    “locator”: “searchResultPage”
    “attributes.sessionId” is not null
  • In one example, the following selectors are used to filter an event such as
  • “search_results_page_impression” from all log data items.
    “eventSource”: “refresh”
    “eventType”: “user”
    “locator”: “searchResultPage”
    “attributes.sessionId” is not null
  • For example, assume a bug was introduced in a patch release for application 2 108. The bug may be, for example, that the logging code left out “attributes.sessionId” when logging the search_results_page_click log data item. Log data validation system 206 would report errors for “missing required field” for “attributes.sessionId” in the search_results_page_click event for PDCs 104 that have the patch release. In this example, having fewer search_results_page_click events would decrease the Search Results Page CTR metric.
  • In one embodiment, if metrics 122 have been produced by performance metrics generator 120 for a given time period (such as a day), metrics analytics 124 may be able to estimate a more realistic CTR. Metrics analytics 124 knows which events are affected by log data item errors from the event definitions in performance metrics generator 120. Metrics analytics 124 knows which metrics are impacted and how they are impacted by the affected events from the metrics definitions in performance metrics generator 120 (e.g., the type of event is counted in the numerator and/or the denominator of a metric). Metrics analytics 124 can estimate the number of search_results_page_click events that should be computed based on the percentage of errors being seen for that type of event from the output of log data validation system 206. Metrics analytics 124 can then estimate the actual CTR.
  • If metrics 122 have not been produced by performance metrics generator 120 for that time period (e.g., that day), metric analytics 124 may forecast what metrics the performance metrics generator might produce. Metrics analytics 124 can estimate the expected and actual (metric calculated without logging errors) Search Results Page CTR based on forecasts and the percentage of errors being seen for that type of event from the output of log data validation system 202. Log error and metrics quality analyzer 504 sends out alerts if the difference between an expected and actual metric is above a threshold specified in metrics analytics rules 502.
  • FIG. 6 is a flow diagram 600 of schema inference and log data validation processing according to some embodiments. At block 602, performance metrics generator generates metrics from log data items. The log data items are generated by applications running in a computing system. At block 604, schema inference system 202 automatically infers schemas from samples of the log data items. At block 606, log data validation system 206 validates samples of the log data items against the schemas to detect log data item errors. At block 608, metrics analytics analyzes the log data item errors according to metrics analytics rules to determine the effect of the log data item errors on a quality measurement of the metrics.
  • Example Electronic Devices and Environments. One or more parts of the above implementations may include software. Software is a general term whose meaning can range from part of the code and/or metadata of a single computer program to the entirety of multiple programs. A computer program (also referred to as a program) comprises code and optionally data. Code (sometimes referred to as computer program code or program code) comprises software instructions (also referred to as instructions). Instructions may be executed by hardware to perform operations. Executing software includes executing code, which includes executing instructions. The execution of a program to perform a task involves executing some or all the instructions in that program.
  • An electronic device (also referred to as a device, computing device, computer, computer server, cloud computing server, etc.) includes hardware and software. For example, an electronic device may include a set of one or more processors coupled to one or more machine-readable storage media (e.g., non-volatile memory such as magnetic disks, optical disks, read only memory (ROM), Flash memory, phase change memory, solid state drives (SSDs)) to store code and optionally data. For instance, an electronic device may include non-volatile memory (with slower read/write times) and volatile memory (e.g., dynamic random-access memory (DRAM), static random-access memory (SRAM)). Non-volatile memory persists code/data even when the electronic device is turned off or when power is otherwise removed, and the electronic device copies that part of the code that is to be executed by the set of processors of that electronic device from the non-volatile memory into the volatile memory of that electronic device during operation because volatile memory typically has faster read/write times. As another example, an electronic device may include a non-volatile memory (e.g., phase change memory) that persists code/data when the electronic device has power removed, and that has sufficiently fast read/write times such that, rather than copying the part of the code to be executed into volatile memory, the code/data may be provided directly to the set of processors (e.g., loaded into a cache of the set of processors). In other words, this non-volatile memory operates as both long term storage and main memory, and thus the electronic device may have no or only a small amount of volatile memory for main memory.
  • In addition to storing code and/or data on machine-readable storage media, typical electronic devices can transmit and/or receive code and/or data over one or more machine-readable transmission media (also called a carrier) (e.g., electrical, optical, radio, acoustical or other forms of propagated signals—such as carrier waves, and/or infrared signals). For instance, typical electronic devices also include a set of one or more physical network interface(s) to establish network connections (to transmit and/or receive code and/or data using propagated signals) with other electronic devices. Thus, an electronic device may store and transmit (internally and/or with other electronic devices over a network) code and/or data with one or more machine-readable media (also referred to as computer-readable media).
  • Software instructions (also referred to as instructions) are capable of causing (also referred to as operable to cause and configurable to cause) a set of processors to perform operations when the instructions are executed by the set of processors. The phrase “capable of causing” (and synonyms mentioned above) includes various scenarios (or combinations thereof), such as instructions that are always executed versus instructions that may be executed. For example, instructions may be executed: 1) only in certain situations when the larger program is executed (e.g., a condition is fulfilled in the larger program; an event occurs such as a software or hardware interrupt, user input (e.g., a keystroke, a mouse-click, a voice command); a message is published, etc.); or 2) when the instructions are called by another program or part thereof (whether or not executed in the same or a different process, thread, lightweight thread, etc.). These scenarios may or may not require that a larger program, of which the instructions are a part, be currently configured to use those instructions (e.g., may or may not require that a user enables a feature, the feature or instructions be unlocked or enabled, the larger program is configured using data and the program's inherent functionality, etc.). As shown by these exemplary scenarios, “capable of causing” (and synonyms mentioned above) does not require “causing” but the mere capability to cause. While the term “instructions” may be used to refer to the instructions that when executed cause the performance of the operations described herein, the term may or may not also refer to other instructions that a program may include. Thus, instructions, code, program, and software are capable of causing operations when executed, whether the operations are always performed or sometimes performed (e.g., in the scenarios described previously). The phrase “the instructions when executed” refers to at least the instructions that when executed cause the performance of the operations described herein but may or may not refer to the execution of the other instructions.
  • Electronic devices are designed for and/or used for a variety of purposes, and different terms may reflect those purposes (e.g., user devices, network devices). Some user devices are designed to mainly be operated as servers (sometimes referred to as server devices), while others are designed to mainly be operated as clients (sometimes referred to as client devices, client computing devices, client computers, or end user devices; examples of which include desktops, workstations, laptops, personal digital assistants, smartphones, wearables, augmented reality (AR) devices, virtual reality (VR) devices, mixed reality (MR) devices, etc.). The software executed to operate a user device (typically a server device) as a server may be referred to as server software or server code), while the software executed to operate a user device (typically a client device) as a client may be referred to as client software or client code. A server provides one or more services (also referred to as serves) to one or more clients.
  • The term “user” refers to an entity (e.g., an individual person) that uses an electronic device. Software and/or services may use credentials to distinguish different accounts associated with the same and/or different users. Users can have one or more roles, such as administrator, programmer/developer, and end user roles. As an administrator, a user typically uses electronic devices to administer them for other users, and thus an administrator often works directly and/or indirectly with server devices and client devices.
  • FIG. 7A is a block diagram illustrating an electronic device 700 according to some example implementations. FIG. 7A includes hardware 720 comprising a set of one or more processor(s) 722, a set of one or more network interfaces 724 (wireless and/or wired), and machine-readable media 726 having stored therein software 728 (which includes instructions executable by the set of one or more processor(s) 722). The machine-readable media 726 may include non-transitory and/or transitory machine-readable media. Each of the previously described clients and schema inference and log data validation system 200 may be implemented in one or more electronic devices 700. In one implementation: 1) each of the clients is implemented in a separate one of the electronic devices 700 (e.g., in end user devices where the software 728 represents the software to implement clients to interface directly and/or indirectly with the schema inference and log data validation system 200 (e.g., software 728 represents a web browser, a native client, a portal, a command-line interface, and/or an application programming interface (API) based upon protocols such as Simple Object Access Protocol (SOAP), Representational State Transfer (REST), etc.)); 2) the schema inference and log data validation system 200 is implemented in a separate set of one or more of the electronic devices 700 (e.g., a set of one or more server devices where the software 728 represents the software to implement the schema inference and log data validation system 200); and 3) in operation, the electronic devices implementing the clients and the schema inference and log data validation system 200 would be communicatively coupled (e.g., by a network) and would establish between them (or through one or more other layers and/or or other services) connections for submitting UI interactions log data to the schema inference and log data validation system 200 and returning alerts and reports 122, and time series DB 124 to the clients. Other configurations of electronic devices may be used in other implementations (e.g., an implementation in which the client and the schema inference and log data validation system 200 are implemented on a single one of electronic device 700).
  • During operation, an instance of the software 728 (illustrated as instance 706 and referred to as a software instance; and in the more specific case of an application, as an application instance) is executed. In electronic devices that use compute virtualization, the set of one or more processor(s) 722 typically execute software to instantiate a virtualization layer 708 and one or more software container(s) 704A-704R (e.g., with operating system-level virtualization, the virtualization layer 708 may represent a container engine (such as Docker Engine by Docker, Inc. or rkt in Container Linux by Red Hat, Inc.) running on top of (or integrated into) an operating system, and it allows for the creation of multiple software containers 704A-704R (representing separate user space instances and also called virtualization engines, virtual private servers, or jails) that may each be used to execute a set of one or more applications; with full virtualization, the virtualization layer 708 represents a hypervisor (sometimes referred to as a virtual machine monitor (VMM)) or a hypervisor executing on top of a host operating system, and the software containers 704A-704R each represent a tightly isolated form of a software container called a virtual machine that is run by the hypervisor and may include a guest operating system; with para-virtualization, an operating system and/or application running with a virtual machine may be aware of the presence of virtualization for optimization purposes). Again, in electronic devices where compute virtualization is used, during operation, an instance of the software 728 is executed within the software container 704A on the virtualization layer 708. In electronic devices where compute virtualization is not used, the instance 706 on top of a host operating system is executed on the “bare metal” electronic device 700. The instantiation of the instance 706, as well as the virtualization layer 708 and software containers 704A-704R if implemented, are collectively referred to as software instance(s) 702.
  • Alternative implementations of an electronic device may have numerous variations from that described above. For example, customized hardware and/or accelerators might also be used in an electronic device.
  • Example Environment. FIG. 7B is a block diagram of a deployment environment according to some example implementations. A system 740 includes hardware (e.g., a set of one or more server devices) and software to provide service(s) 742, including the schema inference and log data validation system 200. In some implementations, the system 740 is in one or more datacenter(s). These datacenter(s) may be: 1) first party datacenter(s), which are datacenter(s) owned and/or operated by the same entity that provides and/or operates some or all of the software that provides the service(s) 742; and/or 2) third-party datacenter(s), which are datacenter(s) owned and/or operated by one or more different entities than the entity that provides the service(s) 742 (e.g., the different entities may host some or all of the software provided and/or operated by the entity that provides the service(s) 742). For example, third-party datacenters may be owned and/or operated by entities providing public cloud services (e.g., Amazon.com, Inc. (Amazon Web Services), Google LLC (Google Cloud Platform), Microsoft Corporation (Azure)).
  • The system 740 is coupled to user devices 780A-780S over a network 782. The service(s) 742 may be on-demand services that are made available to one or more of the users 784A-784S working for one or more entities other than the entity which owns and/or operates the on-demand services (those users sometimes referred to as outside users) so that those entities need not be concerned with building and/or maintaining a system, but instead may make use of the service(s) 742 when needed (e.g., when needed by the users 784A-784S). The service(s) 742 may communicate with each other and/or with one or more of the user devices 780A-780S via one or more APIs (e.g., a REST API). In some implementations, the user devices 780A-780S are operated by users 784A-784S, and each may be operated as a client device and/or a server device. In some implementations, one or more of the user devices 780A-780S are separate ones of the electronic device 700 or include one or more features of the electronic device 700. In some embodiments, service(s) 742 includes schema inference and log data validation system 200.
  • In some implementations, the system 740 is a multi-tenant system (also known as a multi-tenant architecture). The term multi-tenant system refers to a system in which various elements of hardware and/or software of the system may be shared by one or more tenants. A multi-tenant system may be operated by a first entity (sometimes referred to a multi-tenant system provider, operator, or vendor; or simply a provider, operator, or vendor) that provides one or more services to the tenants (in which case the tenants are customers of the operator and sometimes referred to as operator customers). A tenant includes a group of users who share a common access with specific privileges. The tenants may be different entities (e.g., different companies, different departments/divisions of a company, and/or other types of entities), and some or all of these entities may be vendors that sell or otherwise provide products and/or services to their customers (sometimes referred to as tenant customers). A multi-tenant system may allow each tenant to input tenant specific data for user management, tenant-specific functionality, configuration, customizations, non-functional properties, associated applications, etc. A tenant may have one or more roles relative to a system and/or service. For example, in the context of a customer relationship management (CRM) system or service, a tenant may be a vendor using the CRM system or service to manage information the tenant has regarding one or more customers of the vendor. As another example, in the context of Data as a Service (DAAS), one set of tenants may be vendors providing data and another set of tenants may be customers of different ones or all the vendors' data. As another example, in the context of Platform as a Service (PAAS), one set of tenants may be third-party application developers providing applications/services and another set of tenants may be customers of different ones or all of the third-party application developers.
  • Multi-tenancy can be implemented in different ways. In some implementations, a multi-tenant architecture may include a single software instance (e.g., a single database instance) which is shared by multiple tenants; other implementations may include a single software instance (e.g., database instance) per tenant; yet other implementations may include a mixed model; e.g., a single software instance (e.g., an application instance) per tenant and another software instance (e.g., database instance) shared by multiple tenants.
  • In one implementation, the system 740 is a multi-tenant cloud computing architecture supporting multiple services, such as one or more of the following types of services: schema inference and event validation processing, Customer relationship management (CRM); Configure, price, quote (CPQ); Business process modeling (BPM); Customer support; Marketing; External data connectivity; Productivity; Database-as-a-Service; Data-as-a-Service (DAAS or DaaS); Platform-as-a-service (PAAS or PaaS); Infrastructure-as-a-Service (IAAS or IaaS) (e.g., virtual machines, servers, and/or storage); Analytics; Community; Internet-of-Things (IoT); Industry-specific; Artificial intelligence (AI); Application marketplace (“app store”); Data modeling; Security; and Identity and access management (IAM).
  • For example, system 740 may include an application platform 744 that enables PAAS for creating, managing, and executing one or more applications developed by the provider of the application platform 744, users accessing the system 740 via one or more of user devices 780A-780S, or third-party application developers accessing the system 740 via one or more of user devices 780A-780S.
  • In some implementations, one or more of the service(s) 742 may use one or more multi-tenant databases 746, as well as system data storage 750 for system data 752 accessible to system 740. In certain implementations, the system 740 includes a set of one or more servers that are running on server electronic devices and that are configured to handle requests for any authorized user associated with any tenant (there is no server affinity for a user and/or tenant to a specific server). The user devices 780A-780S communicate with the server(s) of system 740 to request and update tenant-level data and system-level data hosted by system 740, and in response the system 740 (e.g., one or more servers in system 740) automatically may generate one or more Structured Query Language (SQL) statements (e.g., one or more SQL queries) that are designed to access the desired information from the multi-tenant database(s) 746 and/or system data storage 750.
  • In some implementations, the service(s) 742 are implemented using virtual applications dynamically created at run time responsive to queries from the user devices 780A-780S and in accordance with metadata, including: 1) metadata that describes constructs (e.g., forms, reports, workflows, user access privileges, business logic) that are common to multiple tenants; and/or 2) metadata that is tenant specific and describes tenant specific constructs (e.g., tables, reports, dashboards, interfaces, etc.) and is stored in a multi-tenant database. To that end, the program code 760 may be a runtime engine that materializes application data from the metadata; that is, there is a clear separation of the compiled runtime engine (also known as the system kernel), tenant data, and the metadata, which makes it possible to independently update the system kernel and tenant-specific applications and schemas, with virtually no risk of one affecting the others. Further, in one implementation, the application platform 744 includes an application setup mechanism that supports application developers' creation and management of applications, which may be saved as metadata by save routines. Invocations to such applications, including the schema inference and log data validation system 200, may be coded using Procedural Language/Structured Object Query Language (PL/SOQL) that provides a programming language style interface. Invocations to applications may be detected by one or more system processes, which manages retrieving application metadata for the tenant making the invocation and executing the metadata as an application in a software container (e.g., a virtual machine).
  • Network 782 may be any one or any combination of a LAN (local area network), WAN (wide area network), telephone network, wireless network, point-to-point network, star network, token ring network, hub network, or other appropriate configuration. The network may comply with one or more network protocols, including an Institute of Electrical and Electronics Engineers (IEEE) protocol, a 3rd Generation Partnership Project (3GPP) protocol, a 4th generation wireless protocol (4G) (e.g., the Long Term Evolution (LTE) standard, LTE Advanced, LTE Advanced Pro), a fifth generation wireless protocol (5G), and/or similar wired and/or wireless protocols and may include one or more intermediary devices for routing data between the system 740 and the user devices 780A-780S.
  • Each user device 780A-780S (such as a desktop personal computer, workstation, laptop, Personal Digital Assistant (PDA), smartphone, smartwatch, wearable device, augmented reality (AR) device, virtual reality (VR) device, etc.) typically includes one or more user interface devices, such as a keyboard, a mouse, a trackball, a touch pad, a touch screen, a pen or the like, video or touch free user interfaces, for interacting with a graphical user interface (GUI) provided on a display (e.g., a monitor screen, a liquid crystal display (LCD), a head-up display, a head-mounted display, etc.) in conjunction with pages, forms, applications and other information provided by system 740. For example, the user interface device can be used to access data and applications hosted by system 740, and to perform searches on stored data, and otherwise allow one or more of users 784A-784S to interact with various GUI pages that may be presented to the one or more of users 784A-784S. User devices 780A-780S might communicate with system 740 using TCP/IP (Transfer Control Protocol and Internet Protocol) and, at a higher network level, use other networking protocols to communicate, such as Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), Andrew File System (AFS), Wireless Application Protocol (WAP), Network File System (NFS), an application program interface (API) based upon protocols such as Simple Object Access Protocol (SOAP), Representational State Transfer (REST), etc. In an example where HTTP is used, one or more user devices 780A-780S might include an HTTP client, commonly referred to as a “browser,” for sending and receiving HTTP messages to and from server(s) of system 740, thus allowing users 784A-784S of the user devices 780A-780S to access, process and view information, pages and applications available to it from system 740 over network 782.
  • Conclusion. In the above description, numerous specific details such as resource partitioning/sharing/duplication implementations, types and interrelationships of system components, and logic partitioning/integration choices are set forth in order to provide a more thorough understanding. The invention may be practiced without such specific details, however. In other instances, control structures, logic implementations, opcodes, means to specify operands, and full software instruction sequences have not been shown in detail since those of ordinary skill in the art, with the included descriptions, will be able to implement what is described without undue experimentation.
  • References in the specification to “one implementation,” “an implementation,” “an example implementation,” etc., indicate that the implementation described may include a particular feature, structure, or characteristic, but every implementation may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same implementation. Further, when a particular feature, structure, and/or characteristic is described in connection with an implementation, one skilled in the art would know to affect such feature, structure, and/or characteristic in connection with other implementations whether or not explicitly described.
  • For example, the figure(s) illustrating flow diagrams sometimes refer to the figure(s) illustrating block diagrams, and vice versa. Whether or not explicitly described, the alternative implementations discussed with reference to the figure(s) illustrating block diagrams also apply to the implementations discussed with reference to the figure(s) illustrating flow diagrams, and vice versa. At the same time, the scope of this description includes implementations, other than those discussed with reference to the block diagrams, for performing the flow diagrams, and vice versa.
  • Bracketed text and blocks with dashed borders (e.g., large dashes, small dashes, dot-dash, and dots) may be used herein to illustrate optional operations and/or structures that add additional features to some implementations. However, such notation should not be taken to mean that these are the only options or optional operations, and/or that blocks with solid borders are not optional in certain implementations.
  • The detailed description and claims may use the term “coupled,” along with its derivatives. “Coupled” is used to indicate that two or more elements, which may or may not be in direct physical or electrical contact with each other, co-operate or interact with each other.
  • While the flow diagrams in the figures show a particular order of operations performed by certain implementations, such order is exemplary and not limiting (e.g., alternative implementations may perform the operations in a different order, combine certain operations, perform certain operations in parallel, overlap performance of certain operations such that they are partially in parallel, etc.).
  • While the above description includes several example implementations, the invention is not limited to the implementations described and can be practiced with modification and alteration within the spirit and scope of the appended claims. The description is thus illustrative instead of limiting.
  • In the detailed description, references are made to the accompanying drawings, which form a part of the description and in which are shown, by way of illustration, specific implementations. Although these disclosed implementations are described in sufficient detail to enable one skilled in the art to practice the implementations, it is to be understood that these examples are not limiting, such that other implementations may be used and changes may be made to the disclosed implementations without departing from their spirit and scope. For example, the blocks of the methods shown and described herein are not necessarily performed in the order indicated in some other implementations. Additionally, in some other implementations, the disclosed methods may include more or fewer blocks than are described. As another example, some blocks described herein as separate blocks may be combined in some other implementations. Conversely, what may be described herein as a single block may be implemented in multiple blocks in some other implementations. Additionally, the conjunction “or” is intended herein in the inclusive sense where appropriate unless otherwise indicated; that is, the phrase “A, B, or C” is intended to include the possibilities of “A,” “B,” “C,” “A and B,” “B and C,” “A and C,” and “A, B, and C.”
  • The words “example” or “exemplary” are used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “example” or “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the words “example” or “exemplary” is intended to present concepts in a concrete fashion.
  • In addition, the articles “a” and “an” as used herein and in the appended claims should generally be construed to mean “one or more” unless specified otherwise or clear from context to be directed to a singular form. Reference throughout this specification to “an implementation,” “one implementation,” “some implementations,” or “certain implementations” indicates that a particular feature, structure, or characteristic described in connection with the implementation is included in at least one implementation. Thus, the appearances of the phrase “an implementation,” “one implementation,” “some implementations,” or “certain implementations” in various locations throughout this specification are not necessarily all referring to the same implementation.
  • Some portions of the detailed description may be presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the manner used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is herein, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, or otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
  • It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as “receiving,” “retrieving,” “transmitting,” “computing,” “generating,” “adding,” “subtracting,” “multiplying,” “dividing,” “optimizing,” “calibrating,” “detecting,” “performing,” “analyzing,” “determining,” “enabling,” “identifying,” “modifying,” “transforming,” “applying,” “aggregating,” “extracting,” “registering,” “querying,” “populating,” “hydrating,” “updating,” or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (e.g., electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission, or display devices.
  • It should also be understood that some of the disclosed implementations can be embodied in the form of various types of hardware, software, firmware, or combinations thereof, including in the form of control logic, and using such hardware or software in a modular or integrated manner. Other ways or methods are possible using hardware and a combination of hardware and software. Any of the software components or functions described in this application can be implemented as software code to be executed by one or more processors using any suitable computer language such as, for example, C, C++, Java™, or Python using, for example, existing or object-oriented techniques. The software code can be stored as non-transitory instructions on any type of tangible computer-readable storage medium (referred to herein as a “non-transitory computer-readable storage medium”). Examples of suitable media include random access memory (RAM), read-only memory (ROM), magnetic media such as a hard-drive or a floppy disk, or an optical medium such as a compact disc (CD) or digital versatile disc (DVD), flash memory, and the like, or any combination of such storage or transmission devices. Computer-readable media encoded with the software/program code may be packaged with a compatible device or provided separately from other devices (for example, via Internet download). Any such computer-readable medium may reside on or within a single computing device or an entire computer system and may be among other computer-readable media within a system or network. A computer system, or other computing device, may include a monitor, printer, or other suitable display for providing any of the results mentioned herein to a user.
  • In the foregoing description, numerous details are set forth. It will be apparent, however, to one of ordinary skill in the art having the benefit of this disclosure, that the present disclosure may be practiced without these specific details. While specific implementations have been described herein, it should be understood that they have been presented by way of example only, and not limitation. The breadth and scope of the present application should not be limited by any of the implementations described herein but should be defined only in accordance with the following and later-submitted claims and their equivalents. Indeed, other various implementations of and modifications to the present disclosure, in addition to those described herein, will be apparent to those of ordinary skill in the art from the foregoing description and accompanying drawings. Thus, such other implementations and modifications are intended to fall within the scope of the present disclosure.
  • Furthermore, although the present disclosure has been described herein in the context of a particular implementation in a particular environment for a particular purpose, those of ordinary skill in the art will recognize that its usefulness is not limited thereto and that the present disclosure may be beneficially implemented in any number of environments for any number of purposes. Accordingly, the claims set forth below should be construed in view of the full breadth and spirit of the present disclosure as described herein, along with the full scope of equivalents to which such claims are entitled.

Claims (20)

1. A computer-implemented method comprising:
generating metrics from log data items;
automatically inferring one or more schemas based at least in part on analyzing samples of the log data items;
validating the samples of the log data items against the one or more schemas to detect log data item errors; and
analyzing the log data item errors according to metrics analytics rules to determine an effect of the log data item errors on a quality measurement of the metrics.
2. The computer-implemented method of claim 1, wherein the log data items represent user interface (UI) interactions by a user of an application program running on a production computing system and the metrics measure performance of the UI interactions by the production computing system.
3. The computer-implemented method of claim 2, comprising automatically inferring the one or more schemas when a new release of the application program is deployed to the production computing system.
4. The computer-implemented method of claim 1, wherein the generating the metrics, automatically inferring the one or more schemas, validating the samples of the log data items, and analyzing the log data item errors are performed on a non-production computing system.
5. The computer-implemented method of claim 1, wherein the log data items comprise semi-structured JavaScript object notation (JSON) objects containing collections of key-value pairs.
6. The computer-implemented method of claim 1, comprising validating the samples of the log data items against the one or more schemas to detect the log data item errors on a periodic basis.
7. The computer-implemented method of claim 1, comprising generating a violation map summarizing each type of log data item error and a number of the log data items having the type of log data item error.
8. The computer-implemented method of claim 1, comprising sending an alert when the effect of the log data item errors on the quality measurement of the metrics causes the quality measurement to fail to meet a predetermined threshold.
9. An apparatus comprising:
a performance metrics generator to generate metrics from log data items;
a schema inferencer to automatically infer one or more schemas based at least in part on analyzing samples of the log data items; and
a log data validator to validating the samples of the log data items against the one or more schemas to detect log data item errors.
10. The apparatus of claim 9, comprising validating samples of the log data items against throne or more schemas to detect log data item errors on a periodic basis.
11. The apparatus of claim 9, wherein the log data items comprise semi-structured JavaScript object notation (JSON) objects containing collections of key-value pairs.
12. The apparatus of claim 9, wherein the log data items represent user interface (UI) interactions by a user of an application program running on a production computing system and the metrics measure performance of the UI interactions by the production computing system
13. The apparatus of claim 12, comprising the schema inferencer to automatically inter the one or more schemas when a new release of the application program is deployed to the production computing system.
14. The apparatus of claim 9, comprising:
a metrics analyzer to analyze the log data item errors according to metrics analytics rules to determine an effect of the log data item errors on a quality measurement of the metrics.
15. The apparatus of claim 14, comprising the metrics analyzer to generate a violation map summarizing each type of log data item error and a number of the log data items having the type of log data item error.
16. The apparatus of claim 14, comprising the metrics analyzer to send an alert when the effect of the tog data item errors on the quality measurement of the metrics causes the quality measurement to fail to meet a predetermined threshold.
17. A non-transitory machine-readable storage medium that provides instructions that, if executed by one or more processors, are configurable to cause the one or more processors to perform operations comprising:
generating metrics from log data items;
automatically inferring one or more schemas based at least in part on analyzing samples of the log data items;
validating the samples of the log data items against the one or more schemas to detect log data item errors; and
analyzing the log data item errors according to metrics analytics rules to determine an effect of the log data item errors on a quality measurement of the metrics.
18. The non-transitory machine-readable storage medium of claim 17, wherein the log data items represent user interface (UI) interactions by a user of an application program running on a production computing system and the metrics measure performance of the UI interactions by the production computing system.
19. The non-transitory machine-readable storage medium of claim 18, comprising instructions to automatically infer the one or more schemas when a new release of the application program is deployed to the production computing system.
20. The non-transitory machine-readable storage medium of claim 17, wherein instructions to generate the metrics, automatically infer the one or more schemas, and validate the samples of the log data items are performed on a non-production computing system.
US17/155,670 2021-01-22 2021-01-22 Schema inference and log data validation system Active US11449409B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/155,670 US11449409B2 (en) 2021-01-22 2021-01-22 Schema inference and log data validation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US17/155,670 US11449409B2 (en) 2021-01-22 2021-01-22 Schema inference and log data validation system

Publications (2)

Publication Number Publication Date
US20220237101A1 true US20220237101A1 (en) 2022-07-28
US11449409B2 US11449409B2 (en) 2022-09-20

Family

ID=82495791

Family Applications (1)

Application Number Title Priority Date Filing Date
US17/155,670 Active US11449409B2 (en) 2021-01-22 2021-01-22 Schema inference and log data validation system

Country Status (1)

Country Link
US (1) US11449409B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220237096A1 (en) * 2021-01-22 2022-07-28 Salesforce.Com, Inc. Generating Performance Metrics from Events Derived from User Interface Logs

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9697316B1 (en) * 2011-12-13 2017-07-04 Amazon Technologies, Inc. System and method for efficient data aggregation with sparse exponential histogram
US11226964B1 (en) * 2018-09-28 2022-01-18 Splunk Inc. Automated generation of metrics from log data

Family Cites Families (101)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5649104A (en) 1993-03-19 1997-07-15 Ncr Corporation System for allowing user of any computer to draw image over that generated by the host computer and replicating the drawn image to other computers
US5608872A (en) 1993-03-19 1997-03-04 Ncr Corporation System for allowing all remote computers to perform annotation on an image and replicating the annotated image on the respective displays of other comuters
US5577188A (en) 1994-05-31 1996-11-19 Future Labs, Inc. Method to provide for virtual screen overlay
GB2300991B (en) 1995-05-15 1997-11-05 Andrew Macgregor Ritchie Serving signals to browsing clients
US5715450A (en) 1995-09-27 1998-02-03 Siebel Systems, Inc. Method of selecting and presenting data from a database using a query language to a user of a computer system
US5821937A (en) 1996-02-23 1998-10-13 Netsuite Development, L.P. Computer method for updating a network design
US5831610A (en) 1996-02-23 1998-11-03 Netsuite Development L.P. Designing networks
US6604117B2 (en) 1996-03-19 2003-08-05 Siebel Systems, Inc. Method of maintaining a network of partially replicated database system
US5873096A (en) 1997-10-08 1999-02-16 Siebel Systems, Inc. Method of maintaining a network of partially replicated database system
WO1998038762A2 (en) 1997-02-26 1998-09-03 Siebel Systems, Inc. Determining visibility to a remote database client
AU6183698A (en) 1997-02-26 1998-09-18 Siebel Systems, Inc. Method of determining visibility to a remote database client of a plurality of database transactions having variable visibility strengths
JP2002511164A (en) 1997-02-26 2002-04-09 シーベル システムズ,インコーポレイティド How to determine the visibility of a remote database client for multiple database transactions for use in simplified visibility rules
AU6440398A (en) 1997-02-26 1998-09-18 Siebel Systems, Inc. Method of using a cache to determine the visibility to a remote database client of a plurality of database transactions
AU6336698A (en) 1997-02-26 1998-09-29 Siebel Systems, Inc. Distributed relational database
EP1019807B1 (en) 1997-02-27 2017-04-05 Siebel Systems, Inc. Method of migrating to a successive level of a software distribution incorporating local modifications
WO1998040805A2 (en) 1997-02-27 1998-09-17 Siebel Systems, Inc. Method of synchronizing independently distributed software and database schema
AU6669198A (en) 1997-02-28 1998-09-18 Siebel Systems, Inc. Partially replicated distributed database with multiple levels of remote clients
US6169534B1 (en) 1997-06-26 2001-01-02 Upshot.Com Graphical user interface for customer information management
US6560461B1 (en) 1997-08-04 2003-05-06 Mundi Fomukong Authorized location reporting paging system
US5918159A (en) 1997-08-04 1999-06-29 Fomukong; Mundi Location reporting satellite paging system with optional blocking of location reporting
US20020059095A1 (en) 1998-02-26 2002-05-16 Cook Rachael Linette System and method for generating, capturing, and managing customer lead information over a computer network
US6732111B2 (en) 1998-03-03 2004-05-04 Siebel Systems, Inc. Method, apparatus, system, and program product for attaching files and other objects to a partially replicated database
US5963953A (en) 1998-03-30 1999-10-05 Siebel Systems, Inc. Method, and system for product configuration
EP1105826A1 (en) 1998-08-27 2001-06-13 Upshot Corporation A method and apparatus for network-based sales force management
US6728960B1 (en) 1998-11-18 2004-04-27 Siebel Systems, Inc. Techniques for managing multiple threads in a browser environment
US6549908B1 (en) 1998-11-18 2003-04-15 Siebel Systems, Inc. Methods and apparatus for interpreting user selections in the context of a relation distributed as a set of orthogonalized sub-relations
US6601087B1 (en) 1998-11-18 2003-07-29 Webex Communications, Inc. Instant document sharing
WO2000033235A1 (en) 1998-11-30 2000-06-08 Siebel Systems, Inc. State models for monitoring processes
JP2002531890A (en) 1998-11-30 2002-09-24 シーベル システムズ,インコーポレイティド Development tools, methods and systems for client-server applications
WO2000033226A1 (en) 1998-11-30 2000-06-08 Siebel Systems, Inc. Smart scripting call centers
WO2000033238A2 (en) 1998-11-30 2000-06-08 Siebel Systems, Inc. Assignment manager
US20020072951A1 (en) 1999-03-03 2002-06-13 Michael Lee Marketing support database management method, system and program product
US6574635B2 (en) 1999-03-03 2003-06-03 Siebel Systems, Inc. Application instantiation based upon attributes and values stored in a meta data repository, including tiering of application layers objects and components
US6621834B1 (en) 1999-11-05 2003-09-16 Raindance Communications, Inc. System and method for voice transmission over network protocols
US6535909B1 (en) 1999-11-18 2003-03-18 Contigo Software, Inc. System and method for record and playback of collaborative Web browsing session
US6324568B1 (en) 1999-11-30 2001-11-27 Siebel Systems, Inc. Method and system for distributing objects over a network
US6654032B1 (en) 1999-12-23 2003-11-25 Webex Communications, Inc. Instant sharing of documents on a remote server
US7266502B2 (en) 2000-03-31 2007-09-04 Siebel Systems, Inc. Feature centric release manager method and system
US6336137B1 (en) 2000-03-31 2002-01-01 Siebel Systems, Inc. Web client-server system and method for incompatible page markup and presentation languages
US6577726B1 (en) 2000-03-31 2003-06-10 Siebel Systems, Inc. Computer telephony integration hotelling method and system
US6732100B1 (en) 2000-03-31 2004-05-04 Siebel Systems, Inc. Database access method and system for user role defined access
US7730072B2 (en) 2000-04-14 2010-06-01 Rightnow Technologies, Inc. Automated adaptive classification system for knowledge networks
US6665655B1 (en) 2000-04-14 2003-12-16 Rightnow Technologies, Inc. Implicit rating of retrieved information in an information search system
US6434550B1 (en) 2000-04-14 2002-08-13 Rightnow Technologies, Inc. Temporal updates of relevancy rating of retrieved information in an information search system
US6842748B1 (en) 2000-04-14 2005-01-11 Rightnow Technologies, Inc. Usage based strength between related information in an information retrieval system
US6763501B1 (en) 2000-06-09 2004-07-13 Webex Communications, Inc. Remote document serving
KR100365357B1 (en) 2000-10-11 2002-12-18 엘지전자 주식회사 Method for data communication of mobile terminal
US7581230B2 (en) 2001-02-06 2009-08-25 Siebel Systems, Inc. Adaptive communication application programming interface
USD454139S1 (en) 2001-02-20 2002-03-05 Rightnow Technologies Display screen for a computer
US7174514B2 (en) 2001-03-28 2007-02-06 Siebel Systems, Inc. Engine to present a user interface based on a logical structure, such as one for a customer relationship management system, across a web site
US6829655B1 (en) 2001-03-28 2004-12-07 Siebel Systems, Inc. Method and system for server synchronization with a computing device via a companion device
US7363388B2 (en) 2001-03-28 2008-04-22 Siebel Systems, Inc. Method and system for direct server synchronization with a computing device
US20030206192A1 (en) 2001-03-31 2003-11-06 Mingte Chen Asynchronous message push to web browser
US20030018705A1 (en) 2001-03-31 2003-01-23 Mingte Chen Media-independent communication server
US6732095B1 (en) 2001-04-13 2004-05-04 Siebel Systems, Inc. Method and apparatus for mapping between XML and relational representations
US7761288B2 (en) 2001-04-30 2010-07-20 Siebel Systems, Inc. Polylingual simultaneous shipping of software
US6782383B2 (en) 2001-06-18 2004-08-24 Siebel Systems, Inc. System and method to implement a persistent and dismissible search center frame
US6763351B1 (en) 2001-06-18 2004-07-13 Siebel Systems, Inc. Method, apparatus, and system for attaching search results
US6711565B1 (en) 2001-06-18 2004-03-23 Siebel Systems, Inc. Method, apparatus, and system for previewing search results
US6728702B1 (en) 2001-06-18 2004-04-27 Siebel Systems, Inc. System and method to implement an integrated search center supporting a full-text search and query on a database
US20030004971A1 (en) 2001-06-29 2003-01-02 Gong Wen G. Automatic generation of data models and accompanying user interfaces
US6993712B2 (en) 2001-09-28 2006-01-31 Siebel Systems, Inc. System and method for facilitating user interaction in a browser environment
US6978445B2 (en) 2001-09-28 2005-12-20 Siebel Systems, Inc. Method and system for supporting user navigation in a browser environment
US7761535B2 (en) 2001-09-28 2010-07-20 Siebel Systems, Inc. Method and system for server synchronization with a computing device
US6826582B1 (en) 2001-09-28 2004-11-30 Emc Corporation Method and system for using file systems for content management
US6724399B1 (en) 2001-09-28 2004-04-20 Siebel Systems, Inc. Methods and apparatus for enabling keyboard accelerators in applications implemented via a browser
US6901595B2 (en) 2001-09-29 2005-05-31 Siebel Systems, Inc. Method, apparatus, and system for implementing a framework to support a web-based application
US7962565B2 (en) 2001-09-29 2011-06-14 Siebel Systems, Inc. Method, apparatus and system for a mobile web client
US8359335B2 (en) 2001-09-29 2013-01-22 Siebel Systems, Inc. Computing system and method to implicitly commit unsaved data for a world wide web application
US7146617B2 (en) 2001-09-29 2006-12-05 Siebel Systems, Inc. Method, apparatus, and system for implementing view caching in a framework to support web-based applications
US7289949B2 (en) 2001-10-09 2007-10-30 Right Now Technologies, Inc. Method for routing electronic correspondence based on the level and type of emotion contained therein
US6804330B1 (en) 2002-01-04 2004-10-12 Siebel Systems, Inc. Method and system for accessing CRM data via voice
US7058890B2 (en) 2002-02-13 2006-06-06 Siebel Systems, Inc. Method and system for enabling connectivity to a data system
US7672853B2 (en) 2002-03-29 2010-03-02 Siebel Systems, Inc. User interface for processing requests for approval
US7131071B2 (en) 2002-03-29 2006-10-31 Siebel Systems, Inc. Defining an approval process for requests for approval
US6850949B2 (en) 2002-06-03 2005-02-01 Right Now Technologies, Inc. System and method for generating a dynamic interface via a communications network
US7437720B2 (en) 2002-06-27 2008-10-14 Siebel Systems, Inc. Efficient high-interactivity user interface for client-server applications
US8639542B2 (en) 2002-06-27 2014-01-28 Siebel Systems, Inc. Method and apparatus to facilitate development of a customer-specific business process model
US7594181B2 (en) 2002-06-27 2009-09-22 Siebel Systems, Inc. Prototyping graphical user interfaces
US20040010489A1 (en) 2002-07-12 2004-01-15 Rightnow Technologies, Inc. Method for providing search-specific web pages in a network computing environment
US7251787B2 (en) 2002-08-28 2007-07-31 Siebel Systems, Inc. Method and apparatus for an integrated process modeller
US9448860B2 (en) 2003-03-21 2016-09-20 Oracle America, Inc. Method and architecture for providing data-change alerts to external applications via a push service
WO2004086198A2 (en) 2003-03-24 2004-10-07 Siebel Systems, Inc. Common common object
WO2004086197A2 (en) 2003-03-24 2004-10-07 Siebel Systems, Inc. Custom common object
US7904340B2 (en) 2003-03-24 2011-03-08 Siebel Systems, Inc. Methods and computer-readable medium for defining a product model
US8762415B2 (en) 2003-03-25 2014-06-24 Siebel Systems, Inc. Modeling of order data
US7685515B2 (en) 2003-04-04 2010-03-23 Netsuite, Inc. Facilitating data manipulation in a browser-based user interface of an enterprise business application
US7620655B2 (en) 2003-05-07 2009-11-17 Enecto Ab Method, device and computer program product for identifying visitors of websites
US7409336B2 (en) 2003-06-19 2008-08-05 Siebel Systems, Inc. Method and system for searching data based on identified subset of categories and relevance-scored text representation-category combinations
US20040260659A1 (en) 2003-06-23 2004-12-23 Len Chan Function space reservation system
US7237227B2 (en) 2003-06-30 2007-06-26 Siebel Systems, Inc. Application user interface template with free-form layout
US7694314B2 (en) 2003-08-28 2010-04-06 Siebel Systems, Inc. Universal application network architecture
US7289976B2 (en) 2004-12-23 2007-10-30 Microsoft Corporation Easy-to-use data report specification
US7558771B2 (en) 2006-06-07 2009-07-07 Gm Global Technology Operations, Inc. System and method for selection of prediction tools
US8954500B2 (en) 2008-01-04 2015-02-10 Yahoo! Inc. Identifying and employing social network relationships
US8214346B2 (en) 2008-06-27 2012-07-03 Cbs Interactive Inc. Personalization engine for classifying unstructured documents
US20100017262A1 (en) 2008-07-18 2010-01-21 Yahoo! Inc. Predicting selection rates of a document using click-based translation dictionaries
EP3376446A1 (en) 2017-03-18 2018-09-19 Tata Consultancy Services Limited Method and system for anomaly detection, missing data imputation and consumption prediction in energy data
US20180300296A1 (en) 2017-04-17 2018-10-18 Microstrategy Incorporated Document similarity analysis
US20210365643A1 (en) 2018-09-27 2021-11-25 Oracle International Corporation Natural language outputs for path prescriber model simulation for nodes in a time-series network
US20210098099A1 (en) 2019-09-30 2021-04-01 Kpn Innovations, Llc Systems and methods for selecting a treatment schema based on user willingness

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9697316B1 (en) * 2011-12-13 2017-07-04 Amazon Technologies, Inc. System and method for efficient data aggregation with sparse exponential histogram
US11226964B1 (en) * 2018-09-28 2022-01-18 Splunk Inc. Automated generation of metrics from log data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220237096A1 (en) * 2021-01-22 2022-07-28 Salesforce.Com, Inc. Generating Performance Metrics from Events Derived from User Interface Logs
US11740989B2 (en) * 2021-01-22 2023-08-29 Salesforce, Inc. Generating performance metrics from events derived from user interface logs

Also Published As

Publication number Publication date
US11449409B2 (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US11640348B2 (en) Generating anomaly alerts for time series data
US11010278B2 (en) Real-time reporting based on instrumentation of software
US10419546B2 (en) Migration assessment for cloud computing platforms
US9864672B2 (en) Module specific tracing in a shared module environment
US9298588B2 (en) Tracing system for application and module tracing
US9311213B2 (en) Module database with tracing options
US11741119B2 (en) Canonical data model for distributed data catalog and metadata exchange
US20230026911A1 (en) Describing changes in a workflow based on changes in structured documents containing workflow metadata
US11914463B2 (en) Automatic support service
US11836072B2 (en) Risk-based root cause identification methods and related autobuild systems
US11449409B2 (en) Schema inference and log data validation system
US11416476B2 (en) Event ordering based on an identifier for a transaction
US11509746B2 (en) Distributing user requests to cloud computing systems across regions using a machine learning model
US11740989B2 (en) Generating performance metrics from events derived from user interface logs
EP3042314B1 (en) Module specific tracing in a shared module environment
US20230230010A1 (en) System and method for scalable optimization of infrastructure service health
US11720426B2 (en) Client-side automated application programming interface (API) mapping
US20230071886A1 (en) Performance system for forecasting feature degradations

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: SALESFORCE.COM, INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:SINGH, SAHIBDEEP;WEI, LINDA;BUGDAYCI, AHMET;AND OTHERS;SIGNING DATES FROM 20210122 TO 20210126;REEL/FRAME:055424/0883

STCF Information on status: patent grant

Free format text: PATENTED CASE