CN114095484B - Access parameter processing method, device, equipment and storage medium - Google Patents

Access parameter processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114095484B
CN114095484B CN202111335718.2A CN202111335718A CN114095484B CN 114095484 B CN114095484 B CN 114095484B CN 202111335718 A CN202111335718 A CN 202111335718A CN 114095484 B CN114095484 B CN 114095484B
Authority
CN
China
Prior art keywords
script
server
information
pieces
web servers
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.)
Active
Application number
CN202111335718.2A
Other languages
Chinese (zh)
Other versions
CN114095484A (en
Inventor
郑岸以
陈盛林
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111335718.2A priority Critical patent/CN114095484B/en
Publication of CN114095484A publication Critical patent/CN114095484A/en
Application granted granted Critical
Publication of CN114095484B publication Critical patent/CN114095484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a processing method, a device, equipment and a storage medium of access parameters. According to the processing method of the access parameters, N pieces of first information are acquired, the N pieces of first information are summarized, and the target access parameters of the first equipment for accessing N pieces of first web servers are obtained. Because the N second web servers are respectively connected with the third server, the N second web servers can respectively call the first script in the third server to obtain the access parameters (first information) of the first equipment accessing the second web servers, then one of the second web servers (the first web servers) acquires and gathers the N first information obtained by the N second web servers to obtain the target access parameters of the first equipment accessing the N second web servers, and the manual determination is not needed, so that the operation of a user is simplified, and the processing efficiency of the access parameters is improved.

Description

Access parameter processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing an access parameter.
Background
To maintain load balancing of each web server when an electronic device accesses the web server, the ngix needs to be deployed on the web server. While the deployment of the ngix is related to the access situation of the electronic device to each web server.
The access condition of the electronic equipment to each web server can be obtained by analyzing the logs on the web server, and the logs on each web server are mutually independent, so at present, the logs of each web server are manually acquired and analyzed mainly by manually logging in each web server, the process is tedious, the efficiency is low, and the time consumption is long when the access condition of the electronic equipment to each web server is determined.
Content of the application
The embodiment of the application provides a processing method, a device, equipment and a storage medium for access parameters, which can improve efficiency when determining the access condition of electronic equipment to each web server.
In a first aspect, an embodiment of the present application provides a method for processing an access parameter, where the method is applied to a first web server, the first web server is one of N second web servers, N is an integer greater than 1, and the N second web servers are respectively connected to a third server, where the method includes:
acquiring N pieces of first information, wherein the N pieces of first information are respectively obtained by calling first scripts in a third server by N pieces of second web servers, the first scripts are used for analyzing logs in corresponding second web servers to obtain the first information, and the first information comprises access parameters of first equipment accessing the second web servers;
and summarizing the N pieces of first information to obtain target access parameters of the first equipment to access the N pieces of second web servers.
In a second aspect, an embodiment of the present application provides a processing device for an access parameter, where the processing device is applied to a first web server, the first web server is one of N second web servers, N is an integer greater than 1, and the N second web servers are respectively connected to a third server, where the device includes:
the system comprises an acquisition module, a first web server and a second web server, wherein the acquisition module is used for acquiring N pieces of first information, the N pieces of first information are respectively obtained by calling first scripts in the third server by the N pieces of second web servers, the first scripts are used for analyzing logs in the corresponding second web servers to obtain the first information, and the first information comprises access parameters of first equipment for accessing the second web servers;
and the summarizing module is used for summarizing the N pieces of first information to obtain target access parameters of the first equipment for accessing the N pieces of second web servers.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a processor;
a memory for storing computer program instructions;
the computer program instructions, when executed by a processor, implement a method as the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect.
According to the processing method, the processing device, the processing equipment and the storage medium for the access parameters, N pieces of first information are acquired, the N pieces of first information are summarized, and the target access parameters of the first equipment for accessing N pieces of first web servers are obtained. Because the N second web servers are respectively connected with the third server, the N second web servers can respectively call the first script in the third server to obtain the access parameters (first information) of the first equipment accessing the second web servers, then one of the second web servers (the first web servers) acquires and gathers the N first information obtained by the N second web servers to obtain the target access parameters of the first equipment accessing the N second web servers, and the manual determination is not needed, so that the operation of a user is simplified, and the processing efficiency of the access parameters is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is possible for a person skilled in the art to obtain other drawings from these drawings without inventive effort.
Fig. 1 is a schematic view of a scenario of a method for processing access parameters according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for processing access parameters according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a summary process of access parameters according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of another method for processing access parameters according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an analysis process of access parameters according to an embodiment of the present application;
FIG. 6 is a block diagram of a processing device for accessing parameters according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application are described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to explain the present application and are not configured to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In order to count the access condition of the electronic equipment to each web server under the condition that the nginx is deployed for a plurality of web servers and the logs on each web server are mutually independent, at present, manual log-in is mainly adopted to manually collect logs and count each web server, users are required to log in each web server respectively, the process is complex, and the time consumption is long.
Therefore, the embodiment of the application provides a processing method of access parameters, which can improve the statistical efficiency when the access condition of the electronic equipment to each web server is counted.
The processing method of the access parameter provided in the embodiment of the present application may be applied to the scenario shown in fig. 1, and is described in detail below with reference to fig. 1.
The scenario may include a first electronic device 10, a first electronic device 11, N second web servers 12, and one third server 13. In fig. 1, taking n=4 as an example, the 4 second web servers 12 are web1, web2, web3, and web4, respectively. The number of first electronic devices and second web servers may vary in actual application.
Each first electronic device may establish a connection with one or more second web servers 12, e.g., the first electronic device 10 may access the second web servers 12 in the event that the first electronic device 10 establishes a connection with the second web servers 12. Fig. 1 exemplifies that a first electronic device 10 is connected to web1, web2, and a second electronic device 11 is connected to web2, web3, and web4. The second web server 12 may establish a connection with the third server 13 such that the second web server 12 may share information in the third server 13.
The first electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a personal computer (personal computer, PC), desktop computer, etc.
The third server 13 is a dedicated data storage server, and the third server 13 is illustratively a network attached storage (Network Attached Storage, NAS) server.
In the embodiment of the present application, when the first electronic device accesses the second web server 12, the second web server 12 may obtain the access condition of the first electronic device to the second web server 12 through interaction with the third server 13, without manually logging in each second web server 12, so that the operation of the user is simplified, and the statistics efficiency is improved.
According to the application scenario, the method for processing the access parameter provided in the embodiment of the present application is described below in connection with a specific embodiment, where the method may be performed by a first web server, and the first web server may be any one of N second web servers shown in fig. 1, and illustratively, the first web server is web4 shown in fig. 1.
Fig. 2 is a flowchart of a processing method of access parameters according to an embodiment of the present application.
As shown in fig. 2, the processing method of the access parameter may include the following steps:
s210, acquiring N pieces of first information.
The N first information is obtained by calling first scripts in a third server by N second web servers respectively, wherein the first scripts are used for analyzing logs in corresponding second web servers to obtain the first information, and the first information comprises access parameters of first electronic equipment accessing the second web servers.
And S220, summarizing the N pieces of first information to obtain target access parameters of the first electronic equipment for accessing the N pieces of second web servers.
In the embodiment of the application, N pieces of first information are collected by obtaining N pieces of first information, and target access parameters of the first equipment for accessing N pieces of first web servers are obtained. Because the N second web servers are respectively connected with the third server, the N second web servers can respectively call the first script in the third server to obtain the access parameters (first information) of the first equipment accessing the second web servers, then one of the second web servers (the first web servers) acquires and gathers the N first information obtained by the N second web servers to obtain the target access parameters of the first equipment accessing the N second web servers, and the manual determination is not needed, so that the operation of a user is simplified, and the processing efficiency of the access parameters is improved.
The steps in fig. 2 are described in detail below, and are specifically as follows:
in S210, the first information may include an access parameter of the first electronic device accessing the second web server, which may include, but is not limited to, a device identification of the first electronic device, an access time, an access number, and the like. The device identification may be, for example, an ip of the first electronic device.
In some embodiments, the first information may be derived by the second web server invoking the first script in the third server. Specifically, the second web server may call the first script to analyze the log in the corresponding second web server through the first script to obtain access parameters of the first electronic device accessing the second web server. The first script is a file for analyzing the log in the corresponding second web server to obtain the access parameters of the first electronic device.
Illustratively, referring to FIG. 1, web1 may invoke a first script in a third server and analyze logs in web1 via the first script to obtain access parameters of a first electronic device accessing web 1. Similarly, web2, web3 and web4 may call the first script in the third server, so that each web may analyze the log in the corresponding web through the first script to obtain the access parameter of the first electronic device accessing the corresponding web, without manually logging in each web to collect and analyze the log, so that the operation of the user is simplified and the efficiency is improved.
In an embodiment of the present application, one second web server may correspond to one first information.
The logs in each second web server can be stored in a catalog in a set format according to the date, for example, the logs in 2021, 9 and 23 days in web1 can be stored in a catalog named 20210923, and each second web server can record in the form of 'h_x_f $ { http_x_forwarded_for } h_x_f', when recording the logs, so as to facilitate the subsequent extraction of an access source, wherein h_x_f is a custom separator, and http_x_forwarded_for is used for acquiring the access source, that is, accessing the first electronic device of the second web server.
It should be appreciated that the first electronic device accessing the second web server may change with time, and in order to timely learn about the access situation of the first electronic device, in some embodiments, a timing task may be set in each second web server according to actual needs, so each second web server may call the first script in timing according to the timing task, so as to determine the access parameter of the first electronic device in timing.
The timing tasks set on the different second web servers may be the same or different, i.e. each second web server may call the first script at the same point in time of the day, or may call the first script at different points in time of the day. The first script may be invoked by a plurality of second web servers simultaneously.
In some embodiments, each second web server may also obtain access parameters for the first electronic device within the specified date. Illustratively, the third server may further include a date script, and each web server may call the date script in the third server to call the first script through the date script, so as to obtain the access parameter of the first electronic device in the specified date. The date script is used to store the date.
In some embodiments, each second web server may store the first information in a specified file of the third server in a specified naming format. The specified naming format may be, for example, < < hostname > > < < date > > _ ip, where the hostname is the hostname of the first electronic device, and the specified file may be a txt file. Thus, the first web server can quickly acquire the first information obtained by each second web server.
In some embodiments, the first web server may obtain N pieces of first information by:
and calling a second script in the third server according to the first timing task to acquire N pieces of first information through the second script.
In this embodiment of the present application, the third server may further include a second script, where the second script is configured to obtain the first information obtained by each second web server.
The first timing task is used for setting the time for the first web server to acquire the N pieces of first information, and in the embodiment of the application, the first timing task is later than the timing task of each second web server, so that the access parameters obtained by the first web server can be ensured to be the latest access parameters of each first electronic device. Illustratively, each second web server invokes the first text at a time early morning each day, and the first web may invoke the second script after 1 time early morning each day, for example 2 time early morning.
In S220, it should be understood that the same electronic device may access a plurality of second web servers, and in order to count access parameters of the electronic device for accessing each second web server, the first web server may aggregate the acquired access parameters of the first electronic device, so that access parameters of the first electronic device for accessing each second web server may be obtained, without manual statistics, so that user operations are simplified, and statistics efficiency is improved.
The target access parameters may include, but are not limited to, a name of a second web server accessed by the first electronic device, an access time, a number of accesses, and the like.
In some embodiments, the first web server may call the statistical script in the third server to gather N pieces of first information obtained by the second script through the statistical script, to obtain the target access parameters of the first electronic device.
In some embodiments, the first web server may also call the statistical script in the third server at a timing that is later than the timing of the second script.
In some embodiments, the first web server may also call the statistical script in the third server according to the requirement of the user, for example, the first web server may call the statistical script again when receiving the summarizing request of the user, and summarize the N pieces of first information.
In some embodiments, after the first web server obtains the target access parameters of the first electronic devices, the target access parameters of each first electronic device may be stored in a specified location of the third server in a classified manner, so as to facilitate subsequent analysis of whether the access of each first electronic device is abnormal.
Referring to fig. 3, fig. 3 is a schematic diagram of an access parameter summarizing process according to an embodiment of the present application.
The cron_ip_count.sh is a script for storing a date, that is, a date script in the above embodiment. common_ip_count.sh is the first script, all_ip_count.sh is the statistical script in the above embodiment, and all_count.txt is used to store the summary result, that is, the target access parameter in the above embodiment.
Specifically, each of the web1, the web2, the web3 and the web4 may call the cron_ip_count.sh at regular time according to respective timing tasks to obtain the date to be summarized, and then call the common_ip_count.sh with the date in the cron_ip_count.sh as a parameter, and analyze the log corresponding to the date on the web to obtain the access parameter (first information) of the first electronic device. Then, call all_ip_count.sh through any web (in fig. 3, taking web4 as an example), collect the first information obtained by common_ip_count.sh, obtain the target access parameter of the first electronic device, and store the target access parameter in all_count.txt file. And under the condition that the target access parameter meets the alarm condition, alarming is carried out.
To analyze whether there is an abnormality in the access of the first electronic device, in some embodiments, referring to fig. 4, the processing method of the access parameter may include the steps of:
s410, acquiring N pieces of first information.
And S420, summarizing the N pieces of first information to obtain target access parameters of the first electronic equipment for accessing the N pieces of second web servers.
S430, calling a third script in the third server to analyze the target access parameters through the third script, and obtaining an analysis result.
S440, alarming under the condition that the analysis result meets the alarming condition.
The processes of S410 and S420 are the same as those of S210 and S220 in fig. 2, and specific reference may be made to the descriptions of S210 and S220, which are not repeated here for brevity.
The other steps in fig. 4 are described in detail below, and are specifically as follows:
in S430, the third script is configured to analyze the target access parameter to determine whether there is an abnormality in access of the first electronic device.
In some embodiments, the first web server may also periodically invoke a third script to periodically analyze whether there is an anomaly in the access of the first electronic device. The timing call time of the third script is later than the timing call time of the statistical script.
The first web server may store the analysis result in a specified naming format, for example, a < < hostname > < < date > -access > < < analysis ip > >, which may be a txt file, in a specified file of the third server.
In S440, the alarm condition may be set according to the requirement, for example, the number of accesses to the same second web server in the set period of time may be greater than the set number of times, and so on.
In the embodiment of the application, the first web server can call the third script in the third server to realize automatic analysis of the target access parameters without manual analysis, so that the operation of a user is simplified, and the analysis efficiency is improved.
In actual use, the user may need to analyze the access parameters of the first electronic device to the second web server within the specified date, based on which, in some embodiments, the step S430 may include the following steps:
calling a third script to access a configuration file in a third server through the third script to acquire configuration information;
and analyzing the access parameters corresponding to the configuration information in the target access parameters according to the configuration information to obtain an analysis result.
The configuration file is used for storing the date, namely, the user can configure the date to be analyzed in the configuration file, so that when the user needs to analyze the access parameters of the first electronic equipment in the appointed date, the first web server can call the configuration file to acquire the date to be analyzed, and then analyze the access parameters corresponding to the date to be analyzed in the target access parameters to acquire an analysis result meeting the user requirement. The information in the configuration file can be updated according to the needs of the user.
It should be noted that, the configuration file may store, in addition to the date, information specified by other users, so that the first web server may analyze the target access parameter based on the information configured by the users in the configuration file, to obtain an analysis result, thereby meeting the requirements of the users.
In some embodiments, before S430, the processing method of the access parameter may further include the steps of:
invoking a fourth script in the third server to scan the identification file in the third server through the fourth script to obtain an identification bit;
accordingly, S430 may include the steps of:
and under the condition that the identification bit meets the preset condition, calling a third script to analyze the target access parameter, and obtaining an analysis result.
The identification file is used for storing identification bits of each second web server, the identification bits are used for identifying whether an analysis switch corresponding to the second web server is turned on, and for example, the identification bits are 0, which can indicate that the analysis function of the second web server is turned on, that is, the second web server can be used as a first web server to analyze target access parameters, or the second web server can analyze access parameters of a first electronic device accessing the second web server; the flag bit of 1 may indicate that the analysis function of the second web server is turned off, that is, the second web server cannot be used as the first web server to analyze the target access parameter, and cannot analyze the access parameter of the first electronic device accessing the second web server. A second web server may correspond to an identification bit.
The preset condition may be a condition that allows the second web server to analyze the target access parameter as the first web server, and for example, the preset condition may be "the identification bit is 0", that is, in the case that the identification bit is 0, the second web server may serve as the first web server, call the third script, and analyze the target access parameter.
In the embodiment of the application, the identification bit of the second web server is adjusted, so that the corresponding second web server can be driven to analyze the access parameters of the first electronic equipment, and the control flexibility is improved.
Compared with the traditional scheme that logs on each second web server are led into a search engine through a log acquisition framework such as BELK and the search engine is used for carrying out statistics and analysis on access parameters, the embodiment of the application can carry out statistics and analysis on the access parameters of the first electronic equipment by utilizing interaction of the second web server and the third server without depending on a third-party open source framework, so that the requirements on computing resources and the difficulty in operation and maintenance are reduced.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an analysis process of access parameters according to an embodiment of the present application.
Wherein, cron_access_count.sh is the fourth script in the above embodiment, common_access_count.sh is the third script in the above embodiment, count_access_config.cfg is the configuration file in the above embodiment, and cron_access_count.flag is the identification file in the above embodiment.
Specifically, each web may call cron_access_count.sh to scan cron_access_count.flag through cron_access_count.sh, obtain an identification bit of the corresponding web, and in the case that the identification bit is 0 (the analysis function is opened), the web may call common_access_count.sh, analyze an access parameter of the first electronic device, and obtain an analysis result. When the access parameters of the appointed date need to be analyzed, the web can also call the count_access_config.cfg through the common_access_count.sh to acquire the date to be analyzed, and then analyze the access parameters corresponding to the date to be analyzed to obtain an analysis result.
Based on the same inventive concept, the embodiment of the application also provides a processing device of the access parameter, which can be applied to a first web server, wherein the first web server is one of N second web servers, N is an integer greater than 1, and the N second web servers are respectively connected with a third server.
The processing device for access parameters provided in the embodiment of the present application is described in detail below with reference to fig. 6.
Fig. 6 is a block diagram of a processing device for access parameters according to an embodiment of the present application.
As shown in fig. 6, the processing device of the access parameter may include:
the obtaining module 61 is configured to obtain N pieces of first information, where the N pieces of first information are respectively obtained by the N second web servers invoking first scripts in the third server, where the first scripts are used to analyze logs in corresponding second web servers to obtain first information, and the first information includes access parameters of a first device accessing the second web servers;
and the summarizing module 62 is configured to summarize the N pieces of first information to obtain target access parameters of the first device for accessing the N pieces of second web servers.
In the embodiment of the application, N pieces of first information are collected by obtaining N pieces of first information, and target access parameters of the first equipment for accessing N pieces of first web servers are obtained. Because the N second web servers are respectively connected with the third server, the N second web servers can respectively call the first script in the third server to obtain the access parameters (first information) of the first equipment accessing the second web servers, then one of the second web servers (the first web servers) acquires and gathers the N first information obtained by the N second web servers to obtain the target access parameters of the first equipment accessing the N second web servers, and the manual determination is not needed, so that the operation of a user is simplified, and the processing efficiency of the access parameters is improved.
In some embodiments, the obtaining module 61 is specifically configured to:
and calling a second script in the third server according to the first timing task to acquire the N pieces of first information through the second script.
In some embodiments, the processing device of the access parameter may further include:
the calling module is configured to call a third script in the third server after the summarizing module 62 summarizes the N pieces of first information to obtain a target access parameter of the first device for accessing the first web server, so as to analyze the target access parameter through the third script, and obtain an analysis result;
and the alarm module is used for alarming under the condition that the analysis result meets the alarm condition.
In some embodiments, the calling module is specifically configured to:
calling the third script to access a configuration file in the third server through the third script to acquire configuration information;
and analyzing the access parameters corresponding to the configuration information in the target access parameters according to the configuration information to obtain an analysis result.
In some embodiments, the calling module is further configured to:
before the third script is called to analyze the target access parameters through the third script to obtain an analysis result, a fourth script in the third server is called to scan an identification file in the third server through the fourth script to obtain an identification bit;
the calling module is specifically used for:
and under the condition that the identification bit meets the preset condition, calling the third script to analyze the target access parameter, and obtaining an analysis result.
Each module in the apparatus shown in fig. 6 has a function of implementing each step in fig. 2 to 5 and can achieve a corresponding technical effect, and for brevity description, a detailed description is omitted herein.
Based on the same inventive concept, the embodiment of the application also provides electronic equipment. The electronic device provided in the embodiment of the present application is described in detail below with reference to fig. 7.
As shown in fig. 7, the electronic device may include a service processor 71 and a memory 72 for storing computer program instructions.
The processor 71 may include a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present application.
Memory 72 may include mass storage for data or instructions. By way of example, and not limitation, memory 72 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. In one example, the memory 72 may include removable or non-removable (or fixed) media, or the memory 72 is a non-volatile solid state memory. In one example, memory 72 may be Read Only Memory (ROM). In one example, the ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
The processor 71 reads and executes the computer program instructions stored in the memory 72 to implement the method in the embodiment shown in fig. 2-5, and achieves the corresponding technical effects achieved by executing the method in the embodiment shown in fig. 2-5, which are not described herein for brevity.
In one example, the electronic device may also include a communication interface 73 and a bus 74. As shown in fig. 7, the processor 71, the memory 72, and the communication interface 73 are connected to each other by a bus 74 and perform communication with each other.
The communication interface 73 is mainly used to implement communication between each module, device and/or apparatus in the embodiments of the present application.
Bus 74 includes hardware, software, or both that couple components of the electronic device to one another. By way of example, and not limitation, bus 74 may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (MCa) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards association local (VLB) Bus, or other suitable Bus, or a combination of two or more of the above. Bus 74 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
After acquiring the N pieces of first information, the electronic device may execute the processing method of the access parameter in the embodiment of the present application, thereby implementing the processing method of the access parameter described in connection with fig. 2 to 5 and the processing device of the access parameter described in fig. 6.
In addition, in combination with the processing method of the access parameter in the above embodiment, the embodiment of the application may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a method of processing any of the access parameters of the above embodiments.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of embodiments of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (12)

1. The processing method of the access parameters is characterized by being applied to a first web server, wherein the first web server is one of N second web servers, N is an integer greater than 1, and the N second web servers are respectively connected with a third server;
the method comprises the following steps:
acquiring N pieces of first information, wherein the N pieces of first information are respectively obtained by calling first scripts in the third server by the N pieces of second web servers, the first scripts are used for analyzing logs in the corresponding second web servers to obtain the first information, and the first information comprises access parameters of first equipment accessing the second web servers;
and summarizing the N pieces of first information to obtain target access parameters of the first equipment to access the N pieces of second web servers.
2. The method of claim 1, wherein the obtaining N pieces of first information comprises:
and calling a second script in the third server according to the first timing task to acquire the N pieces of first information through the second script.
3. The method of claim 1, wherein after the summarizing the N first information to obtain the target access parameters of the first device to access the N second web servers, the method further comprises:
invoking a third script in the third server to analyze the target access parameters through the third script to obtain an analysis result;
and under the condition that the analysis result meets the alarm condition, alarming is carried out.
4. The method of claim 3, wherein the invoking the third script to analyze the target access parameter via the third script to obtain an analysis result comprises:
calling the third script to access a configuration file in the third server through the third script to acquire configuration information;
and analyzing the access parameters corresponding to the configuration information in the target access parameters according to the configuration information to obtain an analysis result.
5. A method according to claim 3, wherein before the third script is invoked to analyze the target access parameter by the third script to obtain an analysis result, the method further comprises:
invoking a fourth script in the third server to scan an identification file in the third server through the fourth script to obtain an identification bit;
the calling the third script to analyze the target access parameter through the third script to obtain an analysis result, including:
and under the condition that the identification bit meets the preset condition, calling the third script to analyze the target access parameter, and obtaining an analysis result.
6. The processing device of the access parameter is characterized by being applied to a first web server, wherein the first web server is one of N second web servers, N is an integer greater than 1, and the N second web servers are respectively connected with a third server;
the device comprises:
the system comprises an acquisition module, a first web server and a second web server, wherein the acquisition module is used for acquiring N pieces of first information, the N pieces of first information are respectively obtained by calling first scripts in the third server by the N pieces of second web servers, the first scripts are used for analyzing logs in the corresponding second web servers to obtain the first information, and the first information comprises access parameters of first equipment for accessing the second web servers;
and the summarizing module is used for summarizing the N pieces of first information to obtain target access parameters of the first equipment for accessing the N pieces of second web servers.
7. The apparatus of claim 6, wherein the obtaining module is specifically configured to:
and calling a second script in the third server according to the first timing task to acquire the N pieces of first information through the second script.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the calling module is used for calling a third script in the third server after the summarizing module summarizes the N pieces of first information to obtain target access parameters of the first web server accessed by the first equipment, so as to analyze the target access parameters through the third script to obtain an analysis result;
and the alarm module is used for alarming under the condition that the analysis result meets the alarm condition.
9. The apparatus of claim 8, wherein the calling module is specifically configured to:
calling the third script to access a configuration file in the third server through the third script to acquire configuration information;
and analyzing the access parameters corresponding to the configuration information in the target access parameters according to the configuration information to obtain an analysis result.
10. The apparatus of claim 8, wherein the calling module is further configured to:
before the third script is called to analyze the target access parameters through the third script to obtain an analysis result, a fourth script in the third server is called to scan an identification file in the third server through the fourth script to obtain an identification bit;
the calling module is specifically configured to:
and under the condition that the identification bit meets the preset condition, calling the third script to analyze the target access parameter, and obtaining an analysis result.
11. An electronic device, comprising:
a processor;
a memory for storing computer program instructions;
the method of any of claims 1-5 is implemented when the computer program instructions are executed by the processor.
12. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-5.
CN202111335718.2A 2021-11-11 2021-11-11 Access parameter processing method, device, equipment and storage medium Active CN114095484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335718.2A CN114095484B (en) 2021-11-11 2021-11-11 Access parameter processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335718.2A CN114095484B (en) 2021-11-11 2021-11-11 Access parameter processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114095484A CN114095484A (en) 2022-02-25
CN114095484B true CN114095484B (en) 2024-04-09

Family

ID=80300018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335718.2A Active CN114095484B (en) 2021-11-11 2021-11-11 Access parameter processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114095484B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000311124A (en) * 1999-04-27 2000-11-07 Nippon Telegr & Teleph Corp <Ntt> Method and device for access analysis and storage medium stored with access analyzing program
CN102349088A (en) * 2009-03-12 2012-02-08 株式会社Log System and method for integratedly managing multiple connection statistics servers
CN109688097A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 Website protection method, website protective device, website safeguard and storage medium
CN111901192A (en) * 2020-07-15 2020-11-06 腾讯科技(深圳)有限公司 Statistical method and device for page access data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11405393B2 (en) * 2019-09-25 2022-08-02 Microsoft Technology Licensing, Llc Calls to web services via service proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000311124A (en) * 1999-04-27 2000-11-07 Nippon Telegr & Teleph Corp <Ntt> Method and device for access analysis and storage medium stored with access analyzing program
CN102349088A (en) * 2009-03-12 2012-02-08 株式会社Log System and method for integratedly managing multiple connection statistics servers
CN109688097A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 Website protection method, website protective device, website safeguard and storage medium
CN111901192A (en) * 2020-07-15 2020-11-06 腾讯科技(深圳)有限公司 Statistical method and device for page access data

Also Published As

Publication number Publication date
CN114095484A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US9912691B2 (en) Fuzzy hash of behavioral results
CN111611100B (en) Transaction fault detection method, device, computing equipment and medium
CN108206769B (en) Method, apparatus, device and medium for filtering network quality alarms
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
WO2015073046A1 (en) Event-driven automation testing for mobile devices
CN109376534B (en) Method and apparatus for detecting applications
CN112214577B (en) Method, device, equipment and computer storage medium for determining target user
US20190286826A1 (en) Machine learning detection of unused open ports
CN102984161A (en) Identification method and device for reliable website
CN115277261A (en) Abnormal machine intelligent identification method, device and equipment based on industrial control network virus
CN111224807B (en) Distributed log processing method, device, equipment and computer storage medium
CN111064719A (en) Method and device for detecting abnormal downloading behavior of file
CN105515909A (en) Data collection test method and device
CN114095484B (en) Access parameter processing method, device, equipment and storage medium
CN105207842B (en) The method and system of the plug-in feature detection of Android
CN111339211A (en) Method, device, equipment and medium for analyzing network problems
US11551236B2 (en) Method and system for user protection in ride-hailing platforms based on semi-supervised learning
CN111159009B (en) Pressure testing method and device for log service system
CN112231696A (en) Malicious sample identification method and device, computing equipment and medium
CN113691483A (en) Method, device and equipment for detecting abnormal user equipment and storage medium
CN113765850A (en) Internet of things anomaly detection method and device, computing equipment and computer storage medium
CN110866031A (en) Database access path optimization method and device, computing equipment and medium
EP3982594A1 (en) Method for assessing the quality of network-related indicators of compromise
US11763004B1 (en) System and method for bootkit detection
CN105391602A (en) Data acquisition test method and device

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
GR01 Patent grant
GR01 Patent grant