<?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: create index field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651412#M110631</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149975"&gt;@rashid47010&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can read at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/Data/Configureindex-timefieldextraction," target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/Data/Configureindex-timefieldextraction,&lt;/A&gt;&amp;nbsp;it's correct.&lt;/P&gt;&lt;P&gt;Only one question: did you tried to se the hostname in the input stanza od the Forwarder?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 06:06:14 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-07-21T06:06:14Z</dc:date>
    <item>
      <title>How to create index field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651380#M110627</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;SPAN&gt;we want an indexed field called ‘actual_server’ to indicate the &lt;/SPAN&gt;&lt;SPAN&gt;hostname of the forwarder that passed us the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My initial thought process is there are might be two options to achieve this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1- hostname available in the logs. which I think is not correct&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2- write the system hostname in transforms.conf&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I will create an app on CM and roll out this props.conf and transforms.conf against sourcetype=testlog&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;[testlog]
TRANSFORMS-netscreen = example&lt;/PRE&gt;
&lt;PRE&gt;[example1]&lt;BR /&gt;WRITE_META=true&lt;BR /&gt;FORMAT = actual_server::FORWARDER1&lt;/PRE&gt;
&lt;P&gt;and on search head&lt;/P&gt;
&lt;H4&gt;&lt;SPAN class=""&gt;ields.conf&lt;/SPAN&gt;&lt;/H4&gt;
&lt;P&gt;Add the following lines to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fields.conf:&lt;/P&gt;
&lt;PRE&gt;[actual_server]
INDEXED=true&lt;/PRE&gt;
&lt;P&gt;Is this correct ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651380#M110627</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2023-07-21T17:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: create index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651404#M110629</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149975"&gt;@rashid47010&lt;/a&gt;&amp;nbsp;Yes this should work.&lt;/P&gt;&lt;P&gt;Note - you have mentioned&amp;nbsp;TRANSFORMS-netscreen = example and have created a stanza as example1 (there is "1" extra in the stanza name, you may want to correct them).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if ^^ doesn't work&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651404#M110629</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2023-07-21T05:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: create index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651412#M110631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149975"&gt;@rashid47010&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as you can read at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/Data/Configureindex-timefieldextraction," target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/Data/Configureindex-timefieldextraction,&lt;/A&gt;&amp;nbsp;it's correct.&lt;/P&gt;&lt;P&gt;Only one question: did you tried to se the hostname in the input stanza od the Forwarder?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 06:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651412#M110631</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-21T06:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: create index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651552#M110653</link>
      <description>&lt;P&gt;Yes, you are right, i recreate the config but still it is not working. Only missing part is updating fields.conf file&lt;/P&gt;&lt;P&gt;let me try again shortly.&lt;/P&gt;&lt;P&gt;please note that i have test splunk AIO server and i am uploading sample access.log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 19:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651552#M110653</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2023-07-21T19:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: create index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651557#M110656</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258346"&gt;@meetmshah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below are my props and transform. Still index field is not showing. I have fresh Splunk AIO instance. and I am uploading example log file named access.log&lt;/P&gt;&lt;P&gt;below is sample event&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Jul&lt;/SPAN&gt; &lt;SPAN class=""&gt;20&lt;/SPAN&gt; &lt;SPAN class=""&gt;2023&lt;/SPAN&gt; &lt;SPAN class=""&gt;09:37:08&lt;/SPAN&gt; &lt;SPAN class=""&gt;www1&lt;/SPAN&gt; &lt;SPAN class=""&gt;sshd&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1654&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;Failed&lt;/SPAN&gt; &lt;SPAN class=""&gt;password&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;happy&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;2.229.4.58&lt;/SPAN&gt; &lt;SPAN class=""&gt;port&lt;/SPAN&gt; &lt;SPAN class=""&gt;2111&lt;/SPAN&gt; &lt;SPAN class=""&gt;ssh2&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;[newfield]&lt;/P&gt;&lt;P class=""&gt;TRANSFORMS-test = test_newfield&lt;/P&gt;&lt;P class=""&gt;transforms.conf&lt;/P&gt;&lt;P class=""&gt;[test_newfield]&lt;/P&gt;&lt;P class=""&gt;REGEX = sshd\[(\d+)\]&lt;/P&gt;&lt;P class=""&gt;FORMAT = request::"$1"&lt;/P&gt;&lt;P class=""&gt;INGEST_EVAL = splunk_orig_fwd=host_test&lt;/P&gt;&lt;P class=""&gt;WRITE_META = true&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 21:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651557#M110656</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2023-07-21T21:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651616#M110669</link>
      <description>&lt;P&gt;1. If the field value is not included in the raw event, you should set&lt;/P&gt;&lt;PRE&gt;INDEXED_VALUE=false&lt;/PRE&gt;&lt;P&gt;in fields.conf&lt;/P&gt;&lt;P&gt;2. If you want to identify particular forwarder by inserting a static value, you might consider adding _meta at input level on the forwarder. The only caveat is that if you wanna add multiple meta fields on the UF it can quickly get ugly.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 10:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651616#M110669</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-07-22T10:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651736#M110684</link>
      <description>&lt;P&gt;We like to know the name of the HF server the data are passing trough, so we have this app on all our&amp;nbsp; HF server.&lt;BR /&gt;&lt;BR /&gt;prosps.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::...]
TRANSFORMS_set_hf_server_name = set_hf_server_name&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_hf_server_name]
INGEST_EVAL = splunk_hf := splunk_server&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This uses the server name, so we do not need to set it.&amp;nbsp; All data will then be searchable using&amp;nbsp;&lt;BR /&gt;splunk_hf=&amp;lt;something&amp;gt;&lt;BR /&gt;&lt;BR /&gt;We do also do the same for all collector servers and set splunk_collector (for Syslog/HEC/Azure etc)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 09:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/651736#M110684</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2023-07-24T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create index field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/671024#M112497</link>
      <description>&lt;P&gt;We have used this app as a solution to add the forwarder name:&amp;nbsp;&lt;A href="https://github.com/aholzel/TA-add_forwarder_name" target="_blank"&gt;https://github.com/aholzel/TA-add_forwarder_name&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 15:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-index-field/m-p/671024#M112497</guid>
      <dc:creator>Action01</dc:creator>
      <dc:date>2023-12-06T15:09:14Z</dc:date>
    </item>
  </channel>
</rss>

