<?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: replacing \| before generating the report in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19770#M141</link>
    <description>&lt;P&gt;but I want to replace data before being imported, my data is '|' separated if I dont replace '|' with '\ |' then my values are not coming in the proper field,&lt;BR /&gt;
Please help&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2012 13:40:13 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2012-11-01T13:40:13Z</dc:date>
    <item>
      <title>replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19768#M139</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
want to replace '|' character to '\ |' ( Please ignore the single quotes ) before generating my the reports.&lt;/P&gt;

&lt;P&gt;I have data as :&lt;/P&gt;

&lt;P&gt;abhay|26|c:\data\good|kolkata|wow&lt;/P&gt;

&lt;P&gt;this is already imported , I want to just replace | to \ | before generating the report&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 09:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19768#M139</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-11-01T09:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19769#M140</link>
      <description>&lt;P&gt;Try either the &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Replace"&gt;replace&lt;/A&gt; search command, or eval's &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/CommonEvalFunctions"&gt;replace function&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;If the line you've cited is your raw data, the field you'll need to replace on is &lt;CODE&gt;_raw&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 13:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19769#M140</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-11-01T13:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19770#M141</link>
      <description>&lt;P&gt;but I want to replace data before being imported, my data is '|' separated if I dont replace '|' with '\ |' then my values are not coming in the proper field,&lt;BR /&gt;
Please help&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 13:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19770#M141</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-11-01T13:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19771#M142</link>
      <description>&lt;P&gt;Please begin with a clearer statement of the problem you're trying to solve.&lt;/P&gt;

&lt;P&gt;"Generating the reports" to Splunkers sounds like a search time thing, with the answer I gave above.&lt;/P&gt;

&lt;P&gt;If you want to change the data before it goes into Splunk you'll want to use an index-time transform like SEDCMD in &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Propsconf"&gt;props.conf&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19771#M142</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-11-01T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19772#M143</link>
      <description>&lt;P&gt;my props.conf contains the following : &lt;/P&gt;

&lt;P&gt;[testing]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
REPORT-usb_trans = usb_trans&lt;BR /&gt;
SEDCMD-usb=sed s/|/\ |/g&lt;/P&gt;

&lt;P&gt;and my transforms is like :&lt;/P&gt;

&lt;P&gt;[usb_trans]&lt;BR /&gt;
DELIMS="|"&lt;BR /&gt;
FIELDS= "NAME", "EMPID", "DIRECTORY", "LOCATION", "APPRE"&lt;/P&gt;

&lt;P&gt;Now, tell me how '|' can be replaced with '\ |' , abouve configuration line is not working&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19772#M143</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-28T12:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: replacing \| before generating the report</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19773#M144</link>
      <description>&lt;P&gt;Let's figure out why your props aren't working. The &lt;CODE&gt;usb_trans&lt;/CODE&gt; field extraction rule you've defined should work just fine, if the data is pipe-delimited. So the next question is whether your data is being indexed with the sourcetype "testing". You can check the metadata with a search like &lt;CODE&gt;| metadata type=sourcetypes index=&amp;lt;your_index&amp;gt;&lt;/CODE&gt;. If it's not sourcetyped as "testing", then you'll have to adjust your inputs.conf.&lt;/P&gt;

&lt;P&gt;Note that | is a special character in sed, as is \, so you'd have to escape the | with \|, and the \ in \| with extra backslashes \\|.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/replacing-before-generating-the-report/m-p/19773#M144</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2020-09-28T12:43:57Z</dc:date>
    </item>
  </channel>
</rss>

