Splunk Search

Splunk has to segregate the Logs when we imported.

riyaz551
New Member

Hi

I need to segregate the logs which we imported splunk.

Ex:- I want to extract the logs by using the word error and it should be separate dashboard.

Kindly help on this and give step by step answer.

Tags (1)
0 Karma

sbbadri
Motivator

I m assuming you are asking this,
<input type="dropdown" token="search_tok">
<label>Select a log type</label>
<default>error</default>
<choice value="error">error</choice>
<choice value="info">info</choice>
<choice value="warn">warn</choice>

</input>

  <table>
    <search>
      <query>index = xxx sourcetype=y yyy $search_tok$ | table _time _raw </query>
    </search>
  </table>
</panel>
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It is difficult to give a step-by-step answer to such a vague question. Please explain in more detail what it is you wish to accomplish.

In general, entering "error" into the search bar should find that word in your logs, but it depends on what indexes your account will search by default.

---
If this reply helps you, Karma would be appreciated.
0 Karma

riyaz551
New Member

Hi richgalloway,

Thanks for reply my question,but.

once i imported error log file in splunk tool by searching date,time, error has to caught in word in dash board

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I don't understand. What is the exact search query you are using?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...