diff --git a/cmc/fms-core/dev.conf b/cmc/fms-core/cmc.conf similarity index 88% rename from cmc/fms-core/dev.conf rename to cmc/fms-core/cmc.conf index ccd620f..09bbee9 100644 --- a/cmc/fms-core/dev.conf +++ b/cmc/fms-core/cmc.conf @@ -1,6 +1,6 @@ # This is the configuration file for the gpst prod1 -include "dev_core.conf" -include "dev_actor.conf" +include "cmc_core.conf" +include "cmc_actor.conf" slick { dbs { diff --git a/cmc/fms-core/dev_actor.conf b/cmc/fms-core/cmc_actor.conf similarity index 69% rename from cmc/fms-core/dev_actor.conf rename to cmc/fms-core/cmc_actor.conf index 7d41527..7028208 100644 --- a/cmc/fms-core/dev_actor.conf +++ b/cmc/fms-core/cmc_actor.conf @@ -1,13 +1,13 @@ contact-points = [ - "akka.tcp://ClusterSystem@192.168.2.164:2551", - "akka.tcp://ClusterSystem@192.168.2.164:2552" + "akka.tcp://ClusterSystem@172.16.88.19:2551", + "akka.tcp://ClusterSystem@172.16.88.19:2552" ] play.akka.actor-system = "mkfleet-4g-actor-system" akka { remote.netty.tcp.port=45000 - remote.netty.tcp.hostname=192.168.2.164 + remote.netty.tcp.hostname=172.16.88.19 remote.netty.tcp.bind-port=45000 remote.netty.tcp.bind-hostname=0.0.0.0 diff --git a/cmc/fms-core/dev_core.conf b/cmc/fms-core/cmc_core.conf similarity index 85% rename from cmc/fms-core/dev_core.conf rename to cmc/fms-core/cmc_core.conf index b6c0f98..3436c6f 100644 --- a/cmc/fms-core/dev_core.conf +++ b/cmc/fms-core/cmc_core.conf @@ -95,7 +95,7 @@ slick { profile = "slick.jdbc.PostgresProfile$" db { driver = "org.postgresql.Driver" - url = "jdbc:postgresql://192.168.2.239/fms_api" + url = "jdbc:postgresql://172.16.88.19/fms_core" user = "postgres" password = "password" connectionTimeout = "10000" @@ -109,7 +109,7 @@ slick { # Redis jedis { - hosts = ["192.168.2.239:6379"] + hosts = ["172.16.88.19:6379"] maxIdle = 80 maxTotal = 80 timeout = 3000 @@ -124,7 +124,7 @@ jedis { provider.kafka.producerNum=6 provider.kafka.producerClientID=fleet_api_prod #kafka.server.address="b-1.mkfleet.k48ako.c2.kafka.ap-southeast-1.amazonaws.com:9092,b-2.mkfleet.k48ako.c2.kafka.ap-southeast-1.amazonaws.com:9092" -kafka.server.address="192.168.2.239:9092" +kafka.server.address="172.16.88.19:9092" kafka.gps.topic=fleet-api-gps kafka.notification.topic=fleet-api-notification @@ -132,9 +132,9 @@ kafka.sns.topic=fleet-api-sns kafka.notification-mail.topic=fleet-api-mail # fms_gps Server (waylens-fms-gps) -fms_gps.server.address = "http://192.168.2.164:9004" +fms_gps.server.address = "http://172.16.88.19:9004" # notification push server (waylens-fms-notification) -provider.waylens.notificationPusher.endpoint="http://192.168.2.164:8060/fmsKafka" +provider.waylens.notificationPusher.endpoint="http://172.16.88.19:8060/fmsKafka" # mptool server @@ -172,17 +172,17 @@ provider.att { # clip server (waylens-fms-clip) provider.backend { - endpoint="http://192.168.2.167:36458/v.1.0" + endpoint="http://172.16.88.129:36458/v.1.0" key="dqy0S3MAdDLOp50R" - endpointForRemuxMp4 ="http://192.168.2.167:16587/v.1.0" + endpointForRemuxMp4 ="http://172.16.88.129:16587/v.1.0" } # AWS provider.aws { - key = "fTbjUPzlfsxlue0O" - secret = "Gf6xyQie5QDH28y41f4mXuDzvez26cWg" - region = "cn-qingdao-1" - host = "http://192.168.2.239:9000" + key = "0YSQr57jQNAj8iX6" + secret = "l3j0x1UpCmcu8tNYp2WkArjYY1sQdU7U" + region = "vn-hanoi-1" + host = "http://172.16.88.129:9000" s3 { pathStyleAccessEnabled = true @@ -202,7 +202,7 @@ provider.aws { # Wowza parameters provider.wowza { - defaultPublishServer = "rtmp://47.104.8.46" + defaultPublishServer = "rtmp://42.96.42.10" appName = "live_fleet" publishUsername = "publishfleet" publishPassword = "aEvlBNzXvlFnjx4d" @@ -211,18 +211,18 @@ provider.wowza { playProtocol = "rtmp" playProtocolCN = "rtmp" audio{ - host="47.104.8.46" + host="42.96.42.10" port=1935 appName="live_audio", publishUsername = "fleet_audio" publishPassword = "waylensfleet2019" } privateIPMap { - #"47.104.8.46": "192.168.2.164" + #"42.96.42.10": "172.16.88.19" } domainMap { - "192.168.2.164": "47.104.8.46" + "172.16.88.19": "42.96.42.10" } } @@ -240,37 +240,37 @@ provider.wowza { # clip storage & cloudfront clip.storage.bucket = "/mkfleet/clip/" clip.storage.address { - default = "https://minio.dev.eveus.com/mkfleet/clip/" + default = "https://minio.cmc.eveus.com/mkfleet/clip/" } # streaming storage & cloudfront streaming.storage.bucket = "/mkfleet/live_video/" streaming.storage.address { - default = "https://minio.dev.eveus.com/mkfleet/live_video/" + default = "https://minio.cmc.eveus.com/mkfleet/live_video/" } # firmware storage & cloudfront firmware.storage.bucket= "/mkfleet/firmware" firmware.storage.address { - default = "https://minio.dev.eveus.com/mkfleet/firmware/" + default = "https://minio.cmc.eveus.com/mkfleet/firmware/" } # gpsReport.storage cloudfront gpsReport.storage.address { - default = "https://minio.dev.eveus.com/mkfleet/gps_data_report/" + default = "https://minio.cmc.eveus.com/mkfleet/gps_data_report/" } # fleetReport.storage cloudfront fleetReport.storage.address { - default = "https://minio.dev.eveus.com/mkfleet/fleet_report/" + default = "https://minio.cmc.eveus.com/mkfleet/fleet_report/" } # log storage cloudfront -log.storage.address = "https://minio.dev.eveus.com/mkfleet/log/" +log.storage.address = "https://minio.cmc.eveus.com/mkfleet/log/" # audio storage & cloudfront audio.storage.bucket="mkfleet" -audio.storage.address="https://minio.dev.eveus.com/mkfleet/audio/" +audio.storage.address="https://minio.cmc.eveus.com/mkfleet/audio/" clip.request.pendingTimeout = 604800 diff --git a/cmc/fms-gps/cmc.conf b/cmc/fms-gps/cmc.conf new file mode 100644 index 0000000..71b634b --- /dev/null +++ b/cmc/fms-gps/cmc.conf @@ -0,0 +1,6 @@ +include "cmc_application" + +compress.devices { + count = 1 + currentValue = 0 +} diff --git a/cmc/fms-gps/cmc_application.conf b/cmc/fms-gps/cmc_application.conf new file mode 100644 index 0000000..065d910 --- /dev/null +++ b/cmc/fms-gps/cmc_application.conf @@ -0,0 +1,72 @@ + +play.http.secret.key="qrzrCr;PbI5tzSmTZ:BT3OCiSpG=pF7T0<;TDB^wKo8M]I_UdyeEbNm?lPFILJVG" +play.i18n.langs=[ "en" ] + + +play.modules { + enabled += "modules.AppModule" + enabled += "tasks.TrackTasksModule" + enabled += "tasks.GpsWritingTasksModule" + enabled += "tasks.TableTasksModule" +} + +play.evolutions { + enabled = true + autoApply = true +} + +slick { + dbs { + default { + profile = "slick.jdbc.PostgresProfile$" + db { + driver = "org.postgresql.Driver" + url = "jdbc:postgresql://172.16.88.19:5432/fms_gps" + user = "postgres" + password = "password" + connectionTimeout = "10000" + numThreads = 10 // evolutions is 20 + maxConnections = 10 // evolutions is 5*numThread + + } + } + } +} + +# Filter +play.filters { + enabled += "play.filters.cors.CORSFilter" + enabled += "play.filters.hosts.AllowedHostsFilter" + cors { + pathPrefixes = ["/"] + allowedHttpMethods = ["POST", "GET", "PUT", "DELETE", "OPTIONS"] + allowedHttpHeaders = ["Origin", "X-Requested-With", "Content-Type", "Accept", "Referer", "User-Agent", "X-Auth-Token"] + supportsCredentials = false + } + hosts { + allowed = ["."] + } +} + +play.http { + forwarded.trustedProxies = ["0.0.0.0/0"] + parser.maxDiskBuffer = 209715200 //200M default + parser.maxMemoryBuffer = 2M +} + +kafka { + server.address="172.16.88.19:9092" + gps { + topic = "fleet-api-gps" + insert.timeout = 300 + batchReceive = 100 + consumer.groupID = "fleet-gps-api-consumer-write2db" + } +} + +kafka.gps.insert.timeout = 300 + +compress.devices { + count = 1 + currentValue = 0 +} diff --git a/cmc/fms-gps/logback.xml b/cmc/fms-gps/logback.xml new file mode 100644 index 0000000..85c1cb1 --- /dev/null +++ b/cmc/fms-gps/logback.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5} + + + + + + ${log.txtfile}_%d{yyyy-MM-dd}.log + + + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}][%-5level][%logger{128}][%thread] %message%n%xException{5} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cmc/fms-notification/config/cmc.yaml b/cmc/fms-notification/config/cmc.yaml new file mode 100644 index 0000000..8ae5e83 --- /dev/null +++ b/cmc/fms-notification/config/cmc.yaml @@ -0,0 +1,70 @@ +kafka: + consumerID: fleet_notification + topic: + gps: fleet-api-gps + general: fleet-api-notification + sns: fleet-api-sns + mail: fleet-api-mail + group: + gps: fms-notificaiton-group + general: fms-notification-group + brokers: + - 172.16.88.19:9092 + minBytes: 1e3 + maxBytes: 2e6 + maxWait: 5000 + maxDealRoutineNum: 10 + setOffset: + generalType: false + generalValue: + gpsType: false + gpsValue: + commitInterval: + gps: 1000 + general: 0 + version: 2.6.3 + +# log metrics information after every sampleInterval record consumed +metrics: + sampleInterval: + gps: 100 + general: 100 + +# aws: +# config: +# region: us-east-1 +# credentialsID: AKIAITM3NWTL6U5ZLS4Q +# credentialsSecret: TIOcfryyo585Gl1kfLUmZE4RGsBqz6T3HTI+JGFS +# topicArn: arn:aws:sns:us-east-1:955954582473:fleet_sns_forward + +gin: + maxTime: 12 + port: :8060 + +postGre: + maxIdleConns: 5 + maxOpenConns: 15 + host: 172.16.88.19 + port: 5432 + user: postgres + dbname: fms_notification + password: password + +redis: + index: 9 + network: tcp + address: 172.16.88.19:6379 + + +# sendgrid: +# apiKey: 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 +# senderName: no-reply +# senderAddress: no-reply@waylens.com +# midEndName: dev +# midEndEmail: yu.shi@waylens.com +# midEndEmail: midend@waylens.com + +gps: + biasTime: 5 + +fmsGpsServerAddress: http://172.16.88.19:9004 diff --git a/cmc/fms-sns/config/cmc.yaml b/cmc/fms-sns/config/cmc.yaml new file mode 100644 index 0000000..3a5df61 --- /dev/null +++ b/cmc/fms-sns/config/cmc.yaml @@ -0,0 +1,60 @@ +kafka: + consumerID: fleet_notification + topic: + sns: fleet-api-sns + mail: fleet-api-mail + group: + sns: fms-sns-group + mail: fms-sns-group + brokers: + - 172.16.88.19:9092 + minBytes: 1e3 + maxBytes: 2e6 + maxWait: 5000 + maxDealRoutineNum: 10 + setOffset: + snsType: false + snsValue: + mailType: false + mailValue: + commitInterval: + sns: 1000 + mail: 0 + version: 2.6.3 + +gin: + maxTime: 12 + port: :9006 + +redis: + index: 9 + network: tcp + address: 172.16.88.19:6379 + +gps: + biasTime: 5 + +fmsGpsServerAddress: http://172.16.88.19:9004 + +mail: + protocol: imap + server: + host: smtp.office365.com + port: 587 + auth: true + username: cap.cloud@eveus.com + password: kMBeqHkxp3sxU3Rg + skipCertCheck: true + from: cap.cloud@eveus.com + fromName: 好车主管理员 + cc: 23553219@qq.com + to: + Default: limin.zhang@eveus.com,orchidflower@qq.com + CameraNotExist: limin.zhang@eveus.com,orchidflower@qq.com + EnvChange: + DifferentAttUsages: + KafkaError: + GetMileageError: + GetGpsSeqError: + + diff --git a/cmc/wowza/Server.xml b/cmc/wowza/Server.xml new file mode 100644 index 0000000..77be1a5 --- /dev/null +++ b/cmc/wowza/Server.xml @@ -0,0 +1,227 @@ + + + + Wowza Streaming Engine + Wowza Streaming Engine is robust, customizable, and scalable server software that powers reliable streaming of high-quality video and audio to any device, anywhere. + + true + * + 8087 + + + none + + bcrypt + true + + false + + + JKS + TLS + SunX509 + + + + + * + + false + false + 8089 + + none + + + + + + ${com.wowza.wms.TuningAuto} + * + 8083 + + + + + Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker + + + true + + + + false + localhost + localhost + 8084 + 8085 + true + ${com.wowza.wms.ConfigHome}/conf/jmxremote.password + ${com.wowza.wms.ConfigHome}/conf/jmxremote.access + false + + Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh) + + mp4 + + + + com.wowza.wms.mediacache.impl.MediaCacheServerListener + + + + + + + + com.wowza.wms.plugin.loadbalancer.listeners.ServerListener + + + + + com.wowza.wms.plugin.loadbalancer.listeners.VHostListener + + + + ${com.wowza.wms.TuningAuto} + + + ${com.wowza.wms.TuningAuto} + + + 6970 + false + + + + + + + + + + + + + + + loadbalanceType + Server,Client + String + + + loadbalanceKey + 8caf20bfa1ab3024 + String + + + loadbalanceDebugServerDecision + True + String + + + loadbalanceServerDecisionOrder + Connection, Bandwidth + String + + + loadbalanceServerListenApplicationNames + + String + + + + + loadbalanceServerListenPort + 1936 + String + + + loadbalanceDebug + False + String + + + + loadbalanceDebugServerExtension + False + String + + + loadbalanceDebugClientProcess + False + String + + + loadbalanceDebugClientExtension + False + String + + + loadbalanceDebugClientCommunications + False + String + + + + + loadbalanceServerIP + + 172.16.88.19 + String + + + loadbalanceServerPort + 1936 + String + + + loadbalanceClientName + wowza_01 + String + + + loadbalanceApplicationsInclude + live_fleet + String + + + loadbalanceClientConnectionEnable + on + String + + + loadbalanceClientConnectionLimit + 200 + String + + + loadbalanceClientCountSourceClient + True + String + + + loadbalanceClientForceIP + 42.96.42.88 + String + + + loadbalanceClientForcePort + 1935 + String + + + + diff --git a/cmc/wowza/VHost.xml b/cmc/wowza/VHost.xml new file mode 100644 index 0000000..342c866 --- /dev/null +++ b/cmc/wowza/VHost.xml @@ -0,0 +1,330 @@ + + + + + + + Default Streaming + Streaming + ${com.wowza.wms.TuningAuto} + * + + + + 1935 + + + true + + 65000 + 65000 + 65000 + + true + + + + + 100 + + cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming,mpegdashstreaming + + + com.wowza.wms.http.HTTPCrossdomain + *crossdomain.xml + none + + + com.wowza.wms.http.HTTPClientAccessPolicy + *clientaccesspolicy.xml + none + + + com.wowza.wms.http.HTTPProviderMediaList + *jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m + none + + + com.wowza.wms.http.HTTPServerVersion + *ServerVersion + none + + + + + Default Admin + Admin + ${com.wowza.wms.TuningAuto} + * + 8086 + + + true + 16000 + 16000 + 16000 + true + 100 + + + + + com.wowza.wms.http.HTTPServerInfoXML + serverinfo* + admin-basic + + + com.wowza.wms.http.HTTPConnectionInfo + connectioninfo* + admin-basic + + + com.wowza.wms.http.HTTPConnectionCountsXML + connectioncounts* + admin-basic + + + com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail + transcoderthumbnail* + admin-basic + + + com.wowza.wms.http.HTTPProviderMediaList + medialist* + admin-basic + + + com.wowza.wms.http.HTTPServerVersion + *ServerVersion + none + + + + + loadbalancer + 1936 + * + Admin + ${com.wowza.wms.TuningAuto} + + + true + 16000 + 16000 + 16000 + true + 100 + + + + + com.wowza.wms.http.HTTPServerInfoXML + serverinfo* + admin-digest + + + com.wowza.wms.http.HTTPConnectionInfo + connectioninfo* + admin-digest + + + com.wowza.wms.http.HTTPConnectionCountsXML + connectioncounts* + admin-digest + + + com.wowza.wms.transcoder.httpprovider.HTTPTranscoderThumbnail + transcoderthumbnail* + admin-digest + + + com.wowza.wms.http.HTTPProviderMediaList + medialist* + admin-digest + + + com.wowza.wms.http.HTTPServerVersion + *ServerVersion + none + + + + + + + smoothstreaming + smoothstreaming + + + + + cupertinostreaming + cupertinostreaming + + + + + sanjosestreaming + sanjosestreaming + + + + + dvrchunkstreaming + dvrchunkstreaming + + + + + mpegdashstreaming + mpegdashstreaming + + + + + tsstreaming + tsstreaming + + + + + webmstreaming + webmstreaming + + + + + + + 0 + + + 0 + + + ${com.wowza.wms.TuningAuto} + 50 + 5 + + + ${com.wowza.wms.TuningAuto} + 250 + + true + 65000 + 65000 + 65000 + true + + + + + 100 + + + + ${com.wowza.wms.TuningAuto} + + true + 65000 + 65000 + 65000 + true + + + + + 10000 + + + + 0 + + + 2000 + + + 90000 + 250 + + + + 75 + + + true + 2048000 + 65000 + + + + 50 + 4096 + + + true + 65000 + 256000 + + + + 50 + 4096 + + + + ${com.wowza.wms.TuningAuto} + + + ${com.wowza.wms.TuningAuto} + + + ${com.wowza.wms.TuningAuto} + + + ${com.wowza.wms.TuningAuto} + + + + 2000 + 10000 + 64000 + 250 + + + 512k + 0 + false + 250 + 20000 + 0 + 12000 + + + 60000 + 12000 + 30000 + 20000 + 0 + 60000 + + true + + + ${com.wowza.wms.HostPort.IpAddress} + ${com.wowza.wms.HostPort.FirstStreamingPort} + ${com.wowza.wms.HostPort.SSLEnable} + + + + + + + + + + diff --git a/cmc/wowza/live_fleet/Application.xml b/cmc/wowza/live_fleet/Application.xml new file mode 100644 index 0000000..56cf7b8 --- /dev/null +++ b/cmc/wowza/live_fleet/Application.xml @@ -0,0 +1,400 @@ + + + + live_fleet + Live + + + + true + + + + + live-record-lowlatency + /opt/wowza/live_fleet + ${com.wowza.wms.context.VHostConfigHome}/keys + + cupertinostreamingpacketizer + + + + flushInterval + 25 + Integer + + + onFlushNotifyClients + true + Boolean + + + + + + + + ${SourceStreamName}.xml,transrate.xml + ${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles + ${com.wowza.wms.context.VHostConfigHome}/transcoder/templates + + + + + + + + + + + + + + + 0 + + ${com.wowza.wms.context.VHostConfigHome}/dvr + + append + + + + + + + + + + + + + cupertinostreaming + + + + + ${com.wowza.wms.context.VHostConfigHome}/applications/${com.wowza.wms.context.Application}/sharedobjects/${com.wowza.wms.context.ApplicationInstance} + + + -1 + + * + * + + + * + * + + + + + + digest + block + + + senderreport + 12000 + 75 + 90000 + 0 + + 0.0.0.0 + 127.0.0.1 + * + + + + + + + false + + false + + false + + + + 127.0.0.1,tcp,1935 + + + + opus,pcmu,pcma + + vp8,h264 + + false + + + + + + + + + interleave + + + + true + true + 20000 + 12000 + 0 + 0 + 0 + 0 + false + 3000 + -500 + false + 3000 + -500 + false + 3000 + -500 + false + 1500 + false + + + + + + + + + + + + + + + + + + + + cupertinoChunkDurationTarget + 5000 + Integer + + + + + + + + + + + + + + + + + + + + + streamRecorderDebugEnable + true + Boolean + + + streamRecorderFileVersionTemplate + ${SourceStreamName}_${SegmentTime} + String + + + streamRecorderSegmentationType + duration + String + + + streamRecorderSegmentDuration + 900000 + Integer + + + + + + base + Base + com.wowza.wms.module.ModuleCore + + + logging + Client Logging + com.wowza.wms.module.ModuleClientLogging + + + flvplayback + FLVPlayback + com.wowza.wms.module.ModuleFLVPlayback + + + ModuleCoreSecurity + Core Security Module for Applications + com.wowza.wms.security.ModuleCoreSecurity + + + ModuleSecureURLParams + ModuleSecureURLParams + com.wowza.wms.security.ModuleSecureURLParams + + + Security360Module + Notify stream status + com.waylens.wms.Security360Module + + + s3uploader + upload to s3 + com.waylens.wms.ModuleS3Upload + + + + + + pushPublishMapPath + ${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt + String + + + s3UploadAccessKeyID + fTbjUPzlfsxlue0O + String + + + s3UploadAccessKeySecret + Gf6xyQie5QDH28y41f4mXuDzvez26cWg + String + + + s3UploadBucketName + mkfleet + String + + + s3UploadRegion + cn-qingdao-1 + String + + + s3UploadHost + http://172.16.88.19:9000 + String + + + s3UploadVersionFile + false + Boolean + + + s3UploadDeleteOriginalFiles + false + Boolean + + + s3UploadDebugLog + true + Boolean + + + s3UploadNotifyUrl + http://172.16.88.19:9000/wowza/notify_upload + String + + + s3UploadStreamInfoUrl + http://172.16.88.19:9000/wowza/streamInfo + String + + + Security360StreamStatusNotifyUrl + http://172.16.88.19:9000/wowza/notify_streaming + String + + + securityPublishBlockDuplicateStreamNames + true + Boolean + + + s3UploadFilePrefix + live_video + String + + + s3UploadUseSSE + false + Boolean + + + s3UploadRestartFailedUploads + true + Boolean + + + securityDebugLogRejections + true + Boolean + + + securityDebugLogDetails + true + Boolean + + + securityPublishValidEncoders + Wirecast/|FME/|FMLE/|Wowza GoCoder*|Lavf/|UA Teradek/|KulaByte/|HaivisionKB/|VidBlaster/|XSplit/|PESA|makitoX/|Elemental Live/|WaylensHorn + String + + + securitySecureTokenVersion + 2 + Integer + + + securitySecureTokenSharedSecret + eeYJSVCkttNVGLIY + String + + + securitySecureTokenHashAlgorithm + SHA-256 + String + + + securitySecureTokenQueryParametersPrefix + fleet + String + + + secureurlparams.publish + aEvlBNzXvlFnjx4d.publishfleet + + + + diff --git a/cmc/wowza/log4j2-config.xml b/cmc/wowza/log4j2-config.xml new file mode 100644 index 0000000..de2b38a --- /dev/null +++ b/cmc/wowza/log4j2-config.xml @@ -0,0 +1,243 @@ + + + + + + + %replace{%X{x-severity}}{^$}{-} %replace{%X{x-category}}{^$}{-} %replace{%X{x-event}}{^$}{-} %replace{%X{x-ctx}}{^$}{-} %replace{%X{x-comment}}{^$}{-}%n + false + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n
+ %d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n + false +
+ + + + + + + + +
+ + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n
+ %replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n + false +
+ + + + + + + + +
+ + + + + + + + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n
+ %replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n + false +
+ + + + + + + + +
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n
+ %d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n
+ %replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n
+ %d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n
+ %replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: date\ttime\ttz\tx-event\tx-category\tx-severity\tx-status\tx-ctx\tx-comment\tx-vhost\tx-app\tx-appinst\tx-duration\ts-ip\ts-port\ts-uri\tc-ip\tc-proto\tc-referrer\tc-user-agent\tc-client-id\tcs-bytes\tsc-bytes\tx-stream-id\tx-spos\tcs-stream-bytes\tsc-stream-bytes\tx-sname\tx-sname-query\tx-file-name\tx-file-ext\tx-file-size\tx-file-length\tx-suri\tx-suri-stem\tx-suri-query\tcs-uri-stem\tcs-uri-query%n
+ %d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%d{z}\t%replace{%X{x-event}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-status}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}\t%replace{%X{x-vhost}}{^$}{-}\t%replace{%X{x-app}}{^$}{-}\t%replace{%X{x-appinst}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{s-ip}}{^$}{-}\t%replace{%X{s-port}}{^$}{-}\t%replace{%X{s-uri}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-proto}}{^$}{-}\t%replace{%X{c-referrer}}{^$}{-}\t%replace{%X{c-user-agent}}{^$}{-}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-sname-query}}{^$}{-}\t%replace{%X{x-file-name}}{^$}{-}\t%replace{%X{x-file-ext}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-suri}}{^$}{-}\t%replace{%X{x-suri-stem}}{^$}{-}\t%replace{%X{x-suri-query}}{^$}{-}\t%replace{%X{cs-uri-stem}}{^$}{-}\t%replace{%X{cs-uri-query}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ + + + + + +
#Version: 1.0\n#Start-Date: %d{YYY-MM-dd HH:mm:ss zzz}\n#Software: ${sys:wse-software-version}\n#Date: %d{YYY-MM-dd}\n#Fields: x-severity\tx-category\tx-event\tdate\ttime\tc-client-id\tc-ip\tc-port\tcs-bytes\tsc-bytes\tx-duration\tx-sname\tx-stream-id\tx-spos\tsc-stream-bytes\tcs-stream-bytes\tx-file-size\tx-file-length\tx-ctx\tx-comment%n
+ %replace{%X{x-severity}}{^$}{-}\t%replace{%X{x-category}}{^$}{-}\t%replace{%X{x-event}}{^$}{-}\t%d{yyyy-MM-dd}\t%d{HH:mm:ss}\t%replace{%X{c-client-id}}{^$}{-}\t%replace{%X{c-ip}}{^$}{-}\t%replace{%X{c-port}}{^$}{-}\t%replace{%X{cs-bytes}}{^$}{-}\t%replace{%X{sc-bytes}}{^$}{-}\t%replace{%X{x-duration}}{^$}{-}\t%replace{%X{x-sname}}{^$}{-}\t%replace{%X{x-stream-id}}{^$}{-}\t%replace{%X{x-spos}}{^$}{-}\t%replace{%X{sc-stream-bytes}}{^$}{-}\t%replace{%X{cs-stream-bytes}}{^$}{-}\t%replace{%X{x-file-size}}{^$}{-}\t%replace{%X{x-file-length}}{^$}{-}\t%replace{%X{x-ctx}}{^$}{-}\t%replace{%X{x-comment}}{^$}{-}%n + false +
+ + + + + + + + +
+
+ + + +
+
+ +
+ + + + + + + + + + + + + + +