Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How can we build a SOLR Schema für SYSLOGS with sorting and searching functionality?

Re: How can we build a SOLR Schema für SYSLOGS with sorting and searching functionality?

New Contributor

Hi @bkosaraju,

i have some problems configuring filed mapping for each of the json fields.

This is the json file structure :
{

"event_timestamp":"${time:substring(0,20):toDate('yyyy MMM dd HH:mm:ss'):format('yyyy-MM-dd HH:mm:ss')}",

"host":"${message:substring(21):substringBefore('')}",

"message":"${message:substring(21):substringAfter(' '):replace('"', '\\\\"')}"

}

this is my PutSolrContentStream config:

Indexing failed ...

Highlighted

Re: How can we build a SOLR Schema für SYSLOGS with sorting and searching functionality?

New Contributor

37381-putsolrstreamcontent.png

PutSolrStreamContent config

Re: How can we build a SOLR Schema für SYSLOGS with sorting and searching functionality?

New Contributor

Hi @bkosaraju,

sorry, was my fault!
Solution runs fine !!!
My input data was wrong!

Thanks, great solution.
Timo

Don't have an account?
Coming from Hortonworks? Activate your account here