Splunk Search

why I am not able to find my string using search?

Abilan1
Path Finder

I am trying to find the string using search "com.jdedwards.system.connector.dynamic.InvalidRemoteSessionException". This string is already present in the log which is uploaded in splunk. But I wonder I can find this string which is also present in the log "com.jdedwards.system.connector.dynamic.InvalidSessionException". the only difference between that two string is only one word "Remote". is there any character limit for this?

Tags (1)
0 Karma
1 Solution

chimell
Motivator

Hi Abilan

If you indexed you log data in a sourcetype , just write your sourcetype name and follow it by these strings:

"InvalidRemoteSessionException" and "InvalidSessionException"

Run this search code

sourcetype=........ "InvalidRemoteSessionException" and "InvalidSessionException"

I think it will work

View solution in original post

0 Karma

chimell
Motivator

Hi Abilan

If you indexed you log data in a sourcetype , just write your sourcetype name and follow it by these strings:

"InvalidRemoteSessionException" and "InvalidSessionException"

Run this search code

sourcetype=........ "InvalidRemoteSessionException" and "InvalidSessionException"

I think it will work

0 Karma

chimell
Motivator

thanks good

0 Karma

Abilan1
Path Finder

Hi Chimell,

you are correct.. It also worked. I have made a custom type for my log. Include that also in the search.

Thank you so much....

Regards,
Abilan

0 Karma

sk314
Builder

did you try searching for "*InvalidRemoteSessionException*" and "*InvalidSessionException*"?

0 Karma

Abilan1
Path Finder

Thank You so much. It worked "InvalidRemoteSessionException" .. May i know why we need to include ** in prefix as well suffix?

0 Karma

sk314
Builder

I wasn't sure if you had any events with something following the keywords. So just to be safe, I included the * as the suffix.

0 Karma

Abilan1
Path Finder

Great..Thanks again!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...