add hostname logname segment