Syslog format and syslog-ng filters - syslog

I can not understand what I'm missing in this syslog-ng filter.
First of all this is the log message:
<22>Nov 3 09:57:44 logon avaya: 2015/11/03 09:57:44,00:00:01,1,0,103456456156,I,#AA:Poa,1231231123231,,0,1017121,0,T9002,Line 2.1,V9542,VM Channel 42,0,0,,,,,,,,,,,,,
and this is the filter on syslog-ng configuration:
filter f_avaya{
program("avaya");
};
Running syslog-ng in debug mode I saw that that message do not match the filter, why?

The sad answer is: the date format of the day with filling 0 when the day is less then 10.
<22>Nov 3 09:57:44...
shoud be:
<22>Nov 03 09:57:44...

Your message is invalid because the process ID is missing from the header:
<22>Nov 3 09:57:44 logon avaya:
Should look like this if you don't have an ID
<22>Nov 3 09:57:44 logon avaya[0]:

Related

Does the HERE Isoline Routing API have a max time limit?

Does anyone know whether the HERE Isoline Routing API has a limit on how many hours you can plug in?
For example, 6 hours works perfectly fine and has a service area output:
'https://isoline.router.hereapi.com/v8/isolines?transportMode=car&origin=52.51578,13.37749&range[type]=distance&range[values]=21600&routingMode=fast'
However, I get a error if I try and do 12 hours
'https://isoline.router.hereapi.com/v8/isolines?transportMode=car&origin=52.51578,13.37749&range[type]=distance&range[values]=43200&routingMode=fast'
In .parse_response(i, out$responses()[[i]]) :
https://isoline.router.hereapi.com/v8/isolines: Request 'id = 1' failed.
Status 400; Bad Request; Bad request syntax or unsupported method.
Is there a max time you can use on the API?
Thanks!
The maximum value for the time is 9 hours.

Invalid or missing account ID GTM - container ID contains more than 6 characters

I have created a account in Google Tag Manager, and I am very new to it. My Container ID code is is GTM-XXXXXXX ( 7 characters ).
I am getting an error about "Invalid or missing account ID"
I read it on different blogs that the error is due to 7 characters in the ID. But I did not understand properly if the error can be ignored or debugged.
Thanks in advance.
According to Google this is a false error and it's going to be resolved in future.
See this link in Invalid or missing account ID section.
NOTE: If your container ID (i.e. what’s referenced here as ‘account ID’) is of format GTM-XXXXXXX, where the portion after ‘GTM-’ is longer than 6 characters, you may see this error unnecessarily. This false error will be resolved in a future update. In the meantime, as long as your container ID follows the correct format as described below, you may ignore this error.
You can ignore this error.

BizTalk error "Error: 1 (Field level error) Position in Field: 2 Data Value: 0.0000"

I am getting the following error "Error: 1 (Field level error) SegmentID: MOA Position in TS: 13 Data Element ID: C51602 Position in Segment: 2 Position in Field: 2 Data Value: 0.0000"
I tried using the option in agreement tab allowing Leading Zeros (see below)
Any other things I could try and see. I am really stuck here.
To be clear about this, your trading partner is technically sending you invalid EDI. The guidance is specifically that non-significant digits be suppressed so "0.0000" is out of compliance.
So, the correct way to resolve this is to contact your trading partner and have them correct their output.
If they are unable or unwilling to do this, then yes, you have to disable this rule in the Agreement.
Note, to be sure you're using the correct Agreement, you should disable the Fallback Settings.
I solved this issue by going to EDI Fallback settings and in Validation allowing Leading and Trailing zeroes policy to be Allowed.
There are 2 type of settings: EDI Fallback and X12 Fallback settings. So we need to enable the option in both of them.

Units of Work and Backout in DataPower

I Have set the configuration as below
Units of Work : 1
Automatic Backout: on.
Backout Threshold: 3
Backout Queue Name: Queue Name is given.
So according to this settings , since threshold value is 3 and in case of failure, there should be 4 transaction in the probe?
can you please confirm
Thanks
Vathsa
No, only one as it is the same transaction in DP but three transport retires.

Get 278 Response message to resolve properly

I am trying to process the response message for an X12 278 message and the XML that is being produced does not seem to be following the schema properly.
When the raw/native format runs through the EDI pipeline, the message comes out looking like the following:
<ns0:X12_00501_278 xmlns:ns0="http://schemas.microsoft.com/BizTalk/EDI/X12/2006">
<ST>
<ST01_TransactionSetIdentifierCode>278</ST01_TransactionSetIdentifierCode>
<ST02_TransactionSetControlNumber>0001</ST02_TransactionSetControlNumber>
<ST03_ImplementationGuideVersionName>005010X216</ST03_ImplementationGuideVersionName>
</ST>
<ns0:BHT_BeginningofHierarchicalTransaction_TS278A1>
<BHT01_HierarchicalStructureCode>0007</BHT01_HierarchicalStructureCode>
<BHT02_TransactionSetPurposeCode>44</BHT02_TransactionSetPurposeCode>
<BHT03_SubmitterTransactionIdentifier>123456789</BHT03_SubmitterTransactionIdentifier>
<BHT04_TransactionSetCreationDate>20120313</BHT04_TransactionSetCreationDate>
<BHT05_TransactionSetCreationTime>1108</BHT05_TransactionSetCreationTime>
</ns0:BHT_BeginningofHierarchicalTransaction_TS278A1>
The message should look like the following:
<ns0:X12_00501_278 xmlns:ns0="http://schemas.microsoft.com/BizTalk/EDI/X12/2006">
<ST>
<ST01_TransactionSetIdentifierCode>278</ST01_TransactionSetIdentifierCode>
<ST02_TransactionSetControlNumber>0001</ST02_TransactionSetControlNumber>
<ST03_ImplementationGuideVersionName>005010X216</ST03_ImplementationGuideVersionName>
</ST>
<A3_BHT_Loop>
<ns0:BHT_BeginningofHierarchicalTransaction_TS278A3>
<BHT01_HierarchicalStructureCode>0007</BHT01_HierarchicalStructureCode>
<BHT02_TransactionSetPurposeCode>44</BHT02_TransactionSetPurposeCode>
<BHT03_SubmitterTransactionIdentifier>123456789</BHT03_SubmitterTransactionIdentifier>
<BHT04_TransactionSetCreationDate>20120313</BHT04_TransactionSetCreationDate>
<BHT05_TransactionSetCreationTime>1108</BHT05_TransactionSetCreationTime>
</ns0:BHT_BeginningofHierarchicalTransaction_TS278A3>
In the latter example, notice the inclusion of the *A3_BHT_Loop* element and also the fact that the BHT segment is now labelled properly as *BHT_BeginningofHierarchicalTransaction_TS278A3*.
Is there a setting that needs to be made to get the messages to resolve to the proper schema? Or is there something that should be in the response message to have the pipeline detect which format should be applied?
In BizTalk 2010 you would specify the namespace of the EDI schema and the release/version information as part of the agreement configuration. Here is a link that goes over this process: http://msdn.microsoft.com/en-us/library/ff629750.aspx
Thanks,

Resources