CN112449218A - Log processing method and device, terminal player and server - Google Patents
Log processing method and device, terminal player and server Download PDFInfo
- Publication number
- CN112449218A CN112449218A CN201910829796.4A CN201910829796A CN112449218A CN 112449218 A CN112449218 A CN 112449218A CN 201910829796 A CN201910829796 A CN 201910829796A CN 112449218 A CN112449218 A CN 112449218A
- Authority
- CN
- China
- Prior art keywords
- log data
- media
- identifier
- terminal
- target
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4667—Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Computational Linguistics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a log processing method and device, a terminal player and a server. The log processing method is applied to a terminal player and comprises the following steps: storing log data generated by playing media, wherein the log data comprises a media identifier of the media and playing time information associated with the media identifier; aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the media identifier, the playing times associated with the media identifier and the total playing duration associated with the media identifier; and reporting the log data and the aggregated log data to a server. The embodiment of the invention can reduce the pressure of the server, improve the query efficiency and reduce the query time.
Description
Technical Field
The present invention relates to the technical field of media monitoring and broadcasting, and in particular, to a log processing method, a log processing apparatus, a terminal player, and a server.
Background
In the LED display screen playing industry, the log data of the LED display screen is very important for a client to obtain, the client can clearly check the time length and the times of media played by the LED display screen through the log data, and the LED display screen can generate a log data and report the log data to a server every time the LED display screen plays the media. For the client, a large amount of log data has no practical meaning, and the information required by the client is summary information of the media or the LED display screen about the playing times and the playing time, so when the client queries the information, the summary information can be obtained by aggregating a large amount of log data.
However, when a client queries a plurality of terminal players or summary information with a long time span, the amount of log data to be aggregated is large, a large amount of server memory is occupied, server pressure is large, and query time is too long or overtime.
Disclosure of Invention
Therefore, embodiments of the present invention provide a log processing method, a log processing apparatus, a terminal player, and a server, which effectively solve the problem of long query time or timeout caused by a large amount of log data.
On one hand, a log processing method provided by an embodiment of the present invention is applied to a terminal player, and includes: storing log data generated by playing media, wherein the log data comprises a media identifier of the media and playing time information associated with the media identifier; aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the media identifier, the playing times associated with the media identifier and the total playing duration associated with the media identifier; and reporting the log data and the aggregated log data to a server.
In the embodiment, the terminal player aggregates the log data to obtain aggregated log data, and the aggregated log data is reported to the server for aggregation of the aggregated log data when the client performs query operation, so that the data volume required to be aggregated when the client performs query operation is greatly reduced, and the problem of overlong query time or overtime caused by large data volume is avoided, thereby reducing the pressure of the server, improving the query efficiency, reducing the query time and improving the operation experience of the client.
In an embodiment of the present invention, the playing time information includes a playing duration, and the aggregating the log data to obtain aggregated log data includes: counting the number of log data with the same media identifier to obtain the playing times related to the media identifier; and accumulating the playing time lengths of the log data with the same media identification to obtain the total playing time length associated with the media identification.
On the other hand, a log processing apparatus provided in an embodiment of the present invention is applied to a terminal player, and includes: the storage module is used for storing log data generated by playing media, wherein the log data comprises media identification of the media and playing time information associated with the media identification; the first aggregation module is used for aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the media identifier, the playing times associated with the media identifier and the total playing duration associated with the media identifier; and the reporting module is used for reporting the log data and the aggregated log data to a server.
In the embodiment, the terminal player aggregates the log data to obtain aggregated log data, and the aggregated log data is reported to the server for aggregation of the aggregated log data when the client performs query operation, so that the data amount to be aggregated when the client performs query operation is greatly reduced, the pressure of the server is reduced, the query efficiency is improved, the query time is reduced, and the operation experience of the client is improved.
In an embodiment of the present invention, the playing time information includes a playing duration, and the first aggregating module includes: the first aggregation unit is used for counting the number of the log data with the same media identifier to obtain the playing times related to the media identifier; and the second aggregation unit is used for accumulating the playing time lengths of the log data with the same media identifier to obtain the total playing time length associated with the media identifier.
In another aspect, an embodiment of the present invention provides a terminal player, including: a memory; a processor electrically connected to the memory and configured to: storing the log data generated by the playing media to the memory, aggregating the log data to obtain aggregated log data, and reporting the log data and the aggregated log data to the server; wherein the log data comprises a media identifier of the media and play time information associated with the media identifier; the aggregation log data comprises the media identification, the playing times associated with the media identification and the total playing time associated with the media identification.
In this embodiment, the terminal player can provide detailed log data and aggregated log data corresponding to the detailed log data to the server, so that the amount of data to be aggregated is greatly reduced when the server performs query operation, thereby reducing the pressure of the server, improving query efficiency, reducing query time, and improving operation experience of a client.
On the other hand, a log processing method provided in the embodiment of the present invention is applied to a server, and includes: receiving log data of media reported by a terminal player, wherein the log data comprises a terminal identifier of the terminal player, a media identifier of the media and playing time information associated with the terminal identifier and the media identifier; aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the terminal identifier, the media identifier, the playing times associated with the terminal identifier and the media identifier, and the total playing time associated with the terminal identifier and the media identifier; and storing the log data and the aggregated log data.
In the embodiment, the server aggregates the log data reported by the terminal player to obtain aggregated log data, and the aggregated log data is used for aggregating the aggregated log data when the client performs query operation, so that the data amount to be aggregated when the client performs query operation is greatly reduced, the pressure of the server is reduced, the query efficiency is improved, the query time is reduced, and the operation experience of the client is improved.
In an embodiment of the present invention, the playing time information includes a playing duration, and the aggregating the log data to obtain aggregated log data includes: counting the number of log data with the same terminal identification and media identification to obtain the playing times of the terminal identification and the media identification; and accumulating the playing time lengths of the log data with the same terminal identification and media identification to obtain the total playing time length associated with the terminal identification and the media identification.
In one embodiment of the present invention, further comprising: aggregating the aggregated log data in response to a log query instruction to obtain target log information, wherein the target log information comprises a target terminal identifier, a target media identifier, a target playing time associated with the target terminal identifier and the target media identifier, and a target playing time associated with the target terminal identifier and the target media identifier, the target playing time is obtained by accumulating the playing times of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier, and the target playing time is obtained by accumulating the total playing time of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier; and sending the target log information to a user side.
In another aspect, an embodiment of the present invention provides a log processing apparatus applied to a server, including: a receiving module, configured to receive log data of a media reported by a terminal player, where the log data includes a terminal identifier of the terminal player, a media identifier of the media, and playing time information associated with the terminal identifier and the media identifier; the second aggregation module is used for aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the terminal identifier, the media identifier, the playing times associated with the terminal identifier and the media identifier, and the total playing time associated with the terminal identifier and the media identifier; and a storage module that stores the log data and the aggregated log data.
In the embodiment, the server aggregates the log data reported by the terminal player to obtain aggregated log data, and the aggregated log data is used for aggregating the aggregated log data when the client performs query operation, so that the data amount to be aggregated when the client performs query operation is greatly reduced, the pressure of the server is reduced, the query efficiency is improved, the query time is reduced, and the operation experience of the client is improved.
In an embodiment of the present invention, the playing time information includes a playing time length; the second polymerization module includes: the third aggregation unit is used for counting the number of log data with the same terminal identification and media identification to obtain the playing times of the associated terminal identification and the media identification; and the fourth aggregation unit is used for accumulating the playing time lengths of the log data with the same terminal identification and media identification to obtain the total playing time length associated with the terminal identification and the media identification.
In one embodiment of the present invention, further comprising: the second aggregation module is further configured to aggregate the aggregated log data in response to a log query instruction to obtain target log information, where the target log information includes a target terminal identifier, a target media identifier, a target playing time associated with the target terminal identifier and the target media identifier, and a target playing time associated with the target terminal identifier and the target media identifier, the target playing time is obtained by accumulating the playing times of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier, and the target playing time is obtained by accumulating the total playing time of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier; and the sending module is used for sending the target log information to the user side.
In another aspect, an embodiment of the present invention provides a server, including: a memory; a processor electrically connected to the memory and configured to: receiving the log data of the media reported by a terminal player, aggregating the log data to obtain aggregated log data, and storing the log data and the aggregated log data to the memory; wherein the log data comprises a terminal identifier of the terminal player, a media identifier of the media, and playing time information associated with the terminal identifier and the media identifier; the aggregation log data comprises the terminal identification, the media identification, the playing times associated with the terminal identification and the media identification, and the total playing time associated with the terminal identification and the media identification.
In this embodiment, the server aggregates the log data reported by the terminal player to obtain aggregated log data, and the aggregated log data is used for aggregating the aggregated log data when the client performs the query operation, so that the data amount to be aggregated when the client performs the query operation is greatly reduced, thereby reducing the pressure of the server, improving the query efficiency, reducing the time required for query, and improving the operation experience of the client.
In this embodiment, the server aggregates the log data reported by the terminal player when reading the program running on the storage medium to obtain aggregated log data, and the aggregated log data is used for aggregating the aggregated log data when the client performs the query operation, so that the data amount required to be aggregated when the client performs the query operation is greatly reduced, thereby reducing the pressure of the server, improving the query efficiency, reducing the query time, and improving the operation experience of the client.
In summary, the above embodiments of the present application may have one or more of the following advantages or benefits: i) the terminal player aggregates the log data to obtain aggregated log data, and the aggregated log data is reported to the server for aggregation of the aggregated log data when the client performs query operation, so that the data amount to be aggregated when the client performs query operation is greatly reduced, the pressure of the server is reduced, the query efficiency is improved, the query time is reduced, and the operation experience of the client is improved; and ii) the server aggregates the log data reported by the terminal player to obtain aggregated log data, and the aggregated log data is used for aggregating the aggregated log data when the client performs query operation, so that the data amount to be aggregated when the client performs query operation is greatly reduced, the pressure of the server is reduced, the query efficiency is improved, the query time is reduced, and the operation experience of the client is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a media log processing system to which an embodiment of the present invention is applied.
Fig. 2 is a flowchart illustrating a first log processing method according to a first embodiment of the present invention.
Fig. 3 is a block diagram of a first log processing apparatus according to a second embodiment of the present invention.
Fig. 4 is a flowchart illustrating a second log processing method according to a third embodiment of the present invention.
Fig. 5 is a block diagram of a second log processing apparatus according to a fourth embodiment of the present invention.
Fig. 6 is a block diagram of a log processing system according to a fifth embodiment of the present invention.
Fig. 7 is a block diagram of a storage medium according to a sixth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an architecture of a media log processing system according to an embodiment of the present invention. The media log processing system 100 includes, for example: terminal player 10, PC end 50, server 20, and user end 30.
Specifically, the terminal player 10 and the PC terminal 50 are disposed in the same gateway, for example, the terminal player 10 and the PC terminal 50 are disposed in the same lan, and for example, the terminal player 10 and the PC terminal 50 are respectively connected to the same router through a network cable or in a wireless manner; the PC terminal 50 is connected to the server 20 through a network, and the server 20 is connected to the user terminal 30 through a network, wherein the network connection may be a wide area network such as the internet; the PC terminal 50 may be a personal computer or a notebook, the server 20 may be a computer device providing network services and storing data, and the user terminal 30 may be a personal computer, a notebook, and a smart mobile device such as a smart phone and a smart tablet, which has a Web browser, software, or APP application.
The server 20 may be connected to a plurality of PC terminals 50, and one PC terminal 50 may be connected to a plurality of terminal players 10.
The terminal player 10 includes, for example, a processor 11, a memory 13 electrically connected to the processor 11, and a data transmission interface 15 electrically connected to the processor 11; the processor 11 may be an ARM processor and/or an MCU (micro controller Unit) chip; the Memory 13 may be a nonvolatile Memory such as an SD (Secure Digital Memory Card/SD Card) Memory Card, a flash Memory, or the like; the data transmission interface 15 may be an ethernet physical layer transceiver, such as a gigabit PHY chip or a 5G PHY chip, and may also be a network port or other interface, such as an RJ45 network port or a USB (Universal Serial Bus) interface.
When playing a media on the terminal player 10, corresponding log data will be generated and stored in the memory 13; the media typically includes pictures, videos, audios, web pages, RSS (Simple Syndication), streaming media, page media, and the like; the log data includes, for example, identification information and playing time information, the identification information may include a terminal identifier and a media identifier, and the terminal identifier may be a unique identifier of the terminal player 10, such as a unique number that is distinguished from other terminal players connected to the server 20 by the terminal player 10, and may also be other identifiers that can uniquely represent the terminal player 10, which is not limited herein. The media identifier may be a name and/or a type of the media, the playing time information may include a start playing time, an end playing time, and a playing time length, the start playing time and the end playing time are time stamps accurate to seconds including year, month and day, respectively, the playing time length may be a time length accurate to seconds, and may be determined according to the start playing time and the end playing time, for example, the playing time length is end playing time-start playing time.
[ first embodiment ] A method for manufacturing a semiconductor device
Referring to fig. 2, it is a schematic flowchart of a first log processing method according to a first embodiment of the present invention. The first log processing method is applied to the terminal player 10 in the data processing system 100. The first log processing method includes, for example:
step S1, storing the log data generated by playing the media, and the terminal player 10 stores the log data generated correspondingly when playing the media into the memory 13, specifically, the log data may be generated after the terminal player 10 plays the media and then stored into the memory 13, or generated by the terminal player 10 during playing the media, or generated in batch at a preset time, or generated time and manner of the log data, and the embodiments of the present invention are not limited;
step S2, aggregating the log data to obtain aggregated log data, for example, aggregating the log data generated and stored in a set time period, for example, a day, to obtain aggregated log data, for example, aggregating the log data stored in the last 24 hours at 21 days to obtain aggregated log data, where the aggregated log data includes, for example, a terminal identifier, a media identifier, the number of playing times of the associated terminal identifier and the media identifier, the playing date of the associated terminal identifier and the media identifier, and the total playing duration of the associated terminal identifier and the media identifier, where the playing date may be a time stamp with a date as a unit, the number of playing times is the number of log data with the same media identifier, the terminal identifier of the aggregated log data is obtained according to the terminal identifier of the log data, and the media identifier of the aggregated log data is obtained according to the media identifier of the log data, obtaining the playing date of the aggregated log data according to the starting playing time and/or the ending playing time of the log data, counting the number of the log data with the same media identifier to obtain the playing times of the aggregated log data, namely the playing times of the media corresponding to the same media identifier in the last 24 hours on the terminal player 10, and accumulating the playing time of the log data with the same media identifier to obtain the total playing time of the aggregated log data, namely the accumulated playing time of the media corresponding to the media identifier in the last 24 hours on the terminal player 10;
step S3, reporting the log data and the aggregated log data to a server, for example, the terminal player 10 periodically reports the log data and the aggregated log data to the server 20, specifically, the terminal player 10 periodically sends the log data and the aggregated log data to the PC end 50 in the same gateway as the terminal player, and the PC end 50 periodically reports the log data and the aggregated log data to the server 20 through the internet, where it is worth mentioning here that the time and manner of reporting the log data and the aggregated log data may also be that the terminal player 10 may also report the log data and the aggregated log data after responding to a user operation, and may also automatically report the log data and the aggregated log data or other manners for different time periods, which is not limited in the embodiments of the present invention.
In one embodiment, the process of the first log processing method further includes:
when the terminal player 10 is powered on, the terminal player 10 receives an unreported log query instruction sent by the PC terminal 50; the terminal player 10 queries whether the memory 13 stores the unreported log data according to the unreported log query instruction, specifically, the terminal player 10 may delete the log data and the aggregated log data stored in the memory 13 after reporting the log data and the aggregated log data each time, so when the terminal player 10 queries that the memory 13 stores the log data, it indicates that the unreported log data exists on the terminal player 10, and therefore, when the memory 13 stores the unreported log data, the unreported log data is aggregated, see the detailed processes of the step S2 and the step S3, which is not described herein again.
In an embodiment, the PC 50 is installed with software, the software is capable of detecting a power-on action of the terminal player 10 and sending an unreported log query instruction to the terminal player 10 when running, and is further capable of receiving log data and aggregated log data reported by the terminal player 10 and reporting to the server 20 connected to the PC 50 through a network.
In one embodiment, the terminal player 10 is connected to the server 20 through the PC terminal 50, the connection may be a heartbeat connection, for example, the server 20 sends a heartbeat connection request to the terminal player 10 through the PC terminal 50, and after the heartbeat connection is established between the terminal player 10 and the server 20, the server 20 obtains the log data and the aggregated log data of the terminal player 10.
[ second embodiment ]
Referring to fig. 3, which is a schematic block diagram of a first log processing apparatus according to a second embodiment of the present invention, the first log processing apparatus 111 may be functional module software, and the first log processing apparatus 111 includes, for example:
a storage module 1112, configured to store log data generated by playing media;
the first aggregation module 1111 is configured to aggregate the log data to obtain aggregated log data; and
a reporting module 1113, configured to report the log data and the aggregated log data to the server 20.
In one embodiment, the first aggregation module 1111 further includes, for example:
a first aggregating unit 11111, configured to count the number of log data with the same media identifier to obtain the number of playing times associated with the media identifier;
the second aggregating unit 11113 is configured to accumulate the playing durations of the log data with the same media identifier to obtain a total playing duration associated with the media identifier.
In one embodiment, the first log processing device 111 further includes, for example: a receiving module and an inquiring module (not shown in the figure), wherein the receiving module is used for receiving the inquiry instruction of the unreported log; the query module is used for querying whether the memory 13 stores the unreported log data or not according to the unreported log query instruction;
referring to fig. 1 again, an embodiment of the present invention further provides a terminal player, where the terminal player 10 includes, for example, a processor 11 and a memory 13 electrically connected to the processor 11, where the processor 11 is configured to execute the first log processing method provided in the first embodiment, or the processor 11 includes a first log processing device 111 provided in the second embodiment, and the processor 11 executes the first log processing device 111 to implement the first log processing method provided in the first embodiment, which is not described herein again.
In one embodiment, the terminal player 10 may be a display controller (or transmitter card).
[ third embodiment ]
Referring to fig. 4, it is a flowchart illustrating a second log processing method according to a third embodiment of the present invention, where the second log processing method is applied to the server 20 in the data processing system 100. The second log processing method includes, for example:
step S101, receiving log data reported by the terminal player 10, for example, periodically receiving log data periodically reported by the terminal player 10 through the PC terminal 50;
step S102, aggregating the log data to obtain aggregated log data, respectively obtaining a terminal identifier and a media identifier of the aggregated log data according to the terminal identifier and the media identifier of the log data, obtaining a play date of the aggregated log data with a date as a unit according to the start play time and/or the end play time of the log data, counting the number of the log data with the same terminal identifier and media identifier to obtain the play times of the aggregated log data, and accumulating the play duration of the log data with the same terminal identifier and media identifier to obtain the total play duration of the aggregated log data;
step S105, storing the log data and the aggregated log data, may store the log data and the aggregated log data on a memory of the server 20, or store the log data and the aggregated log data in a database associated with the server 20.
In one embodiment, the second log processing method further includes, for example:
step S107, obtaining a log query instruction, where the log query instruction may be a log query instruction sent by the receiving user terminal 30, where the log query instruction includes, for example, target identification information and/or query time period information, the target identification information includes a target terminal identification and/or a target media identification, and the query time period information includes, for example, a start query date and/or an end query date in units of dates;
step S108, according to the log query instruction, aggregating the aggregated log data to obtain target log information, wherein the target log information comprises target identification information, target playing times associated with the identification information and target playing duration associated with the identification information, the target identification information is the same as the target identification information in the log query instruction, the target identification information comprises a target terminal identification and/or a target media identification, the target playing times are obtained by taking the terminal identification and/or the media identification as the target identification information and the cumulative sum of the playing times of the aggregated log data with the playing date in the query time period information, and the target playing duration is obtained by taking the terminal identification and/or the media identification as the target identification information and the cumulative sum of the playing total duration of the aggregated log data with the playing date in the query time period information;
step S109, sending the target log information to the user terminal 30.
In an embodiment, if the log query instruction obtained in step S107 does not have the query time period information, the aggregated log data corresponding to the target identification information on the server 20 is aggregated to obtain the target log information, which is not described herein again.
In an embodiment, if the log query instruction obtained in step S107 does not have the target identification information, the aggregated log data corresponding to the query time period information on the server 20 is aggregated to obtain the target log information, which is not described herein again.
In an embodiment, in a situation that the terminal player 10 implements the first log processing method, the terminal player 10 reports log data and aggregated log data, so that the log data and the aggregated log data reported by the terminal player 10 are received in step 102, which is not described herein again.
[ fourth example ] A
Referring to fig. 5, which is a schematic block diagram of a second log processing apparatus according to a fourth embodiment of the present invention, where the second log processing apparatus 21 may be a functional module software, and the server 20 installs the functional module software, the second log processing apparatus 21 includes:
a receiving module 211, configured to receive log data reported by a terminal player, where the log data includes a terminal identifier, a media identifier, and playing time information associated with the terminal identifier and the media identifier;
a second aggregation module 213, configured to aggregate the log data to obtain aggregated log data, where the aggregated log data includes the terminal identifier, the media identifier, the playing times associated with the terminal identifier and the media identifier, and a total playing duration associated with the terminal identifier and the media identifier; and
a storage module 212, configured to store the log data and the aggregated log data.
In one embodiment, the second polymerization module 213 further includes, for example:
a third aggregating unit 2131, configured to count the number of log data with the same terminal identifier and media identifier to obtain the number of playing times associated with the terminal identifier and the media identifier;
a fourth aggregating unit 2133, configured to accumulate the playing durations of the log data with the same terminal identifier and the same media identifier to obtain a total playing duration associated with the terminal identifier and the media identifier.
In one embodiment, the log processing means 21 further includes, for example:
the secondary aggregation module 215 is further configured to aggregate the aggregated log data in response to a log query instruction to obtain target log information, where the log query instruction is, for example, a log query instruction sent by the user end 30, the log query instruction includes target identification information and/or query time period information, the target log information includes the target terminal identifier, the target media identifier, the target playing times associated with the target terminal identifier and the target media identifier, and a target playing duration associated with the target terminal identifier and the target media identifier, the target playing times are obtained by accumulating the playing times of the aggregated log data that is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier, and the target playing duration is obtained by accumulating the playing times of the aggregated log data that is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier Accumulating the total time length;
a sending module 217, configured to send the target log information to the user side 30.
The processes of the second aggregation module 213, the receiving module 211, the storage module 212, the secondary aggregation module 215, and the sending module 217 of the second log processing apparatus 21, which cooperate to implement the second log processing method provided in the third embodiment, are not described here.
Referring to fig. 1 again, an embodiment of the present invention further provides a server, where the server 20 includes, for example, a processor 21 and a memory 23 electrically connected to the processor 21, where the processor 21 is configured to execute the second log processing method provided in the third embodiment, or the processor 21 includes a second log processing device 21 provided in the fourth embodiment, and the processor 21 executes the second log processing device 21 to implement the second log processing method provided in the third embodiment, which is not described herein again.
[ fifth embodiment ]
Referring to fig. 6, a fifth embodiment of the present invention provides a module schematic diagram of a log processing system, where a log processing system 400 includes a processor 430 and a memory 410 electrically connected to the processor 430, the memory 410 stores a computer program 411, and the processor 430 loads the computer program 411 to implement any one of the first log processing method and/or the second log processing method described above, which is not described herein again.
[ sixth embodiment ]
Referring to fig. 7, a module diagram of a storage medium is further provided in the sixth embodiment of the present invention, where the storage medium 500 is, for example, a non-volatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The storage medium 500 has stored thereon computer-executable instructions 510. The storage medium 500 may be executed by one or more processors or processing devices to execute the computer-executable instructions 510 to implement the first log processing method provided by the first embodiment and/or the second log processing method provided by the third embodiment.
In an implementation process of the media log processing system 100 provided in the foregoing embodiment, the server 20 is connected to 100 terminal players 10 through 30 PC terminals 50, for example, each terminal player 10 has 100 media, the playing time of each media is 10 seconds, the log data generated by each terminal player per day is 8640, and each terminal player aggregates log data every day to generate 100 pieces of aggregated log data, the server stores 2592 ten thousand pieces of log data and 30 ten thousand pieces of aggregated log data in 30 days, and therefore, when the server 20 receives the log query command of the user terminal 30, if the time span is 30 days, only 30 ten thousand pieces of aggregated log data need to be aggregated, and the data volume is reduced by about 100 times, so that the query efficiency of the server 20 is greatly improved, and the query time is reduced.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (12)
1. A log processing method is applied to a terminal player and comprises the following steps:
storing log data generated by playing media, wherein the log data comprises a media identifier of the media and playing time information associated with the media identifier;
aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the media identifier, the playing times associated with the media identifier and the total playing duration associated with the media identifier; and
and reporting the log data and the aggregated log data to a server.
2. The log processing method according to claim 1, wherein the play time information includes a play duration, and the aggregating the log data to obtain aggregated log data includes:
counting the number of log data with the same media identifier to obtain the playing times related to the media identifier;
and accumulating the playing time lengths of the log data with the same media identification to obtain the total playing time length associated with the media identification.
3. A log processing device is applied to a terminal player and comprises:
the storage module is used for storing log data generated by playing media, wherein the log data comprises media identification of the media and playing time information associated with the media identification;
the first aggregation module is used for aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the media identifier, the playing times associated with the media identifier and the total playing duration associated with the media identifier; and
and the reporting module is used for reporting the log data and the aggregated log data to a server.
4. The log processing apparatus according to claim 3, wherein the play time information includes a play time length,
the first aggregation module includes:
the first aggregation unit is used for counting the number of the log data with the same media identifier to obtain the playing times related to the media identifier;
and the second aggregation unit is used for accumulating the playing time lengths of the log data with the same media identifier to obtain the total playing time length associated with the media identifier.
5. A terminal player, comprising:
a memory;
a processor electrically connected to the memory and configured to: storing the log data generated by the playing media to the memory, aggregating the log data to obtain aggregated log data, and reporting the log data and the aggregated log data to the server; wherein the log data comprises a media identifier of the media and play time information associated with the media identifier; the aggregation log data comprises the media identification, the playing times associated with the media identification and the total playing time associated with the media identification.
6. A log processing method is applied to a server and comprises the following steps:
receiving log data of media reported by a terminal player, wherein the log data comprises a terminal identifier of the terminal player, a media identifier of the media and playing time information associated with the terminal identifier and the media identifier;
aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the terminal identifier, the media identifier, the playing times associated with the terminal identifier and the media identifier, and the total playing time associated with the terminal identifier and the media identifier; and
storing the log data and the aggregated log data.
7. The log processing method according to claim 6, wherein the play time information includes a play duration, and the aggregating the log data to obtain aggregated log data includes:
counting the number of log data with the same terminal identification and media identification to obtain the playing times of the terminal identification and the media identification;
and accumulating the playing time lengths of the log data with the same terminal identification and media identification to obtain the total playing time length associated with the terminal identification and the media identification.
8. The log processing method according to claim 6, further comprising:
aggregating the aggregated log data in response to a log query instruction to obtain target log information, wherein the target log information comprises a target terminal identifier, a target media identifier, a target playing time associated with the target terminal identifier and the target media identifier, and a target playing time associated with the target terminal identifier and the target media identifier, the target playing time is obtained by accumulating the playing times of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier, and the target playing time is obtained by accumulating the total playing time of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier;
and sending the target log information to a user side.
9. A log processing device applied to a server includes:
a receiving module, configured to receive log data of a media reported by a terminal player, where the log data includes a terminal identifier of the terminal player, a media identifier of the media, and playing time information associated with the terminal identifier and the media identifier;
the second aggregation module is used for aggregating the log data to obtain aggregated log data, wherein the aggregated log data comprises the terminal identifier, the media identifier, the playing times associated with the terminal identifier and the media identifier, and the total playing time associated with the terminal identifier and the media identifier; and
and the storage module is used for storing the log data and the aggregated log data.
10. The log processing apparatus according to claim 9, wherein the play time information includes a play time length;
the second polymerization module includes:
the third aggregation unit is used for counting the number of log data with the same terminal identification and media identification to obtain the playing times of the associated terminal identification and the media identification;
and the fourth aggregation unit is used for accumulating the playing time lengths of the log data with the same terminal identification and media identification to obtain the total playing time length associated with the terminal identification and the media identification.
11. The log processing apparatus according to claim 9, further comprising:
the second aggregation module is used for aggregating the aggregated log data in response to a log query instruction to obtain target log information, wherein the target log information comprises a target terminal identifier, a target media identifier, a target playing time associated with the target terminal identifier and the target media identifier, and a target playing time associated with the target terminal identifier and the target media identifier, the target playing time is obtained by accumulating the playing times of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier, and the target playing time is obtained by accumulating the total playing time of the aggregated log data which is obtained according to the log query instruction and is the same as the target terminal identifier and the target media identifier;
and the sending module is used for sending the target log information to the user side.
12. A server, comprising:
a memory;
a processor electrically connected to the memory and configured to: receiving the log data of the media reported by a terminal player, aggregating the log data to obtain aggregated log data, and storing the log data and the aggregated log data to the memory; wherein the log data comprises a terminal identifier of the terminal player, a media identifier of the media, and playing time information associated with the terminal identifier and the media identifier; the aggregation log data comprises the terminal identification, the media identification, the playing times associated with the terminal identification and the media identification, and the total playing time associated with the terminal identification and the media identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910829796.4A CN112449218A (en) | 2019-09-03 | 2019-09-03 | Log processing method and device, terminal player and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910829796.4A CN112449218A (en) | 2019-09-03 | 2019-09-03 | Log processing method and device, terminal player and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112449218A true CN112449218A (en) | 2021-03-05 |
Family
ID=74734397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910829796.4A Pending CN112449218A (en) | 2019-09-03 | 2019-09-03 | Log processing method and device, terminal player and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112449218A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153616A1 (en) * | 2009-08-18 | 2011-06-23 | Benchworkzz LLC | System and Method for Providing Access to Log Data Files |
CN102385892A (en) * | 2010-09-02 | 2012-03-21 | 索尼爱立信移动通讯有限公司 | Media playing device and media processing method |
CN103546774A (en) * | 2013-10-21 | 2014-01-29 | Tcl集团股份有限公司 | Method and system for realizing seamless access to media file |
CN103607461A (en) * | 2013-11-22 | 2014-02-26 | 乐视网信息技术(北京)股份有限公司 | Information sharing method and cloud server |
CN104869440A (en) * | 2015-05-29 | 2015-08-26 | 广州易方信息科技有限公司 | Method and system for real-time video viewing data statistics of online video cloud platform |
CN104951517A (en) * | 2015-05-29 | 2015-09-30 | 小米科技有限责任公司 | Behavior log statistics method and device |
CN105933736A (en) * | 2016-04-18 | 2016-09-07 | 天脉聚源(北京)传媒科技有限公司 | Log processing method and device |
CN107577734A (en) * | 2017-08-24 | 2018-01-12 | 维沃移动通信有限公司 | The method and mobile terminal of a kind of song collection |
CN109492039A (en) * | 2018-11-06 | 2019-03-19 | 北京字节跳动网络技术有限公司 | A kind of recording method of daily record data, device, electronic equipment and readable medium |
-
2019
- 2019-09-03 CN CN201910829796.4A patent/CN112449218A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153616A1 (en) * | 2009-08-18 | 2011-06-23 | Benchworkzz LLC | System and Method for Providing Access to Log Data Files |
CN102385892A (en) * | 2010-09-02 | 2012-03-21 | 索尼爱立信移动通讯有限公司 | Media playing device and media processing method |
CN103546774A (en) * | 2013-10-21 | 2014-01-29 | Tcl集团股份有限公司 | Method and system for realizing seamless access to media file |
CN103607461A (en) * | 2013-11-22 | 2014-02-26 | 乐视网信息技术(北京)股份有限公司 | Information sharing method and cloud server |
CN104869440A (en) * | 2015-05-29 | 2015-08-26 | 广州易方信息科技有限公司 | Method and system for real-time video viewing data statistics of online video cloud platform |
CN104951517A (en) * | 2015-05-29 | 2015-09-30 | 小米科技有限责任公司 | Behavior log statistics method and device |
CN105933736A (en) * | 2016-04-18 | 2016-09-07 | 天脉聚源(北京)传媒科技有限公司 | Log processing method and device |
CN107577734A (en) * | 2017-08-24 | 2018-01-12 | 维沃移动通信有限公司 | The method and mobile terminal of a kind of song collection |
CN109492039A (en) * | 2018-11-06 | 2019-03-19 | 北京字节跳动网络技术有限公司 | A kind of recording method of daily record data, device, electronic equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102915374B (en) | A kind of method, Apparatus and system of resource access of controlling database | |
CN104185141B (en) | The detecting system and method for user area residence time based on Bluetooth beacon equipment | |
CN203433545U (en) | Statistical system and acquisition terminal for clothes try-on information based on Internet of Things | |
CN103312544A (en) | Method, equipment and system for controlling terminals during log file reporting | |
CN109388671B (en) | Data processing method, device, equipment and storage medium | |
CN111163018B (en) | Network equipment and method for reducing transmission delay thereof | |
WO2021138823A1 (en) | Information pushing method and apparatus, server, and storage medium | |
CN108197002B (en) | Mobile device non-buried point data statistical method, system, terminal and medium | |
CN110807050B (en) | Performance analysis method, device, computer equipment and storage medium | |
CN102387255B (en) | Method and device for utilizing intelligent card to process third-party expanded service data | |
CN112449218A (en) | Log processing method and device, terminal player and server | |
CN103068052A (en) | Dynamic configuration method and system of resources and portal server | |
CN116680151A (en) | Dynamic monitoring method, system, terminal and storage medium for hard disk performance | |
CN115314423A (en) | Traffic data statistical method, device and storage medium | |
CN108924628A (en) | The Hardware match playback method and Related product of promotion video | |
CN110020166A (en) | A kind of data analysing method and relevant device | |
CN112788077B (en) | Data acquisition method and device, computer equipment and computer-readable storage medium | |
CN103379120A (en) | Method for enterprise service system interacting with middleware and device manager | |
CN111585807A (en) | Log management method and related equipment | |
CN112637151A (en) | Data message transmission method, terminal device, server and storage medium | |
CN111159311A (en) | Data mapping integration method, device, equipment and storage medium | |
CN105868091B (en) | Management method and managing device | |
CN112202676B (en) | Advertisement delivery management method and device and computer readable storage medium | |
US11537491B2 (en) | Electronic apparatus and method of controlling the same | |
CN112529613B (en) | Method and device for processing user continuous login data and transferring virtual resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210305 |
|
RJ01 | Rejection of invention patent application after publication |