Getting Data In

if no events

kimmyb
Loves-to-Learn

when i was learning splunk  i encountered following question:


analyze  following SPL query
* | outputlookup my dummy.cvs
if no events were generated for the query, choose the appropriate option

available answers :

a.at least one event needs to be created to add results to mydummy
b.my dummy .cvs will be created but the file will be empty
c.outputlook cannot be used for queries which generate 0 results
d. my dummy.cvs should be created before events can be added
e. my dummy.cvs  will be created

 

im doubting between C or D , or am i totally wrong ?

 

 

0 Karma

chaker
Contributor

Hi @kimmyb ,

The best way to learn is to try it for yourself in your own Splunk test environment. You can test this on the free license or sales trial.

Make a query that generates no results:

index=bunk sourcetype=bunk  | outputlookup my dummy.cvs

Then use inputlookup. If the csv does not exist, you will get an error message.

| inputlookup dummy.cvs

kimmyb
Loves-to-Learn

problem is , i cant install on my work pc, no admin rights 
so for me i can t put theory into practise 😞

So thats why im following all sorts of learnings on splunk in order to get to now more about it.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kimmyb,

in this case you have a problem: you need an environemt for your tests and practice.

Eventually ask to your company to have a cloud environment to install yur Splunk, otherwise it will be very difficoult (or probably an impossible mission!) for you!

Ciao.

Giuseppe

0 Karma

kimmyb
Loves-to-Learn

indeed 😞
 all the theory seperate look ok but putting it in large picture without  test env indeed is difficult

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kimmyb,

usually isn't correct to answer in Community to an examination question!

Anyway in my opinion, you're totally wrong!

Ciao.

Giuseppe

0 Karma

kimmyb
Loves-to-Learn

it was not in an exam, just in between my learnings

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...