嗨,我在为 ALB 侦听器设置多个证书时遇到问题。这是我的 CF 模板的片段:
DiscoveryListenerHTTPS:
Type: AWS::ElasticLoadBalancingV2::Listener
DependsOn:
- DiscoveryLoadBalancer
- DiscoveryLoadBalancerTargetGroup
Properties:
Certificates:
- CertificateArn: !Ref CertificateArn1
- CertificateArn: !Ref CertificateArn2
Run Code Online (Sandbox Code Playgroud)
和回应是:
Up to '1' certificate ARNs can be specified, but '2' were specified (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: TooManyCertificates; Request ID: XXXXXXXXX)
是否可以按顺序使用logstash过滤器?例如,我想将消息解析为 json,然后按字符拆分新创建的字段。
输入 => 过滤器 => 过滤器 => 输出 => 弹性搜索
当括号中有两个值时为什么会String.matches
返回?true
[]
System.out.println("[one]".matches("(?i).*" + "[two]" + ".*"));
//Why does it return true? Shouldn't "[]" be treated as value?
System.out.println("one".matches("(?i).*" + "two" + ".*"));//OK - prints false
System.out.println("[one]".equals("[two]"));//OK - prints false
System.out.println("one".equals("two"));//OK - prints false
Run Code Online (Sandbox Code Playgroud)