Knowledge Management

exporting data does not have host information

creativenitin
New Member

I want to export my logs to a file(raw text) from the search i have done. It does it but problem is it does not include the source of those logs viz hostname the sourcetype etc. Is there a way this information can be exported in raw text exports? I also did not find this in csv format too.

thanks
nitn

Tags (1)
0 Karma

yannK
Splunk Employee
Splunk Employee

No, raw format is supposed to contain only the raw event. (the content of the hidden field _raw)

If you want more details, try to build a table, with the fields you want.

mysearch | eval raw=_raw | table _time host source sourcetype raw

Or edit the raw event to add the fields

mysearch | eval _raw="time="._time." host=".host." sourcetype=".sourcetype." source=".source." raw="._raw

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 ...