I find this bit in the help text for the search bar:

"Note that leading wildcards are disabled to avoid excessive memory
consumption! You can enable them in your graylog-server.conf:
allow_leading_wildcard_searches = true

Also note that message, full_message, and source are the only fields that
can be searched via wildcard by default."

I find that if I extract fields that are single words, I can search for
them by exact match, and oddly, I am able to do a field match with a
trailing *, but not a leading one, and not a subset of the word.  Ie I can
do exact match, and 'starts with' but nothing else on my extracted field.

I've noticed that regular expressions like those you use in the extractors
don't work in the search bar itself, the syntax there is much more basic
and limited.

I don't use extractors to pull out entire phrases, I create individual
fields for the pieces of the phrase I care about and leave it at that.  I
might use the phrase format as the control expression, though.



On Sun, Nov 22, 2015 at 2:48 AM, Jason Haar <[email protected]> wrote:

> Hi there
>
> I created an extractor to extract part of a record and associate it with
> a new fieldname. That works fine - expanding affected records inside
> graylog-web shows the new field shows up with the correct sub-section of
> the original message in it.
>
> However, if I search for a word inside that matched field, I get no
> hits. When I do the same search using the default "message" field - I
> get the hits expected.
>
> So what I have I missed? When you create new fields using extractors,
> how do you ensure they are searchable using (I guess) substring matches?
> It was a "word" that showed up in the middle of the "sentence" that was
> associated with the new fieldname - ie pretty simple. And yet I couldn't
> search for a word? The converter on the extractor was the default
> "Numeric" - should it be something else?
>
> This is graylog-1.2.2
>
> Thanks
>
> --
> Cheers
>
> Jason Haar
> Corporate Information Security Manager, Trimble Navigation Ltd.
> Phone: +1 408 481 8171
> PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Graylog Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/graylog2/5651814D.7000003%40trimble.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/CAL5rfGWUM3e%2BvxEOsYn%2BSOCb%2BqeWO%2BoHCYYGJFByGP4F8EudHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to