<?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 Re: Splitting fields with slashes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262699#M50422</link>
    <description>&lt;P&gt;| eval RelativeTargetNameSplit = split("aaaaaXbbbb", "X") just worked for me with double quotes and not single ones around the X.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2016 21:46:28 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2016-03-28T21:46:28Z</dc:date>
    <item>
      <title>Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262697#M50420</link>
      <description>&lt;P&gt;Anyone else having trouble or have guidance to split fields backslashes such as with file paths?&lt;/P&gt;

&lt;P&gt;The field value is displayed as: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;folder1\folder2\file.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the raw value is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;folder1\\folder2\\file.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried this with no luck:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval RelativeTargetNameSplit = split(RelativeTargetName, '\')
| eval RelativeTargetNameSplit = split(RelativeTargetName, '\\')
| eval RelativeTargetNameSplit = split(RelativeTargetName, '\\\\')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 15:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262697#M50420</guid>
      <dc:creator>ajlBXsplunk</dc:creator>
      <dc:date>2016-03-28T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262698#M50421</link>
      <description>&lt;P&gt;Your example data has backslashes, your attempts have forward slashes.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262698#M50421</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-28T16:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262699#M50422</link>
      <description>&lt;P&gt;| eval RelativeTargetNameSplit = split("aaaaaXbbbb", "X") just worked for me with double quotes and not single ones around the X.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 21:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262699#M50422</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-03-28T21:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262700#M50423</link>
      <description>&lt;P&gt;| eval RelativeTargetNameSplit = split("folder1\folder2\file.txt", "\") worked as well.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 21:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262700#M50423</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-03-28T21:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262701#M50424</link>
      <description>&lt;P&gt;Oops, updated to include the right slashed. Thanks for pointing that out.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262701#M50424</guid>
      <dc:creator>ajlBXsplunk</dc:creator>
      <dc:date>2016-03-28T22:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262702#M50425</link>
      <description>&lt;P&gt;| eval RelativeTargetNameSplit = split("folder1\folder2\file.txt", "\") does work for me but not with the input is from a field (as opposed to an explicit string)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262702#M50425</guid>
      <dc:creator>ajlBXsplunk</dc:creator>
      <dc:date>2016-03-28T22:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting fields with slashes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262703#M50426</link>
      <description>&lt;P&gt;You're right, When dealing with slashes, use quotes (").&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval RelativeTargetNameSplit = split(RelativeTargetName, "\\")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-fields-with-slashes/m-p/262703#M50426</guid>
      <dc:creator>ajlBXsplunk</dc:creator>
      <dc:date>2016-03-28T22:16:10Z</dc:date>
    </item>
  </channel>
</rss>

