<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding tab character \t to a string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585891#M204107</link>
    <description>&lt;P&gt;I am trying to export data from splunk using splukCLI as given &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Search/ExportdatausingCLI" target="_self"&gt;here&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk search "index=_internal earliest=09/14/2015:23:59:00 latest=09/16/2015:01:00:00 " -output rawdata -maxout 200000 &amp;gt; c:/test123.dmp &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just want to print event fields seperated by tab character instaed of '\t' as string&lt;/P&gt;&lt;P&gt;tried something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...eval _raw=field1 + "&amp;lt;tabchar_copied_from_notpad&amp;gt;" + field2 + ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in improper character whcih behaves differently in different OS&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...eval _raw=field1 + "\t" + field2 + ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in "\t" avaiable in _raw as regular two characters.. not as a single tab character&lt;BR /&gt;Any cleaner way to achieve it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 08:07:21 GMT</pubDate>
    <dc:creator>paramagurukarth</dc:creator>
    <dc:date>2022-02-21T08:07:21Z</dc:date>
    <item>
      <title>Adding tab character \t to a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585891#M204107</link>
      <description>&lt;P&gt;I am trying to export data from splunk using splukCLI as given &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Search/ExportdatausingCLI" target="_self"&gt;here&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk search "index=_internal earliest=09/14/2015:23:59:00 latest=09/16/2015:01:00:00 " -output rawdata -maxout 200000 &amp;gt; c:/test123.dmp &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just want to print event fields seperated by tab character instaed of '\t' as string&lt;/P&gt;&lt;P&gt;tried something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...eval _raw=field1 + "&amp;lt;tabchar_copied_from_notpad&amp;gt;" + field2 + ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in improper character whcih behaves differently in different OS&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...eval _raw=field1 + "\t" + field2 + ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in "\t" avaiable in _raw as regular two characters.. not as a single tab character&lt;BR /&gt;Any cleaner way to achieve it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 08:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585891#M204107</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2022-02-21T08:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tab character \t to a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585897#M204108</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/47134"&gt;@paramagurukarth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I think you can achieve that in a better way if the results are exported in CSV or JSON or XML format. It would be quite simpler to separate the fields based on delimiter instead of tab characters. If there is any specific use case or reason for exporting the data into rawdata format, please feel free to share the details.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585897#M204108</guid>
      <dc:creator>tshah-splunk</dc:creator>
      <dc:date>2022-02-21T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding tab character \t to a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585898#M204109</link>
      <description>&lt;P&gt;I am just trying to feed data into another repoerting solution that uses fielbeat. That monitors log files. Plan is to feed the exported content to filebeat&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-tab-character-t-to-a-string/m-p/585898#M204109</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2022-02-21T09:44:12Z</dc:date>
    </item>
  </channel>
</rss>

