How would someone do to get a "complete hostname with url" field
using : hostname.raw and url.raw
hostname is shown in log as : hostname="cm.g.doubleclick.net"
url is shown as : url="/pixel?google_nid=eyereturn&g=fde2328d-182e-49fa-a232-8d182ef9fafe&google_hm=eIyjRguSfqiMo0YLvn6_g&google"
So, there currently a limitation with scripted fields that does not allow string manipulation. It's a limitation of Lucene expressions.
My suggestion would be to do the string concatenation when you index the documents so you have three fields. hostname, url and full_url
I use a logstash input file 10-network.conf that fetch logs from /var/log/network.log using kv filter and some mutate. then output using 50-output.conf
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.