Skip to content

Instantly share code, notes, and snippets.

View EricVS's full-sized avatar

Eric Van Steenbergen EricVS

  • Manila, Philippines
View GitHub Profile
log message:
2019-03-28 06:25:29.203 [http-nio-8080-exec-48] INFO LSL_LOG {"timestamp":"2019-03-28T06:25:29.199Z","gametime":"00:00:00.610","ipaddress":"128.199.97.19","uri":"/ps/game/GameContainer.action","params":"[brandId=1,gameId=star,platform=STAR,playForReal=false,isMobile=true]","playerid":"","partyid":""}
parser:
(?<time>\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{1,})\s\[(?<threadid>.{1,})\]\sINFO\s.*LSL_LOG\s.*\{"timestamp":"(?<timestamp>.{1,})","gametime":"(?<gametime>.{1,})","ipaddress":"(?<ipaddress>.{1,})","uri":"(?<uri>.{1,})","params":"\[brandId=(?<brandid>\d{1,}),gameId=(?<gameid>.{1,}),platform=(?<platform>.{1,}),playForReal=(?<playforreal>.{1,}),isMobile=(?<ismobile>.{1,})\]","playerid":"(?<playerid>.{0,})","partyid":"(?<partyid>.{0,})"\}
works in Rubular and regex101 but in Elasticsearch after fluent-bit pushes it the entire message is container in 'log'.
{
"_index": "flbit-fg-2019.04.02",
@EricVS
EricVS / genesis_public_key
Created February 23, 2018 13:28
genesis_public_key
04b3a598d02fe3eb8edbffbbf8a3c8d980f7263c040f2e308fb7b5b7b55af2b794f573f156c34fdb2672de177d90a20de6e23b838f8165642a568e3d3eecc89f0e
---
apiVersion: v1
kind: Service
metadata:
name: zk-hs
labels:
app: zk
spec:
ports:
- port: 2888
@EricVS
EricVS / kafka_mini.yml
Created January 26, 2018 05:21
Kafka file
---
apiVersion: v1
kind: Service
metadata:
name: kafka-hs
labels:
app: kafka
spec:
ports:
- port: 9093
Readiness probe failed: Exception in thread "main" java.lang.RuntimeException: Request METADATA failed on brokers List(localhost:9093 (id: -1 rack: null)) at kafka.admin.AdminClient.sendAnyNode(AdminClient.scala:66) at kafka.admin.AdminClient.findAllBrokers(AdminClient.scala:90) at kafka.admin.AdminClient.listAllBrokerVersionInfo(AdminClient.scala:136) at kafka.admin.BrokerApiVersionsCommand$.execute(BrokerApiVersionsCommand.scala:42) at kafka.admin.BrokerApiVersionsCommand$.main(BrokerApiVersionsCommand.scala:36) at kafka.admin.BrokerApiVersionsCommand.main(BrokerApiVersionsCommand.scala)
Back-off restarting failed container
Error syncing pod
2017.07.27 05:10:23 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2017.07.27 05:10:23 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2017.07.27 05:10:24 INFO web[][o.e.plugins] [3-D Man] modules [], plugins [], sites []
2017.07.27 05:10:24 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.07.27 05:10:24 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.4.0.25310 / ad64a17b531c0e1f6fef0ce7e4d0d0b060977754
2017.07.27 05:10:24 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:mysql://XXXXXXXXXXXXX:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
2017.07.27 05:10:25 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonar
2017.07.27 05:10:25 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin C# / 5.10.1.1411 / 748a97f89a5327cbea5cfe1f8aebe87d073c74a0
2017.07.27 05:10:25 INFO web[][o.s.s.p.ServerPluginRepository] D