EA-002613> <09.Ara.2019 20:10:36,792 EET> <09.Ara.2019,spring,weblogic"/>

首页 > 解决方案 >

EA-002613> <09.Ara.2019 20:10:36,792 EET> <09.Ara.2019

问题描述

EA-002613> <09.Ara.2019 20:10:36,792 EET> <09.Ara.2019 20:10:36,792 EET> <09.Ara.2019 20:10:36,793 EET> <09.Ara.2019 20 :10:36,814 EET> <09.Ara.2019 20:10:36,815 EET> <09.Ara.2019 20:10:36,815 EET> <09.Ara.2019 20:10:36,816 EET> <09.Ara. 2019 20:10:36,815 EET> <09.Ara.2019 20:10:36,816 EET> <09.Ara.2019 20:10:36,816 EET> <09.Ara.2019 20:10:36,817 EET> <09. Ara.2019 20:10:36,817 EET> <09.Ara.2019 20:10:36,819 EET>


我们可以创建一个条件来检查特定组的所有元素列是否为NA,然后返回NA,否则返回paste非 NA 元素str_c

library(stringr)
library(dplyr)
library(tidyr)
df2 %>%
    mutate(Body_text = sub("^.*Agent\\s\\w+", "", Body_text)) %>%
    separate_rows(Body_text, sep="\\s(?=\\w+:)") %>% 
    separate(Body_text, into = c("Text_from", "value"), sep=":\\s?") %>%
    na.omit %>% 
    group_by(Id, newgrp = str_c('Text_from_', 
        replace(Text_from, Text_from != "Customer", "Agent"))) %>%
    mutate(rn = row_number()) %>%
    pivot_wider(names_from = newgrp, values_from = value) %>%
    group_by(Id) %>% 
    summarise(AgentName = first(Text_from),
              Text_from_Agent =  = if(all(is.na(Text_from_Agent))) NA_character_ else str_c(Text_from_Agent[!is.na(Text_from_Agent)]), collapse=' '),
              Text_from_Customer = if(all(is.na( Text_from_Customer))) NA_character_ else str_c( Text_from_Customer[!is.na( Text_from_Customer)]), collapse=' '))

标签: springweblogic

解决方案


从标题我想你想知道为什么“”映射到 Weblogic 中的多个 IP 地址。如果您没有在监听地址中提供主机名/IP,那么 Weblogic 将监听所有可用地址。因此,您的 Weblogic Server 正在侦听所有可用的 IP 地址。


推荐阅读