<?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: Safe characters for field names in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395417#M86169</link>
    <description>&lt;P&gt;Field names are field names. So use the mentioned characters only.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Valid characters for field names are&lt;BR /&gt;
a-z, A-Z, 0-9, or _ . Field names&lt;BR /&gt;
cannot begin with 0-9 or _ . Splunk&lt;BR /&gt;
reserves leading underscores for its&lt;BR /&gt;
internal variables. Avoid assigning&lt;BR /&gt;
field names that match any of the&lt;BR /&gt;
default field names. Do not assign&lt;BR /&gt;
field names that contain international&lt;BR /&gt;
characters.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 08:00:03 GMT</pubDate>
    <dc:creator>skalliger</dc:creator>
    <dc:date>2019-07-25T08:00:03Z</dc:date>
    <item>
      <title>What is the "safe" character set to use for field names, especially in lookups?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395416#M86168</link>
      <description>&lt;P&gt;What is the "safe" character set to use for field names, especially in lookups? By "safe" I mean "no need to quote-escape in a search." I know [a-zA-Z0-9_] works--is there anything else? Periods are sort of valid, but they can do funny things in evals. Basically I'm looking for a secondary separator character in addition to the underscore.&lt;/P&gt;
&lt;P&gt;The only official Splunk doc I could find on the topic was the indexed field extraction doc (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction&lt;/A&gt;), but I don't need to define these at index time or in the conf files.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395416#M86168</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2022-08-23T14:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395417#M86169</link>
      <description>&lt;P&gt;Field names are field names. So use the mentioned characters only.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Valid characters for field names are&lt;BR /&gt;
a-z, A-Z, 0-9, or _ . Field names&lt;BR /&gt;
cannot begin with 0-9 or _ . Splunk&lt;BR /&gt;
reserves leading underscores for its&lt;BR /&gt;
internal variables. Avoid assigning&lt;BR /&gt;
field names that match any of the&lt;BR /&gt;
default field names. Do not assign&lt;BR /&gt;
field names that contain international&lt;BR /&gt;
characters.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395417#M86169</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-07-25T08:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395418#M86170</link>
      <description>&lt;P&gt;@cphair you can refer to the following documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutregularexpressionswithfieldextractions#Proper_field_name_syntax"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutregularexpressionswithfieldextractions#Proper_field_name_syntax&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also you can try creating a Field Extraction using &lt;CODE&gt;Interactive Field Extractor&lt;/CODE&gt; where you will get &lt;CODE&gt;Field names must start with a letter and contain only letters, numbers, and underscores.&lt;/CODE&gt; warning in case you provide invalid field name.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395418#M86170</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-07-25T08:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395419#M86171</link>
      <description>&lt;P&gt;I was afraid of that. Would be nice if there were a second separator-like character, but I'll make do. Thank you for confirming.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 12:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395419#M86171</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2019-07-25T12:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395420#M86172</link>
      <description>&lt;P&gt;Not an answer, and setting aside your understandable "no need to quote-escape" qualification: I have just been searching the Splunk docs for the set of characters allowed in field names. The documentation is inconsistent. Different topics cite different sets of characters.&lt;/P&gt;

&lt;P&gt;From Splunk docs / Documentation / Splunk Enterprise / Getting Data In / &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/Configureindex-timefieldextraction"&gt;Create custom fields at index time&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Field name syntax restrictions&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You can assign field names as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Valid characters for field names are &lt;STRONG&gt;a-z&lt;/STRONG&gt;, &lt;STRONG&gt;A-Z&lt;/STRONG&gt;, &lt;STRONG&gt;0-9&lt;/STRONG&gt;, or &lt;STRONG&gt;_&lt;/STRONG&gt; .&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Similarly, from Splunk docs / Documentation / Splunk Cloud / Knowledge Manager Manual /  &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/7.2.6/Knowledge/FXSelectFieldsstep"&gt;Field Extractor: Select Fields step&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Field names must start with a letter and contain only letters, numbers, and underscores.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But then, Splunk docs / Documentation / Splunk Enterprise / Knowledge Manager Manual / &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutregularexpressionswithfieldextractions#Proper_field_name_syntax"&gt;About regular expressions with field extraction&lt;/A&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Proper field name syntax&lt;/STRONG&gt;&lt;BR /&gt;
Field names must conform to the field name syntax rules.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Valid characters for field names are &lt;STRONG&gt;a-z&lt;/STRONG&gt;, &lt;STRONG&gt;A-Z&lt;/STRONG&gt;, &lt;STRONG&gt;0-9&lt;/STRONG&gt;, &lt;STRONG&gt;.&lt;/STRONG&gt; , &lt;STRONG&gt;:&lt;/STRONG&gt;, and &lt;STRONG&gt;_&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;adds the period (.) and colon (:).&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 03:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395420#M86172</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2019-08-02T03:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395421#M86173</link>
      <description>&lt;P&gt;I'm a bit desperate, I'm trying to normalize all field names and remove &lt;A href="https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/Specialcharacters"&gt;special characters&lt;/A&gt; (&lt;A href="https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/Specialcharacters"&gt;https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/Specialcharacters&lt;/A&gt;) so that a following "foreach" doesn't throw an error. All field names should only contain valid characters.&lt;/P&gt;

&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 00:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395421#M86173</guid>
      <dc:creator>twjack</dc:creator>
      <dc:date>2020-03-08T00:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395422#M86174</link>
      <description>&lt;P&gt;I think you are right. but this question is accepted and closed.&lt;BR /&gt;
please ask another.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 00:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/395422#M86174</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-08T00:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Safe characters for field names</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/610507#M105784</link>
      <description>&lt;P class="lia-align-left"&gt;This is incorrect; the text above is from an SPL2 page, not an SPL page.&amp;nbsp; The correct info is this:&lt;/P&gt;&lt;H2&gt;&lt;SPAN class=""&gt;Proper field name syntax&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Field names must conform to the field name syntax rules.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;Valid characters for field names are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;a-z&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;A-Z&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;0-9&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;, and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;_&lt;/STRONG&gt;.&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;Field names cannot begin with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;0-9&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;_&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;. Leading underscores are reserved for Splunk Enterprise internal variables.&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;which can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutregularexpressionswithfieldextractions" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutregularexpressionswithfieldextractions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-is-the-quot-safe-quot-character-set-to-use-for-field-names/m-p/610507#M105784</guid>
      <dc:creator>andygerberkp</dc:creator>
      <dc:date>2022-08-23T14:59:11Z</dc:date>
    </item>
  </channel>
</rss>

