I am looking to add new fields based on the parsing of an existing field.
The documents are apache acccess logs entreis and are already indexed. I
want to add new fields on a parsed user agemt to add browser, os and
type,etc.
A facet query by user agent to return the top user agents.
Parse the returned facet user agents and create new fields for browser,
os and type for each
Query each user agent from #1, to obtin a lsit of document ids.
Use the update api to add the fields from #2 to each documetn of #3
(loop though the list)
I am looking to add new fields based on the parsing of an existing field.
The documents are apache acccess logs entreis and are already indexed. I
want to add new fields on a parsed user agemt to add browser, os and
type,etc.
A facet query by user agent to return the top user agents.
Parse the returned facet user agents and create new fields for
browser, os and type for each
Query each user agent from #1, to obtin a lsit of document ids.
Use the update api to add the fields from #2 to each documetn of #3
(loop though the list)
Matt,
Thanks. I am using logstash, but these are already indexed documents. In
the future I was thinking a creating a LS filter plug-in to fix the issue.
As in parsing the user agent I was planning to use a external lookup
service via an api (http://useragentstring.com)
On Friday, January 18, 2013 4:41:29 PM UTC-5, Matt Weber wrote:
I am looking to add new fields based on the parsing of an existing field.
The documents are apache acccess logs entreis and are already indexed. I
want to add new fields on a parsed user agemt to add browser, os and
type,etc.
A facet query by user agent to return the top user agents.
Parse the returned facet user agents and create new fields for
browser, os and type for each
Query each user agent from #1, to obtin a lsit of document ids.
Use the update api to add the fields from #2 to each documetn of #3
(loop though the list)
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.